Skip to content

Commit

Permalink
Thème et mkdocs : mise à jour du thème en 9 6 et adaptations des conf…
Browse files Browse the repository at this point in the history
…igurations au nouveau seuil communautaire franchi (#1261)

Voir : https://github.com/squidfunk/mkdocs-material/releases/tag/9.6.0
  • Loading branch information
Guts authored Feb 1, 2025
2 parents 851c84f + e379b85 commit 8e49664
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 27 deletions.
2 changes: 2 additions & 0 deletions config/plugins_meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
meta:
meta_file: "content/**/.meta.yml"
8 changes: 8 additions & 0 deletions config/plugins_minify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
minify:
minify_css: true
css_files:
- theme/assets/stylesheets/extra.css
- theme/assets/stylesheets/homepage.css
minify_html: true
htmlmin_opts:
remove_comments: true
4 changes: 4 additions & 0 deletions config/plugins_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tags:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_TAGS, true]
tags_sort_by: !!python/name:material.plugins.tags.tag_name_casefold
listings_sort_by: !!python/name:material.plugins.tags.item_url
8 changes: 0 additions & 8 deletions mkdocs-free.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ plugins:
- macros:
include_dir: content/toc_nav_ignored/snippets
module_name: hooks/macros/custom_jinja
- minify:
minify_css: true
css_files:
- theme/assets/stylesheets/extra.css
- theme/assets/stylesheets/homepage.css
- search:
lang: fr
- social:
Expand All @@ -60,9 +55,6 @@ plugins:
cards: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL_CARDS, false]
cards_layout_options:
font_family: Ubuntu
- tags:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_TAGS, true]
tags_file: tags.md
- termynal

# Theme
Expand Down
20 changes: 3 additions & 17 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,9 @@ plugins:
enable_creation_date: true
fallback_to_build_date: true
locale: fr
- meta:
meta_file: "content/**/.meta.yml"
- minify:
minify_css: true
css_files:
- theme/assets/stylesheets/extra.css
- theme/assets/stylesheets/homepage.css
minify_html: true
htmlmin_opts:
remove_comments: true
- search:
lang: fr
- macros:
include_dir: content/toc_nav_ignored/snippets
module_name: hooks/macros/custom_jinja
- tags:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_TAGS, true]
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, false]
cache_dir:
Expand Down Expand Up @@ -101,6 +84,8 @@ plugins:
- boundlessgeo.com/*
- i3.codeplex.com/*
- drfhlmcehrc34.cloudfront.net/*
- search:
lang: fr
- social:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL, false]
cache_dir: !ENV [MKDOCS_PLUGIN_SOCIAL_CACHE_DIR, .cache/plugins/social]
Expand All @@ -112,6 +97,7 @@ plugins:
background_image: content/theme/assets/images/geotribu/background_geotribu.png
color: "#3e93a7"
font_family: Ubuntu
- termynal
- typeset:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_TYPESET, true]

Expand Down
2 changes: 1 addition & 1 deletion requirements-free.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# No Material Insiders
# --------------------

mkdocs-material[imaging]>=9.5.50,<9.6
mkdocs-material[imaging]>=9.6.1,<9.7

-r requirements.txt
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/mkdocs-material-insiders.git@9.5.50-insiders-4.53.15#egg=mkdocs-material
git+https://${GH_TOKEN_MATERIAL_INSIDERS}@github.com/squidfunk/mkdocs-material-insiders.git@9.6.1-insiders-4.53.15#egg=mkdocs-material
# git+https://${GH_TOKEN_MATERIAL_INSIDERS}@github.com/squidfunk/mkdocs-material-insiders.git

# social plugin requirements
Expand Down

0 comments on commit 8e49664

Please sign in to comment.