Skip to content
Snippets Groups Projects
Commit 1d0e2f16 authored by Marek Chrastina's avatar Marek Chrastina
Browse files

Upgrade to mkdocs-material 5.x

parent 20f7ca03
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !278. Comments created here will be created in the context of that merge request.
...@@ -75,7 +75,7 @@ mkdocs: ...@@ -75,7 +75,7 @@ mkdocs:
- pip freeze # debug - pip freeze # debug
- python scripts/modules_matrix.py > docs.it4i/modules-matrix.md - python scripts/modules_matrix.py > docs.it4i/modules-matrix.md
- python scripts/modules_matrix.py --json > docs.it4i/modules-matrix.json - python scripts/modules_matrix.py --json > docs.it4i/modules-matrix.json
- declare -Ff deactivate && deactivate #- declare -Ff deactivate && deactivate
- curl -f0 https://code.it4i.cz/sccs/scs-api-public/raw/master/scs_api.server_public.md -o docs.it4i/apiv1.md - curl -f0 https://code.it4i.cz/sccs/scs-api-public/raw/master/scs_api.server_public.md -o docs.it4i/apiv1.md
# build pages # build pages
- mkdocs build - mkdocs build
......
{% import "partials/language.html" as lang with context %} {% import "partials/language.html" as lang with context %}
<nav class="md-nav md-nav--secondary"> <nav class="md-nav md-nav--secondary" aria-label="{{ lang.t('toc.title') }}">
{% set toc_ = page.toc %} {% set toc_ = page.toc %}
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %} {% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
{% set toc_ = (toc_ | first).children %} {% set toc_ = (toc_ | first).children %}
......
...@@ -25,7 +25,12 @@ theme: ...@@ -25,7 +25,12 @@ theme:
- 404.html - 404.html
feature: feature:
tabs: true - tabs
- instant
icon:
logo: fontawesome/solid/book-open
repo: fontawesome/brands/gitlab
# Don't include MkDocs' JavaScript # Don't include MkDocs' JavaScript
include_search_page: false include_search_page: false
...@@ -212,17 +217,19 @@ nav: ...@@ -212,17 +217,19 @@ nav:
- PBS Pro Documentation: pbspro.md - PBS Pro Documentation: pbspro.md
extra: extra:
search:
language: 'en'
tokenizer: '[\s\.]+'
repo_icon: gitlab
disqus: 'test-3whnesz3gq' disqus: 'test-3whnesz3gq'
social: social:
- type: 'gitlab' - icon: 'fontawesome/brands/gitlab'
link: 'https://code.it4i.cz/sccs/docs.it4i.cz' link: 'https://code.it4i.cz/sccs/docs.it4i.cz'
- type: globe - icon: fontawesome/solid/globe-europe
link: https://www.it4i.cz link: https://www.it4i.cz
plugins:
- search:
separator: '[\s\.]+'
lang:
- en
markdown_extensions: markdown_extensions:
- codehilite - codehilite
- markdown.extensions.admonition: - markdown.extensions.admonition:
...@@ -232,7 +239,7 @@ markdown_extensions: ...@@ -232,7 +239,7 @@ markdown_extensions:
slugify: !!python/name:pymdownx.slugs.uslugify slugify: !!python/name:pymdownx.slugs.uslugify
- pymdownx.snippets: - pymdownx.snippets:
base_path: snippets base_path: snippets
- pymdownx.superfences - pymdownx.tabbed:
google_analytics: google_analytics:
- 'UA-90498826-1' - 'UA-90498826-1'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment