Skip to content

Commit 2665a24

Browse files
authored
DRIVERS-2789 Finish Markdown Spec Migration (#1656)
DRIVERS-2789 Finish Markdown Spec Migration
1 parent ef32381 commit 2665a24

File tree

54 files changed

+332
-988
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+332
-988
lines changed

.github/workflows/lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ jobs:
1818
run: |
1919
pip install -U -q pre-commit
2020
pre-commit run --all-files --hook-stage manual
21+
22+
mkdocs:
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 5
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-python@v4
29+
- name: Setup dependencies
30+
run: pip install -r source/requirements.txt
31+
- name: Check docs
32+
run: mkdocs build --strict

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ codereview.rc
1212
docs_build
1313
.pytest_cache
1414
node_modules
15-
package-lock.json
15+
package-lock.json
16+
site

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ repos:
3636
name: generate-index
3737
entry: python3 scripts/generate_index.py
3838
language: system
39-
- id: check-anchors
40-
name: check-anchors
41-
types: [markdown]
42-
entry: bash scripts/check_anchors/check-anchors.sh
43-
language: node
4439
- id: markdown-link-format-check
4540
name: markdown-link-format-check
4641
types: [markdown]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ pip install mkdocs
5353
mkdocs serve
5454
```
5555

56+
To build the docs, use `mkdocs build`.
57+
58+
In CI we verify that there are no warnings. To replicate locally, run `mkdocs build --strict`.
59+
5660
## Converting to JSON
5761

5862
There are many YAML to JSON converters. There are even several converters called `yaml2json` in NPM. Alas, we are not

markdown_link_config.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
{
22
"ignorePatterns": [
3-
{
4-
"pattern": "^/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#"
5-
},
63
{
74
"pattern": "^#"
85
},
9-
{
10-
"pattern": "^../command-logging-and-monitoring/command-monitoring.rst#security"
11-
},
12-
{
13-
"pattern": "^logging/logging.rst#log-severity-levels"
14-
},
15-
{
16-
"pattern": "./enumerate-indexes.rst"
17-
},
186
{
197
"pattern": "^https://github.com/10gen/mongo-enterprise-modules"
208
},
@@ -23,9 +11,6 @@
2311
},
2412
{
2513
"pattern": "cloudkms.googleapis.com"
26-
},
27-
{
28-
"pattern": "subtype6#intent-to-encrypt"
2914
}
3015
]
3116
}

mkdocs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@ nav:
44
- 'index.md'
55
markdown_extensions:
66
- admonition
7+
- toc:
8+
permalink:
79
plugins:
8-
- gh-admonitions
10+
- gh-admonitions
11+
validation:
12+
absolute_links: warn
13+
unrecognized_links: warn
14+
anchors: warn

scripts/check_anchors/check-anchors.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/check_anchors/index.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)