Skip to content

Commit

Permalink
Thème : plugin tags v2 et correction icônes de tags (#1040)
Browse files Browse the repository at this point in the history
Le plugin de gestion des mots-clés a subi une refonte qui implique de
nombreux changements
(squidfunk/mkdocs-material#6517). Cette PR
intègre les modifications nécessaires.

De plus, j'ai enfin trouvé le bug qui fait péter pas mal d'icônes de
tags : squidfunk/mkdocs-material#6635. Vu que
l'ordre est significatif, j'ai désactivé le tri automatique du YAML en
sortie.
  • Loading branch information
Guts authored Jan 14, 2024
2 parents 426dea0 + 8bc97b7 commit a5d3770
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format",
"tag:yaml.org,2002:python/name:material.plugins.tags.casefold",
"tag:yaml.org,2002:python/name:material.plugins.tags.page_url"
"tag:yaml.org,2002:python/name:material.plugins.tags.page_url",
"tag:yaml.org,2002:python/name:material.plugins.tags.tag_name_casefold",
"tag:yaml.org,2002:python/name:material.plugins.tags.item_url"
],
}
2 changes: 1 addition & 1 deletion content/tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ search:

# Contenus par mots-clés

[TAGS]
<!-- material/tags -->
5 changes: 2 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ plugins:
include_dir: content/toc_nav_ignored/snippets
- tags:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_TAGS, true]
tags_file: tags.md
tags_compare: !!python/name:material.plugins.tags.casefold
tags_pages_compare: !!python/name:material.plugins.tags.page_url
tags_sort_by: !!python/name:material.plugins.tags.tag_name_casefold
listings_sort_by: !!python/name:material.plugins.tags.item_url
- termynal
- privacy:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_PRIVACY, true]
Expand Down
2 changes: 1 addition & 1 deletion requirements-insiders.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Insiders
# --------

git+https://${GH_TOKEN_MATERIAL_INSIDERS}@github.com/squidfunk/[email protected].1-insiders-4.47.0#egg=mkdocs-material
git+https://${GH_TOKEN_MATERIAL_INSIDERS}@github.com/squidfunk/[email protected].3-insiders-4.49.2#egg=mkdocs-material
# git+https://${GH_TOKEN_MATERIAL_INSIDERS}@github.com/squidfunk/mkdocs-material-insiders.git

# social plugin requirements
Expand Down
2 changes: 1 addition & 1 deletion scripts/100_mkdocs_config_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
yaml.dump(
config_to_complete,
out_file,
sort_keys=True,
sort_keys=False,
default_flow_style=False,
encoding="UTF8",
)

0 comments on commit a5d3770

Please sign in to comment.