|
| 1 | +site_name: libzim |
| 2 | +site_description: 'XX.' |
| 3 | +repo_url: https://github.com/openzim/python-libzim |
| 4 | +repo_name: GitHub |
| 5 | +edit_uri: edit/main/docs/ |
| 6 | + |
| 7 | +validation: |
| 8 | + omitted_files: warn |
| 9 | + absolute_links: warn |
| 10 | + unrecognized_links: warn |
| 11 | + |
| 12 | +nav: |
| 13 | + - Home: index.md |
| 14 | + - API Reference: api_reference/ |
| 15 | + - License: license.md |
| 16 | + |
| 17 | +theme: |
| 18 | + name: material |
| 19 | + logo: assets/openzim.png |
| 20 | + palette: |
| 21 | + # Light mode |
| 22 | + - scheme: default |
| 23 | + toggle: |
| 24 | + icon: material/brightness-7 |
| 25 | + name: Switch to dark mode |
| 26 | + # Dark mode |
| 27 | + - scheme: slate |
| 28 | + toggle: |
| 29 | + icon: material/brightness-4 |
| 30 | + name: Switch to light mode |
| 31 | + features: |
| 32 | + # Use XHR for page changes to avoid page flash during navigation. |
| 33 | + - navigation.instant |
| 34 | + - navigation.instant.progress |
| 35 | + # Use tabs and section headers rather than a single side navbar. |
| 36 | + - navigation.tabs |
| 37 | + - navigation.sections |
| 38 | + # Add buttons to edit content |
| 39 | + - content.action.edit |
| 40 | + - content.code.annotate |
| 41 | + - content.code.copy |
| 42 | + - content.tooltips |
| 43 | + - navigation.expand |
| 44 | + - navigation.footer |
| 45 | + - navigation.path |
| 46 | + - navigation.sections |
| 47 | + - navigation.tabs |
| 48 | + - navigation.tabs.sticky |
| 49 | + - navigation.top |
| 50 | + - search.highlight |
| 51 | + - search.suggest |
| 52 | + - toc.follow |
| 53 | + |
| 54 | +extra_css: |
| 55 | +- assets/mkdocstrings.css |
| 56 | + |
| 57 | +markdown_extensions: |
| 58 | + - attr_list |
| 59 | + - admonition |
| 60 | + - callouts: |
| 61 | + strip_period: no |
| 62 | + - footnotes |
| 63 | + - md_in_html |
| 64 | + - pymdownx.blocks.tab: |
| 65 | + alternate_style: true |
| 66 | + - pymdownx.snippets: |
| 67 | + base_path: . |
| 68 | + check_paths: true |
| 69 | + - pymdownx.superfences: |
| 70 | + custom_fences: |
| 71 | + - name: mermaid |
| 72 | + class: mermaid |
| 73 | + format: !!python/name:pymdownx.superfences.fence_code_format |
| 74 | + - pymdownx.tabbed: |
| 75 | + alternate_style: true |
| 76 | + slugify: !!python/object/apply:pymdownx.slugs.slugify |
| 77 | + kwds: |
| 78 | + case: lower |
| 79 | + - pymdownx.tasklist: |
| 80 | + custom_checkbox: true |
| 81 | + - toc: |
| 82 | + permalink: "¤" |
| 83 | + |
| 84 | +plugins: |
| 85 | + - search |
| 86 | + - markdown-exec: |
| 87 | + ansi: required |
| 88 | + |
| 89 | + # Replace externally hosted assets for compliance with various privacy regulations. |
| 90 | + - privacy |
| 91 | + |
| 92 | + # Nicely include markdown, e.g. to rewrite relative links |
| 93 | + - include-markdown |
| 94 | + |
| 95 | + # Generate API docs and navigation for them |
| 96 | + - gen-files: |
| 97 | + scripts: |
| 98 | + - gen_griffe_json.py |
| 99 | + - docs/scripts/generate_api_nav.py |
| 100 | + |
| 101 | + # Import additional nav from NAVIGATION.md files, like the one produced |
| 102 | + # by gen-files. |
| 103 | + - literate-nav: |
| 104 | + nav_file: NAVIGATION.md |
| 105 | + |
| 106 | + # Generate items |
| 107 | + - mkdocstrings: |
| 108 | + handlers: |
| 109 | + python: |
| 110 | + # Set up cross-references to Python types |
| 111 | + import: |
| 112 | + - url: https://docs.python.org/3/objects.inv |
| 113 | + domains: [std, py] |
| 114 | + - https://typing-extensions.readthedocs.io/en/latest/objects.inv |
| 115 | + paths: [libzim] |
| 116 | + options: |
| 117 | + load_external_modules: false |
| 118 | + allow_inspection: true |
| 119 | + force_inspection: true |
| 120 | + show_source: false |
| 121 | + docstring_section_style: list |
| 122 | + docstring_style: google |
| 123 | + filters: |
| 124 | + # attr and methods starting with _ |
| 125 | + - '!^_' |
| 126 | + # *_module_* for internal libzim-only vars that build the sub modules |
| 127 | + - '!_module_' |
| 128 | + # *_public_objects for internal libzim-only vars that exposes sub modules |
| 129 | + - '!_public_objects$' |
| 130 | + show_submodules: false |
| 131 | + inherited_members: true |
| 132 | + separate_signature: true |
| 133 | + show_signature_annotations: true |
| 134 | + show_symbol_type_heading: true |
| 135 | + show_symbol_type_toc: true |
| 136 | + signature_crossrefs: true |
| 137 | + summary: true |
| 138 | + show_if_no_docstring: true |
| 139 | + modernize_annotations: true |
0 commit comments