Skip to content
Snippets Groups Projects
Commit e1417d70 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny:
Browse files

add light/dark switch, change color schema

parent 2a4739d1
No related branches found
No related tags found
No related merge requests found
Pipeline #8424586 failed
# Copyright (c) 2002-2024 CERN for the benefit of the ATLAS collaboration
# Project information
site_name: GeoModel - A Detector Description Toolkit for HEP site_name: GeoModel - A Detector Description Toolkit for HEP
site_description: GeoModel - An experiment-agnostic Detector Description Toolkit for HEP site_author: GeoModel Core Team (ATLAS Collaboration)
site_author: ATLAS Collaboration & Contributors site_url: https://geomodel.web.cern.ch/home/
site_url: https://cern.ch/geomodel/home # site_author: geomodel-developers@cern.ch
site_description: GeoModel - An experiment-agnostic Detector Description Toolkit for High Energy Physics experiments
#site_description: >-
# Write your documentation in Markdown and create a professional static site in
# minutes – searchable, customizable, in 60+ languages, for all devices
# Repository
repo_name: GeoModel repo_name: GeoModel
repo_url: https://gitlab.cern.ch/GeoModelDev/GeoModel repo_url: https://gitlab.cern.ch/GeoModelDev/GeoModel
site_author: geomodel-developers@cern.ch
# Copyright
copyright: Copyright © 2016 - 2024 Martin Donath
# ==================
# Configuration
# ==================
theme: theme:
name: material name: material
palette:
# Palette toggle for light mode
- scheme: default
primary: purple #pink #yellow #indigo
toggle:
icon: material/weather-sunny
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
primary: purple #pink #yellow #indigo
toggle:
icon: material/weather-night
name: Switch to light mode
# Extensions
markdown_extensions:
- smarty # to use 'SmartyPants' typography extensions as '---' for em-dashes
- admonition # to use notes, warnings, tips, ...
- footnotes # to set footnotes
- pymdownx.superfences
- pymdownx.superfences: # to use code blocks nested under lists items
# make exceptions to highlighting of code:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid
- toc:
permalink: true
- markdown_include.include:
base_path: docs
- pymdownx.arithmatex: # to use LaTeX syntax in Markdown files
generic: true
#- markdown.extensions.attr_list # to use custom css settings, e.g. {: .center}. Not used now
- attr_list # for icons&emojis and the HTML grid on the front page
- md_in_html # for the HTML grid on the front page
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
# Plugins
plugins:
- search
- macros:
module_name: imgutils
verbose: true # enables debug through the 'chatter' method
- mermaid2 # for diagrams
#- git-revision-date #TODO: the mkdocs docker image apparently lacks the git exec, so this cannot be used. Update the image!
# Additional configuration
extra_css:
- material_nested_lists_rendering.css
extra_javascript:
- javascripts/config.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- https://unpkg.com/mermaid/dist/mermaid.min.js
# ========================
# Page tree
# ========================
nav: nav:
- Home: 'index.md' - Home: 'index.md'
- 'Install Libraries & Tools': 'start/install.md' - 'Install Libraries & Tools': 'start/install.md'
...@@ -65,40 +152,6 @@ nav: ...@@ -65,40 +152,6 @@ nav:
# - 'Internal': 'papers/internal.md' # - 'Internal': 'papers/internal.md'
- Team & History: 'about/team.md' - Team & History: 'about/team.md'
- Contacts: 'about/contacts.md' - Contacts: 'about/contacts.md'
- License: 'about/license.md'
extra_css:
- material_nested_lists_rendering.css
markdown_extensions:
- smarty # to use 'SmartyPants' typography extensions as '---' for em-dashes
- admonition # to use notes, warnings, tips, ...
- footnotes # to set footnotes
- pymdownx.superfences
- pymdownx.superfences: # to use code blocks nested under lists items
# make exceptions to highlighting of code:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid
- toc:
permalink: true
- markdown_include.include:
base_path: docs
- pymdownx.arithmatex: # to use LaTeX syntax in Markdown files
generic: true
#- markdown.extensions.attr_list # to use custom css settings, e.g. {: .center}. Not used now
plugins:
- search
- macros:
module_name: imgutils
verbose: true # enables debug through the 'chatter' method
- mermaid2 # for diagrams
#- git-revision-date #TODO: the mkdocs docker image apparently lacks the git exec, so this cannot be used. Update the image!
extra_javascript:
- javascripts/config.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- https://unpkg.com/mermaid/dist/mermaid.min.js
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