Skip to content

Commit

Permalink
mkdocs: désactive les social cards par défaut (#1069)
Browse files Browse the repository at this point in the history
Étant donné les dépendances système requises, ça évite à un utilisateur
"lambda" de se prendre des erreurs un peu violentes au moment du build.
  • Loading branch information
Guts authored Feb 28, 2024
2 parents 366c433 + 2a6f7a1 commit 43495d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr_checker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
- name: Build in strict mode
env:
MKDOCS_EDIT_URI: "edit/$GITHUB_HEAD_REF/content"
MKDOCS_ENABLE_PLUGIN_SOCIAL: true
MKDOCS_ENABLE_PLUGIN_SOCIAL_CARDS: true
MKDOCS_SITE_NAME: "Geotribu PREVIEW - PR ${{ github.event.pull_request.number }}"
MKDOCS_SITE_COPYRIGHT: '<a href="https://www.netlify.com/"><img alt="Deploys by Netlify" src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" style="float: right;"></a>'
run: |
Expand Down
4 changes: 2 additions & 2 deletions mkdocs-free.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ plugins:
- search:
lang: fr
- social:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL, true]
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL, false]
cache_dir: !ENV [MKDOCS_PLUGIN_SOCIAL_CACHE_DIR, .cache/plugins/social]
cards: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL_CARDS, true]
cards: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL_CARDS, false]
cards_layout_options:
font_family: Ubuntu
- tags:
Expand Down
6 changes: 3 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ plugins:
listings_sort_by: !!python/name:material.plugins.tags.item_url
- termynal
- privacy:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_PRIVACY, true]
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_PRIVACY, false]
cache_dir:
!ENV [MKDOCS_PLUGIN_PRIVACY_EXTERNAL_CACHE_DIR, .cache/plugins/privacy]
links_attr_map:
Expand Down Expand Up @@ -99,9 +99,9 @@ plugins:
- i3.codeplex.com/*
- drfhlmcehrc34.cloudfront.net/*
- social:
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL, true]
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL, false]
cache_dir: !ENV [MKDOCS_PLUGIN_SOCIAL_CACHE_DIR, .cache/plugins/social]
cards: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL_CARDS, true]
cards: !ENV [MKDOCS_ENABLE_PLUGIN_SOCIAL_CARDS, false]
cards_exclude:
- index.md
- toc_nav_ignored/*.md
Expand Down

0 comments on commit 43495d9

Please sign in to comment.