aboutsummaryrefslogtreecommitdiffstats
path: root/docs/mkdocs.yml
blob: 878457745089e2214c7f2909f2158863de97b307 (plain) (blame)
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
---
# Set some important site metadata attributes
site_name: PyDis DevOps
site_url: https://docs.pydis.wtf/

# Set GitHub repository metadata
repo_url: https://github.com/python-discord/infra
repo_name: python-discord/infra
edit_uri: edit/main/docs/docs/

copyright: Python Discord

# Enable markdown features
markdown_extensions:
  - abbr
  - admonition
  - attr_list
  - def_list
  - footnotes
  - md_in_html
  - pymdownx.details
  - pymdownx.snippets
  - pymdownx.superfences
  - pymdownx.tilde
  - pymdownx.tasklist:
      custom_checkbox: true
  - pymdownx.emoji:
      emoji_index: !!python/name:material.extensions.emoji.twemoji
      emoji_generator: !!python/name:material.extensions.emoji.to_svg
  - pymdownx.superfences:
      custom_fences:
        - name: mermaid
          class: mermaid
          format: !!python/name:pymdownx.superfences.fence_code_format

plugins:
  # Git document contributors
  - git-committers:
      repository: python-discord/infra
      branch: main
      enabled: !ENV [ENABLE_GIT_PLUGINS, false]
      docs_path: "docs/docs/"
  # Git change information
  - git-revision-date-localized:
      enable_creation_date: true
      enabled: !ENV [ENABLE_GIT_PLUGINS, false]
  # Interactive images
  - glightbox
  # Offline search
  - offline
  # Download assets to serve from local URL
  - privacy
  # Search functionality
  - search
  # Auto-generated social cards
  - social
  # Blog-style content for post-mortems and meeting notes
  - blog:
      blog_dir: post-mortems
  - blog:
      blog_dir: meeting-notes

# Theme preferences
theme:
  # Use mkdocs-material
  name: material
  # Partial overrides directory
  custom_dir: overrides
  # Set the logo
  logo: assets/logo.svg

  # Enable theme features
  features:
    # Add codeblock annotations
    - content.code.annotate
    # Git edits call-to-action
    - content.action.edit
    - content.action.view
    # Add nicer tooltips
    - content.tooltips
    # Use instant navigation for faster page loading, with a progress bar
    - navigation.instant
    - navigation.instant.progress
    # Top level sections appear on the top horizontal navbar
    - navigation.sections
    # Add a sticky top navigation bar
    - navigation.tabs
    - navigation.tabs.sticky
    - navigation.top
    # Searchbar features
    - search.highlight
    - search.suggest

  # Override some icons
  icon:
    repo: fontawesome/brands/github

  # Define palettes that are used to switch between light and dark mode
  palette:
    - media: "(prefers-color-scheme)"
      primary: blue
      toggle:
        icon: material/brightness-auto
        name: Switch to light mode

    - media: "(prefers-color-scheme: light)"
      primary: blue
      scheme: default
      toggle:
        icon: material/brightness-7
        name: Switch to dark mode

    - media: "(prefers-color-scheme: dark)"
      primary: blue
      scheme: slate
      toggle:
        icon: material/brightness-4
        name: Switch to system preference