Skip to content

Commit 7a9a525

Browse files
committed
move from recommonmark to myst
1 parent 09a3907 commit 7a9a525

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.ci_scripts/environment.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ channels:
44
dependencies:
55
- python=3
66
- conda-smithy
7-
- sphinx<3
8-
- docutils<0.18
7+
- sphinx
98
- cloud_sptheme
109
- sphinxcontrib-fulltoc
1110
- make
1211
- xonsh
13-
- recommonmark
12+
- myst-parser
1413
- pyyaml
1514
- jinja2
1615
- requests

.ci_scripts/update_docs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ rm -rf docs/
2626
python .ci_scripts/generate_cfep_index.py
2727

2828
pushd src
29-
make html
29+
30+
# -W --keep-going: list all warnings but fail build in case there are any
31+
# -n: check validity of all links
32+
make html SPHINXOPTS="-W --keep-going -n"
3033
mv _build/html ../docs
3134
rm -rf _build
3235
popd

src/conf.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import datetime
1818

1919
import cloud_sptheme as csp
20-
import recommonmark.parser
2120

2221
# If extensions (or modules to document with autodoc) are in another directory,
2322
# add these directories to sys.path here. If the directory is relative to the
@@ -33,6 +32,7 @@
3332
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3433
# ones.
3534
extensions = [
35+
'myst_parser',
3636
'sphinx.ext.todo',
3737
'sphinxcontrib.fulltoc',
3838
'sphinxcontrib.newsfeed',
@@ -41,10 +41,6 @@
4141
# Add any paths that contain templates here, relative to this directory.
4242
templates_path = ['_templates']
4343

44-
# Transpile markdown into rest
45-
source_parsers = {
46-
'.md': 'recommonmark.parser.CommonMarkParser',
47-
}
4844

4945
# The suffix(es) of source filenames.
5046
# You can specify multiple suffix as a list of string:
@@ -86,7 +82,7 @@
8682
# List of patterns, relative to source directory, that match files and
8783
# directories to ignore when looking for source files.
8884
# This patterns also effect to html_static_path and html_extra_path
89-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
85+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'README.md']
9086

9187
# The reST default role (used for this markup: `text`) to use for all
9288
# documents.

0 commit comments

Comments
 (0)