|
| 1 | +# Copyright 2025 The KCP Authors. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | + |
| 16 | +site_name: api-syncagent |
| 17 | +repo_url: https://github.com/kcp-dev/api-syncagent |
| 18 | +repo_name: kcp-dev/api-syncagent |
| 19 | +site_url: https://docs.kcp.io/api-syncagent/ |
| 20 | + |
| 21 | +# Site navigation |
| 22 | +nav: |
| 23 | + - Home: README.md |
| 24 | + - Getting Started: getting-started.md |
| 25 | + - Publishing Resources: publish-resources.md |
| 26 | + - Consuming Services: consuming-services.md |
| 27 | + - FAQ: faq.md |
| 28 | + |
| 29 | +# Site content |
| 30 | +docs_dir: 'content' |
| 31 | +# Where to generate |
| 32 | +site_dir: 'generated' |
| 33 | + |
| 34 | +theme: |
| 35 | + name: material |
| 36 | + language: en |
| 37 | + # Common files such as images, stylesheets, theme overrides |
| 38 | + custom_dir: 'overrides' |
| 39 | + features: |
| 40 | + # Enable navigation section index pages, so we don't see Concepts > Concepts |
| 41 | + - navigation.indexes |
| 42 | + # Enable navigation tabs so we can group content by persona |
| 43 | + - navigation.tabs |
| 44 | + # Expand subsections by default for better visibility of content |
| 45 | + - navigation.expand |
| 46 | + # Show "back to top" button |
| 47 | + - navigation.top |
| 48 | + # Enable a copy button in code blocks |
| 49 | + - content.code.copy |
| 50 | + # Enable annotations on specific lines in code blocks |
| 51 | + - content.code.annotate |
| 52 | + logo: logo.svg |
| 53 | + favicon: favicons/favicon.ico |
| 54 | + palette: |
| 55 | + # Palette toggle for automatic mode |
| 56 | + - media: "(prefers-color-scheme)" |
| 57 | + toggle: |
| 58 | + icon: material/brightness-auto |
| 59 | + name: Switch to light mode |
| 60 | + |
| 61 | + # Palette toggle for light mode |
| 62 | + - media: "(prefers-color-scheme: light)" |
| 63 | + scheme: default |
| 64 | + primary: white |
| 65 | + toggle: |
| 66 | + icon: material/brightness-7 |
| 67 | + name: Switch to dark mode |
| 68 | + |
| 69 | + # Palette toggle for dark mode |
| 70 | + - media: "(prefers-color-scheme: dark)" |
| 71 | + scheme: slate |
| 72 | + primary: black |
| 73 | + toggle: |
| 74 | + icon: material/brightness-4 |
| 75 | + name: Switch to system preference |
| 76 | + |
| 77 | +extra_css: |
| 78 | + - stylesheets/crd.css |
| 79 | + |
| 80 | +extra: |
| 81 | + version: |
| 82 | + # Enable mike for multi-version selection |
| 83 | + provider: mike |
| 84 | + |
| 85 | + social: |
| 86 | + - icon: fontawesome/brands/github |
| 87 | + link: https://github.com/kcp-dev/kcp |
| 88 | + - icon: fontawesome/brands/slack |
| 89 | + link: https://kubernetes.slack.com/archives/C021U8WSAFK |
| 90 | + |
| 91 | +plugins: |
| 92 | + # https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin |
| 93 | + # Greater control over how navigation links are shown |
| 94 | + - awesome-pages |
| 95 | + # Docs site search |
| 96 | + - search |
| 97 | + # Use Jinja macros in .md files |
| 98 | + - macros: |
| 99 | + include_dir: 'overrides' |
| 100 | + module_name: 'main' |
| 101 | + # Configure multiple language support |
| 102 | + - i18n: |
| 103 | + docs_structure: suffix |
| 104 | + fallback_to_default: true |
| 105 | + languages: |
| 106 | + - build: true |
| 107 | + default: true |
| 108 | + locale: en |
| 109 | + name: English |
| 110 | + reconfigure_material: true |
| 111 | + reconfigure_search: true |
| 112 | + # Configure multi-version plugin |
| 113 | + - mike: |
| 114 | + alias_type: redirect |
| 115 | + |
| 116 | +markdown_extensions: |
| 117 | + # Code block highlighting |
| 118 | + - pymdownx.highlight: |
| 119 | + # Allows linking directly to specific lines in code blocks |
| 120 | + anchor_linenums: true |
| 121 | + - pymdownx.superfences: |
| 122 | + custom_fences: |
| 123 | + - name: mermaid |
| 124 | + class: mermaid |
| 125 | + format: !!python/name:pymdownx.superfences.fence_code_format |
| 126 | + # Inline code block highlighting |
| 127 | + - pymdownx.inlinehilite |
| 128 | + # Lets you embed content from another file |
| 129 | + - pymdownx.snippets |
| 130 | + # Arbitrary nesting of code/content blocks inside each other |
| 131 | + - pymdownx.superfences |
| 132 | + # Enable note/warning/etc. callouts |
| 133 | + - admonition |
| 134 | + |
| 135 | +# Live reload if any of these change when running 'mkdocs serve' |
| 136 | +watch: |
| 137 | + - mkdocs.yml |
| 138 | + - content |
| 139 | + - overrides |
0 commit comments