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