Skip to content

Commit 3042979

Browse files
authored
docs: No code fence and the official myst VSCode extension. (#213)
1 parent af3d5d8 commit 3042979

File tree

6 files changed

+18
-36
lines changed

6 files changed

+18
-36
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"recommendations": [
33
"DavidAnson.vscode-markdownlint",
4+
"ExecutableBookProject.myst-highlight",
45
"PascalReitermann93.vscode-yaml-sort",
56
"charliermarsh.ruff",
67
"ms-python.black-formatter",
78
"ms-python.mypy-type-checker",
89
"ms-python.python",
910
"richie5um2.vscode-sort-json",
10-
"shd101wyy.markdown-preview-enhanced",
1111
"streetsidesoftware.code-spell-checker",
1212
"trond-snekvik.simple-rst"
1313
]

docs/conf.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,3 @@
5252
# https://autodoc-pydantic.readthedocs.io/en/stable/users/configuration.html
5353

5454
autodoc_pydantic_settings_show_json = False
55-
56-
# -- Options for myst-parser -------------------------------------------------
57-
# https://myst-parser.readthedocs.io/en/latest/configuration.html
58-
59-
myst_enable_extensions = [
60-
"colon_fence",
61-
]

docs/dev/env.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
After generating the project via `copier`, several necessary tools can be installed with the following commands.
66

7-
:::{note}
7+
```{note}
88
Using `pipx` for management is recommended and you can find pipx's installation instructions [here](https://pypa.github.io/pipx/installation/).
9-
:::
9+
```
1010

1111
```bash
1212
# Pipenv: Virtual environment and package manager for Python.
@@ -17,9 +17,9 @@ pipx install pre-commit
1717

1818
## Environment Setup
1919

20-
:::{note}
20+
```{note}
2121
A universal `Makefile` is located at the root directory of the repo, and all `make` related commands are supposed to run there.
22-
:::
22+
```
2323

2424
There is an all-in-one command to setup environment for daily development.
2525

@@ -57,9 +57,9 @@ make deepclean
5757

5858
With this command, the repo will be as if it has been re-cloned. It is useful if we want to start almost from scratch.
5959

60-
:::{caution}
60+
```{caution}
6161
This will remove all untracked files, please use it with caution. It is recommended to check with dry-run mode (`git clean -dfnx`) before actually removing anything. For more information, please refer to the [git-clean documentation](https://git-scm.com/docs/git-clean).
62-
:::
62+
```
6363

6464
```bash
6565
git clean -dfx
@@ -115,13 +115,11 @@ recommended for scenarios like test CI/CD process.
115115
make dev-test
116116
```
117117

118-
:::{admonition} Install a combination of the optional dependencies
118+
````{admonition} Install a combination of the optional dependencies
119119
:class: tip, dropdown
120-
121120
For example, to install requirements for `docs` and `lint`, we can use the following command.
122121
123122
```bash
124123
make dev-docs,lint
125124
```
126-
127-
:::
125+
````

template/.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"recommendations": [
33
"DavidAnson.vscode-markdownlint",
4+
"ExecutableBookProject.myst-highlight",
45
"PascalReitermann93.vscode-yaml-sort",
56
"charliermarsh.ruff",
67
"ms-python.black-formatter",
78
"ms-python.mypy-type-checker",
89
"ms-python.python",
910
"richie5um2.vscode-sort-json",
10-
"shd101wyy.markdown-preview-enhanced",
1111
"streetsidesoftware.code-spell-checker",
1212
"trond-snekvik.simple-rst"
1313
]

template/docs/conf.py.jinja

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,3 @@ autodoc_default_options = {
5252
# https://autodoc-pydantic.readthedocs.io/en/stable/users/configuration.html
5353

5454
autodoc_pydantic_settings_show_json = False
55-
56-
# -- Options for myst-parser -------------------------------------------------
57-
# https://myst-parser.readthedocs.io/en/latest/configuration.html
58-
59-
myst_enable_extensions = [
60-
"colon_fence",
61-
]

template/docs/dev/env.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
After generating the project via `copier`, several necessary tools can be installed with the following commands.
66

7-
:::{note}
7+
```{note}
88
Using `pipx` for management is recommended and you can find pipx's installation instructions [here](https://pypa.github.io/pipx/installation/).
9-
:::
9+
```
1010

1111
```bash
1212
# Pipenv: Virtual environment and package manager for Python.
@@ -17,9 +17,9 @@ pipx install pre-commit
1717

1818
## Environment Setup
1919

20-
:::{note}
20+
```{note}
2121
A universal `Makefile` is located at the root directory of the repo, and all `make` related commands are supposed to run there.
22-
:::
22+
```
2323

2424
There is an all-in-one command to setup environment for daily development.
2525

@@ -57,9 +57,9 @@ make deepclean
5757

5858
With this command, the repo will be as if it has been re-cloned. It is useful if we want to start almost from scratch.
5959

60-
:::{caution}
60+
```{caution}
6161
This will remove all untracked files, please use it with caution. It is recommended to check with dry-run mode (`git clean -dfnx`) before actually removing anything. For more information, please refer to the [git-clean documentation](https://git-scm.com/docs/git-clean).
62-
:::
62+
```
6363

6464
```bash
6565
git clean -dfx
@@ -115,13 +115,11 @@ recommended for scenarios like test CI/CD process.
115115
make dev-test
116116
```
117117

118-
:::{admonition} Install a combination of the optional dependencies
118+
````{admonition} Install a combination of the optional dependencies
119119
:class: tip, dropdown
120-
121120
For example, to install requirements for `docs` and `lint`, we can use the following command.
122121
123122
```bash
124123
make dev-docs,lint
125124
```
126-
127-
:::
125+
````

0 commit comments

Comments
 (0)