From 8adbc6a78d5768ccd1848b0f5d654d6b46910009 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Sat, 11 May 2024 11:58:34 +0900 Subject: [PATCH] mkdocs: update nav at 2024-07-03 Signed-off-by: Koichi Shiraishi --- config/mkdocs.yml | 16 ++++++++++------ config/requirements.txt | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/config/mkdocs.yml b/config/mkdocs.yml index ad0d4f89c..a14510eea 100644 --- a/config/mkdocs.yml +++ b/config/mkdocs.yml @@ -32,6 +32,7 @@ google_analytics: - UA-89201129-1 - https://zchee.github.io/golang-wiki +use_directory_urls: true repo_name: zchee/golang-wiki site_url: https://zchee.github.io/golang-wiki repo_url: https://github.com/zchee/golang-wiki @@ -76,7 +77,7 @@ markdown_extensions: format: !!python/name:pymdownx.superfences.fence_code_format - name: math class: arithmatex - format: !!python/object/apply:pymdownx.arithmatex.arithmatex_fenced_format {kwds: {mode: generic, tag: pre}} + format: !!python/object/apply:pymdownx.arithmatex.arithmatex_fenced_format { kwds: { mode: generic, tag: pre } } - pymdownx.highlight: extend_pygments_lang: - name: php-inline @@ -92,7 +93,7 @@ markdown_extensions: custom_inline: - name: math class: arithmatex - format: !!python/object/apply:pymdownx.arithmatex.arithmatex_inline_format {kwds: {mode: generic}} + format: !!python/object/apply:pymdownx.arithmatex.arithmatex_inline_format { kwds: { mode: generic } } - pymdownx.magiclink: repo_url_shortener: true repo_url_shorthand: true @@ -115,7 +116,7 @@ markdown_extensions: - pymdownx.progressbar: - pymdownx.arithmatex: generic: true - block_tag: 'pre' + block_tag: "pre" - pymdownx.mark: - pymdownx.striphtml: - pymdownx.keys: @@ -126,10 +127,11 @@ markdown_extensions: - pymdownx.saneheaders: # yamllint disable-line -## $ echo ' - "Home": Home.md' | tee nav.md; find . -maxdepth 2 -type f \( -name '*.md' -or -name '*.asciidoc' \) -and -not -wholename '*docs*' -and -not \( -name 'Home.md' -or -name 'nav.md' -or -name '_Footer.md' -or -name '_Sidebar.md' \) | awk -F'/' '{print $2}' | awk -F'.md' '{print ""$1": "$0}' | awk -F':' '{gsub( "-", " ", $1 ) gsub( ".asciidoc", "", $1 )} {print " - \""$1"\":"$2}' | sed 's|.asciidoc|.md|' | sort --ignore-case | tee -a nav.md && cat nav.md | pbcopy && rm -f nav.md +## $ echo ' - "Home": Home.md' | tee nav.md; find . -maxdepth 2 -type f \( -name '*.md' -or -name '*.asciidoc' \) -and -not -wholename '*docs*' -and -not \( -name 'All.md' -or -name 'index.md' -or -name 'Home.md' -or -name 'nav.md' -or -name '_Footer.md' -or -name '_Sidebar.md' \) | awk -F'/' '{print $2}' | awk -F'.md' '{print ""$1": "$0}' | awk -F':' '{gsub( "-", " ", $1 ) gsub( ".asciidoc", "", $1 )} {print " - \""$1"\":"$2}' | sed 's|.asciidoc|.md|' | sort --ignore-case | tee -a nav.md && cat nav.md | pbcopy && rm -f nav.md nav: - "Home": Home.md + - "AI": AI.md - "Articles": Articles.md - "AssemblyPolicy": AssemblyPolicy.md - "AVX512": AVX512.md @@ -150,6 +152,7 @@ nav: - "Conferences": Conferences.md - "Configuring GoLand for WebAssembly": Configuring-GoLand-for-WebAssembly.md - "Contributing to gopls": Contributing-to-gopls.md + - "Contributing": Contributing.md - "CoreDumpDebugging": CoreDumpDebugging.md - "Courses": Courses.md - "CreatingSubRepository": CreatingSubRepository.md @@ -175,12 +178,13 @@ nav: - "GcToolchainTricks": GcToolchainTricks.md - "GerritAccess": GerritAccess.md - "GerritBot": GerritBot.md - - "GithubAccess": GithubAccess.md + - "GitHubAccess": GitHubAccess.md - "Go 1.10 Release Party": Go-1.10-Release-Party.md - "Go 1.6 release party": Go-1.6-release-party.md - "Go 1.8 Release Party": Go-1.8-Release-Party.md - "Go Community Slides": Go-Community-Slides.md - "Go Release Cycle": Go-Release-Cycle.md + - "Go123Timer": Go123Timer.md - "Go2": Go2.md - "Go2ErrorHandlingFeedback": Go2ErrorHandlingFeedback.md - "Go2ErrorValuesFeedback": Go2ErrorValuesFeedback.md @@ -241,8 +245,8 @@ nav: - "OpenBSD": OpenBSD.md - "PackagePublishing": PackagePublishing.md - "PanicAndRecover": PanicAndRecover.md - - "PerfDashboard": PerfDashboard.md - "Performance": Performance.md + - "PerformanceMonitoring": PerformanceMonitoring.md - "PGO Tools": PGO-Tools.md - "Plan9": Plan9.md - "Podcasts": Podcasts.md diff --git a/config/requirements.txt b/config/requirements.txt index e213fe026..167a5cd8a 100644 --- a/config/requirements.txt +++ b/config/requirements.txt @@ -1,5 +1,5 @@ git+https://github.com/mkdocs/mkdocs.git -git+https://github.com/squidfunk/mkdocs-material.git +git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git@9.5.28-insiders-4.53.11 git+https://github.com/facelessuser/pymdown-extensions.git git+https://github.com/pygments/pygments.git git+https://github.com/byrnereese/mkdocs-minify-plugin.git