1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
From: Sergio de Almeida Cipriano Junior <sergiosacj@hotmail.com.br>
Date: Sun, 7 Feb 2021 11:00:31 -0300
Subject: Replace mkdocs material with readthedocs markdown_extensions
Even thought mkdocs-material is packaged in Debian, using it and the
markdown_extensions will cause many privacy-breach-generic lintians.
This patch hasrequired minimum maintenance since it was introduced,
so using mkdocs default theme solves the problem for now. Additionally,
the mdx_include extension remains to be packaged.
Forwarded: not-needed
Last-Update: 2025-01-01
---
mkdocs.yml | 119 ++++++-------------------------------------------------------
1 file changed, 10 insertions(+), 109 deletions(-)
diff --git a/mkdocs.yml b/mkdocs.yml
index a9a6610..b2cd312 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -1,71 +1,20 @@
-INHERIT: ./mkdocs.maybe-insiders.yml
site_name: Typer
site_description: Typer, build great CLIs. Easy to code. Based on Python type hints.
site_url: https://typer.tiangolo.com/
theme:
- name: material
- custom_dir: docs/overrides
+ name: 'readthedocs'
palette:
- - media: "(prefers-color-scheme)"
- toggle:
- icon: material/lightbulb-auto
- name: Switch to light mode
- - media: '(prefers-color-scheme: light)'
- scheme: default
- primary: black
- accent: teal
- toggle:
- icon: material/lightbulb
- name: Switch to dark mode
- - media: '(prefers-color-scheme: dark)'
- scheme: slate
- primary: black
- accent: teal
- toggle:
- icon: material/lightbulb-outline
- name: Switch to system preference
- features:
- - content.code.annotate
- - content.code.copy
- # - content.code.select
- - content.footnote.tooltips
- - content.tabs.link
- - content.tooltips
- - navigation.footer
- - navigation.indexes
- - navigation.instant
- - navigation.instant.prefetch
- # - navigation.instant.preview
- - navigation.instant.progress
- - navigation.path
- - navigation.tabs
- - navigation.tabs.sticky
- - navigation.top
- - navigation.tracking
- - search.highlight
- - search.share
- - search.suggest
- - toc.follow
-
+ primary: 'black'
+ accent: 'teal'
icon:
- repo: fontawesome/brands/github-alt
- logo: img/icon.svg
- favicon: img/favicon.png
- language: en
-repo_name: fastapi/typer
-repo_url: https://github.com/fastapi/typer
-plugins:
- # Material for MkDocs
- search:
- social:
- # Other plugins
- macros:
- include_yaml:
- - members: data/members.yml
- redirects:
- redirect_maps:
- typer-cli.md: tutorial/typer-command.md
+ repo: fontawesome/brands/github-alt
+ logo: 'img/icon-white.svg'
+ favicon: 'img/favicon.png'
+
+repo_name: tiangolo/typer
+repo_url: https://github.com/tiangolo/typer
+edit_uri: ""
nav:
- Typer: index.md
@@ -147,54 +96,6 @@ nav:
- management.md
- release-notes.md
-markdown_extensions:
- # Python Markdown
- abbr:
- attr_list:
- footnotes:
- md_in_html:
- tables:
- toc:
- permalink: true
-
- # Python Markdown Extensions
- pymdownx.betterem:
- smart_enable: all
- pymdownx.caret:
- pymdownx.highlight:
- line_spans: __span
- pymdownx.inlinehilite:
- pymdownx.keys:
- pymdownx.mark:
- pymdownx.superfences:
- custom_fences:
- - name: mermaid
- class: mermaid
- format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tilde:
-
- # pymdownx blocks
- pymdownx.blocks.admonition:
- types:
- - note
- - attention
- - caution
- - danger
- - error
- - tip
- - hint
- - warning
- # Custom types
- - info
- - check
- pymdownx.blocks.details:
- pymdownx.blocks.tab:
- alternate_style: True
-
- # Other extensions
- mdx_include:
- markdown_include_variants:
-
extra:
social:
- icon: fontawesome/brands/github-alt
|