Skip to content

Commit

Permalink
build(mkdocs): dedupe
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha committed May 24, 2024
1 parent 14075a2 commit f0ff67b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ python3 -m venv docs-venv
source docs-venv/bin/activate
pip3 install -r requirements.txt
pip3 install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
npm install


mkdir -p site/.well-known
INSIDERS=1 mkdocs build --clean --site-dir site/
INSIDERS=1 mkdocs build --clean --site-dir site/
date "+%Y-%m-%dT%H:%M:%S%z" > site/build_id.txt

#TZ=UTC git show --quiet --date="format-local:%Y.%-m.%-d" --format="nightly-%cd" > site/.well-known/nightly-release.txt
Expand Down
11 changes: 4 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,21 @@ use_directory_urls: true

theme:
name: material
custom_dir: .docs/overrides/
# custom_dir: .docs/overrides/
features:
- announce.dismiss
- content.action.edit
- content.action.view
- content.code.annotate
- content.code.copy
# - content.code.select
# - content.footnote.tooltips
- content.footnote.tooltips
# - content.tabs.link
- content.tooltips
# - header.autohide
# - navigation.expand
- navigation.footer
# - navigation.instant
# - navigation.instant.prefetch
# - navigation.instant.progress
# - navigation.prune
- navigation.instant
- navigation.instant.progress
Expand Down Expand Up @@ -96,9 +94,8 @@ plugins:
#separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'
separator: '[\s\-\.\_]+'
lang: 'en'
- macros:
module_name: .docs/macros/includes/main
- typeset
# - macros:
# module_name: .docs/macros/includes/main
- blog:
post_url_format: "{categories}/{slug}"
post_url_max_categories: 2
Expand Down

0 comments on commit f0ff67b

Please sign in to comment.