FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 44c18880 authored by Nick Brown's avatar Nick Brown
Browse files

feat: Add mkdocs-exclude and exclude non-presentation markdown pages....

feat: Add mkdocs-exclude and exclude non-presentation markdown pages. Separated nav configuration vs other mkdocs configuration
parent 5bc96aaf
No related branches found
No related tags found
1 merge request!437feat: Add mkdocs-exclude and exclude non-presentation markdown pages....
## Base config for MkDocs site, INHERIT-ed by mkdocs.yml
# A human-friendly name for the site as a whole.
site_name: "DevOps Division Guidebook"
# The canonical URL of the site.
site_url: "https://guidebook.devops.uis.cam.ac.uk/"
# Links for sufficiently with it people to submit changes.
repo_url: "https://gitlab.developers.cam.ac.uk/uis/devops/docs/guidebook/"
edit_uri: "-/edit/master/docs/"
repo_name: "Developer Hub Project"
# Make us look pretty.
theme:
name: "material"
font:
text: "Lato"
features:
- navigation.tracking
- navigation.top
- navigation.tabs
- navigation.tabs.sticky
- navigation.indexes
- toc.integrate
- content.action.edit
- content.code.copy
- content.tooltips
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: "default"
primary: "teal"
secondary: "teal"
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: "slate"
primary: "teal"
secondary: "teal"
toggle:
icon: material/brightness-4
name: Switch to light mode
markdown_extensions:
# Support notes, warnings, etc.
- admonition
# Allow the use of Pygments to do code highlighting. Do not attempt to guess
# the language if we don't specify.
- codehilite:
guess_lang: false
# Provide permalinks to help with linking to sections.
- toc:
permalink: true
# Support GitLab/GitHub-style task lists.
- pymdownx.tasklist:
custom_checkbox: true
# Allow code blocks to be nested inside other elements
- pymdownx.superfences
# Allow Markdown to be used within HTML elements with the "markdown" attribute set.
- md_in_html
# Definition lists
- def_list
# Tables
- tables
# Inline icons and emoji
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.details
# Allow for inline highlighting of code blocks.
- pymdownx.highlight
- pymdownx.inlinehilite
# Footnotes for the Pterry-inclined.
- footnotes
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
extra_css:
- stylesheets/badges.css
- stylesheets/code-block.css
- stylesheets/gitlab-labels.css
extra_javascript:
- https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js
- javascripts/tablesort.js
plugins:
- search
- macros
- badges
- git-revision-date-localized
- redirects:
redirect_maps:
"best-practice/git.md": "explanations/git.md"
"deployment/gcp-folders.md": "reference/cloud-platform/gcp-folders.md"
"deployment/permissions-and-roles.md": "reference/cloud-platform/permissions-and-roles.md"
"deployment/backups.md": "reference/cloud-platform/backups.md"
"deployment/dns.md": "reference/cloud-platform/dns.md"
"explanations/tech-lead-forum.md": "standards-and-compliance/tech-lead-forum.md"
- build_plantuml:
allow_multiple_roots: false # in case your codebase contains more locations for diagrams (all ending in diagram_root)
diagram_root: "docs/plantuml-diagrams" # should reside under docs_dir
input_extensions: "puml"
input_folder: "src"
output_folder: "out"
output_format: "svg" # or "png"
render: "server"
server: "http://plantuml:8080"
- exclude:
glob:
- "services/service-template.md"
- "services/temporary-employment-service.md"
- "standards-and-compliance/index.md"
\ No newline at end of file
# A human-friendly name for the site as a whole.
site_name: "DevOps Division Guidebook"
# The canonical URL of the site.
site_url: "https://guidebook.devops.uis.cam.ac.uk/"
# Site layout
INHERIT: ./mkdocs.base.yml
# Navigation layout for the mkdocs site
nav:
- index.md
- "Contact us":
......@@ -21,6 +16,13 @@ nav:
- standards-and-compliance/standard-architecture-diagrams.md
- "Non-Functional Requirements":
- standards-and-compliance/non-functional-requirements/index.md
- standards-and-compliance/non-functional-requirements/apis.md
- standards-and-compliance/non-functional-requirements/availability.md
- standards-and-compliance/non-functional-requirements/gcp.md
- standards-and-compliance/non-functional-requirements/ownership.md
- standards-and-compliance/non-functional-requirements/security.md
- standards-and-compliance/non-functional-requirements/template.md
- standards-and-compliance/non-functional-requirements/user-concurrency.md
- "Our Services":
- services/index.md
- "Education":
......@@ -84,6 +86,7 @@ nav:
- services/university-human-resources-api.md
- services/university-student-api.md
- services/information-asset-register.md
- services/legacy-application-backups.md
- services/lookup-gitlab-sync.md
- services/malware-and-virus-scanner.md
- services/nursery-waiting-list.md
......@@ -127,6 +130,7 @@ nav:
- libraries-tools/python/index.md
- "How-to":
- howtos/index.md
- howtos/msteams-workflows-webhooks.md
- "Products":
- howtos/bootstrap-a-product.md
- howtos/check-product-configuration.md
......@@ -232,6 +236,7 @@ nav:
- reference/webapp-developer-environment.md
- reference/vulnerability-triage-process.md
- reference/openapi-client-generation.md
- reference/tech-lead-forum.md
- "Git/GitLab":
- "Labels": reference/gitlab-labels.md
- "Python CI jobs": "https://gitlab.developers.cam.ac.uk/uis/devops/continuous-delivery/ci-templates/-/blob/master/auto-devops/python.md"
......@@ -288,124 +293,3 @@ nav:
- notes/internal-ca.md
- notes/raven-test-sites.md
- notes/faq.md
# Links for sufficiently with it people to submit changes.
repo_url: "https://gitlab.developers.cam.ac.uk/uis/devops/docs/guidebook/"
edit_uri: "-/edit/master/docs/"
repo_name: "Developer Hub Project"
# Make us look pretty.
theme:
name: "material"
font:
text: "Lato"
features:
- navigation.tracking
- navigation.top
- navigation.tabs
- navigation.tabs.sticky
- navigation.indexes
- toc.integrate
- content.action.edit
- content.code.copy
- content.tooltips
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: "default"
primary: "teal"
secondary: "teal"
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: "slate"
primary: "teal"
secondary: "teal"
toggle:
icon: material/brightness-4
name: Switch to light mode
markdown_extensions:
# Support notes, warnings, etc.
- admonition
# Allow the use of Pygments to do code highlighting. Do not attempt to guess
# the language if we don't specify.
- codehilite:
guess_lang: false
# Provide permalinks to help with linking to sections.
- toc:
permalink: true
# Support GitLab/GitHub-style task lists.
- pymdownx.tasklist:
custom_checkbox: true
# Allow code blocks to be nested inside other elements
- pymdownx.superfences
# Allow Markdown to be used within HTML elements with the "markdown" attribute set.
- md_in_html
# Definition lists
- def_list
# Tables
- tables
# Inline icons and emoji
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.details
# Allow for inline highlighting of code blocks.
- pymdownx.highlight
- pymdownx.inlinehilite
# Footnotes for the Pterry-inclined.
- footnotes
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
extra_css:
- stylesheets/badges.css
- stylesheets/code-block.css
- stylesheets/gitlab-labels.css
extra_javascript:
- https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js
- javascripts/tablesort.js
plugins:
- search
- macros
- badges
- git-revision-date-localized
- redirects:
redirect_maps:
"best-practice/git.md": "explanations/git.md"
"deployment/gcp-folders.md": "reference/cloud-platform/gcp-folders.md"
"deployment/permissions-and-roles.md": "reference/cloud-platform/permissions-and-roles.md"
"deployment/backups.md": "reference/cloud-platform/backups.md"
"deployment/dns.md": "reference/cloud-platform/dns.md"
"explanations/tech-lead-forum.md": "standards-and-compliance/tech-lead-forum.md"
- build_plantuml:
allow_multiple_roots: false # in case your codebase contains more locations for diagrams (all ending in diagram_root)
diagram_root: "docs/plantuml-diagrams" # should reside under docs_dir
input_extensions: "puml"
input_folder: "src"
output_folder: "out"
output_format: "svg" # or "png"
render: "server"
server: "http://plantuml:8080"
......@@ -2,6 +2,7 @@ Jinja2~=3.1
PyYAML~=6.0
mkdocs-badges~=0.4.4
mkdocs-build-plantuml-plugin~=1.4
mkdocs-exclude~=1.0.2
mkdocs-git-revision-date-localized-plugin~=1.3.0
mkdocs-macros-plugin~=1.3.5
mkdocs-material~=9.5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment