|
| 1 | +# MkDocs configuration |
| 2 | +# For details see: https://www.mkdocs.org/user-guide/configuration/ |
| 3 | + |
| 4 | +# Project information |
| 5 | +site_name: "Frequenz Dispatch API" |
| 6 | +site_description: "Frequenz gRPC API to propagate dispatches to microgrids" |
| 7 | +site_author: "Frequenz Energy-as-a-Service GmbH" |
| 8 | +copyright: "Copyright © 2023 Frequenz Energy-as-a-Service GmbH" |
| 9 | +repo_name: "frequenz-api-dispatch" |
| 10 | +repo_url: "https://github.com/frequenz-floss/frequenz-api-dispatch" |
| 11 | +edit_uri: "edit/v0.x.x/docs/" |
| 12 | +strict: true # Treat warnings as errors |
| 13 | + |
| 14 | +# Build directories |
| 15 | +theme: |
| 16 | + name: "material" |
| 17 | + logo: logo.png |
| 18 | + favicon: logo.png |
| 19 | + language: en |
| 20 | + icon: |
| 21 | + edit: material/file-edit-outline |
| 22 | + repo: fontawesome/brands/github |
| 23 | + custom_dir: docs/overrides |
| 24 | + features: |
| 25 | + - content.code.annotate |
| 26 | + - content.code.copy |
| 27 | + - navigation.instant |
| 28 | + - navigation.tabs |
| 29 | + - navigation.top |
| 30 | + - navigation.tracking |
| 31 | + - toc.follow |
| 32 | + palette: |
| 33 | + - media: "(prefers-color-scheme: light)" |
| 34 | + scheme: default |
| 35 | + primary: indigo |
| 36 | + accent: deep purple |
| 37 | + toggle: |
| 38 | + icon: material/weather-sunny |
| 39 | + name: Switch to dark mode |
| 40 | + - media: "(prefers-color-scheme: dark)" |
| 41 | + scheme: slate |
| 42 | + primary: black |
| 43 | + accent: teal |
| 44 | + toggle: |
| 45 | + icon: material/weather-night |
| 46 | + name: Switch to light mode |
| 47 | + |
| 48 | +extra: |
| 49 | + social: |
| 50 | + - icon: fontawesome/brands/github |
| 51 | + link: https://github.com/frequenz-floss |
| 52 | + - icon: fontawesome/brands/linkedin |
| 53 | + link: https://www.linkedin.com/company/frequenz-com |
| 54 | + version: |
| 55 | + provider: mike |
| 56 | + default: latest |
| 57 | + |
| 58 | +extra_css: |
| 59 | + - css/style.css |
| 60 | + - css/mkdocstrings.css |
| 61 | + |
| 62 | +# Formatting options |
| 63 | +markdown_extensions: |
| 64 | + - admonition |
| 65 | + - attr_list |
| 66 | + - pymdownx.details |
| 67 | + - pymdownx.highlight: |
| 68 | + anchor_linenums: true |
| 69 | + line_spans: __span |
| 70 | + pygments_lang_class: true |
| 71 | + - pymdownx.keys |
| 72 | + - pymdownx.snippets: |
| 73 | + check_paths: true |
| 74 | + - pymdownx.superfences: |
| 75 | + custom_fences: |
| 76 | + - name: mermaid |
| 77 | + class: mermaid |
| 78 | + format: "!!python/name:pymdownx.superfences.fence_code_format" |
| 79 | + - pymdownx.tabbed |
| 80 | + - pymdownx.tasklist |
| 81 | + - toc: |
| 82 | + permalink: "¤" |
| 83 | + |
| 84 | +plugins: |
| 85 | + - gen-files: |
| 86 | + scripts: |
| 87 | + - docs/mkdocstrings_autoapi.py |
| 88 | + - literate-nav: |
| 89 | + nav_file: SUMMARY.md |
| 90 | + - mike: |
| 91 | + canonical_version: latest |
| 92 | + - mkdocstrings: |
| 93 | + custom_templates: templates |
| 94 | + default_handler: python |
| 95 | + handlers: |
| 96 | + python: |
| 97 | + options: |
| 98 | + paths: ["py"] |
| 99 | + docstring_section_style: spacy |
| 100 | + merge_init_into_class: false |
| 101 | + show_category_heading: true |
| 102 | + show_root_heading: true |
| 103 | + show_root_members_full_path: true |
| 104 | + show_source: true |
| 105 | + import: |
| 106 | + # See https://mkdocstrings.github.io/python/usage/#import for details |
| 107 | + - https://docs.python.org/3/objects.inv |
| 108 | + - https://grpc.github.io/grpc/python/objects.inv |
| 109 | + - https://typing-extensions.readthedocs.io/en/stable/objects.inv |
| 110 | + - search |
| 111 | + - section-index |
| 112 | + |
| 113 | +# Preview controls |
| 114 | +watch: |
| 115 | + - "py" |
| 116 | + - README.md |
| 117 | + - CONTRIBUTING.md |
0 commit comments