-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdocs.yml
More file actions
165 lines (155 loc) · 5.08 KB
/
Copy pathmkdocs.yml
File metadata and controls
165 lines (155 loc) · 5.08 KB
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
158
159
160
161
162
163
164
165
site_name: Commit Check
# Deploy previews override this so the preview is self-consistent; see
# netlify.toml.
site_url: !ENV [SITE_URL, 'https://commit-check.com/']
site_description: >-
Enforce commit message, branch naming, author and signoff standards —
one policy, across your CLI, pre-commit hooks, CI, and AI agents.
site_author: shenxianpeng
copyright: Copyright © 2022 - 2026 Commit Check
# The documentation covers a family of repositories, so the links point at the
# organisation rather than at any single one. edit_uri is absolute for the same
# reason: the pages live here, not in the repository they document.
repo_url: https://github.com/commit-check/commit-check.com
repo_name: commit-check/commit-check.com
edit_uri: edit/main/docs/
docs_dir: docs
# The deploy workflow builds with --strict, which turns these into errors. The
# pages cross-link by section anchor rather than by page alone, and an anchor
# that no longer exists is invisible in a rendered page — it just scrolls to the
# top. Failing the build is the only way that gets noticed.
validation:
unrecognized_links: warn
anchors: warn
theme:
name: material
language: en
custom_dir: docs/overrides
logo: assets/logo.svg
favicon: assets/favicon.svg
icon:
repo: fontawesome/brands/github
font:
text: Inter
code: JetBrains Mono
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Follow system theme
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
accent: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
accent: custom
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
# Navigation lives in the left sidebar, grouped into sections — deliberately
# not navigation.tabs, which moves the top level up into the header.
- navigation.sections
- navigation.top
- navigation.tracking
- navigation.instant
- navigation.instant.progress
- navigation.footer
- toc.follow
- search.suggest
- search.highlight
- search.share
- content.code.copy
- content.code.annotate
- content.tabs.link
- content.action.edit
extra_css:
# Brand colours and typography, then the landing-page-specific layout.
- assets/extra.css
- stylesheets/extra.css
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/commit-check
name: Commit Check on GitHub
- icon: fontawesome/brands/python
link: https://pypi.org/project/commit-check/
name: commit-check on PyPI
analytics:
provider: google
property: G-TSR5L4JL2V
markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- tables
- toc:
permalink: true
permalink_title: Link to this section
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.snippets
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
plugins:
- search
- blog
# Generates the preview image shown when a page is shared on Slack, X or
# LinkedIn. Needs cairo and pillow, which the docs requirements pull in.
#
# Deploy previews turn this off (see netlify.toml): nobody shares a preview
# link for its preview image, and skipping the cards keeps those builds fast
# and free of the system cairo dependency.
- social:
enabled: !ENV [SOCIAL_CARDS, true]
cards_layout_options:
background_color: "#2c9ccd"
hooks:
- scripts/mkdocs_hooks.py
# Two groups, split by what the reader is doing: Guides are pages you follow to
# get something done, Reference is what you look a fact up in. The pages are
# ordered within each group by how often they are needed.
#
# There was a third group, "About", holding migration, troubleshooting and the
# changelog — none of which is about the project. Troubleshooting was the
# problem: it is the page you want when a build has just gone red, and nobody
# looks under "About" for that. It has exactly one inbound link in the whole
# site, so the nav was doing nearly all the work of making it findable.
nav:
- Home: index.md
- Getting started: getting-started.md
- Guides:
- Integrations: guides/integrations.md
- Policy guides: guides/policies.md
- Command-line recipes: example.md
- Troubleshooting: troubleshoot.md
- Migrating from v1: migration.md
- Reference:
- Rules: rules.md
- Configuration: configuration.md
- Changelog: changelog.md
- Blog:
- blog/index.md