Skip to content

Commit 6693d8f

Browse files
committed
install myst_parser for Markdown
1 parent 223e525 commit 6693d8f

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

constraints.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
alabaster==0.7.12
2+
attrs==21.2.0
23
Babel==2.9.1
34
certifi==2021.5.30
45
charset-normalizer==2.0.4
56
docutils==0.17.1
67
idna==3.2
78
imagesize==1.2.0
89
Jinja2==3.0.1
10+
markdown-it-py==1.1.0
911
MarkupSafe==2.0.1
12+
mdit-py-plugins==0.2.8
13+
myst-parser==0.15.1
1014
packaging==21.0
1115
Pygments==2.10.0
1216
pyparsing==2.4.7
1317
pytz==2021.1
18+
PyYAML==5.4.1
1419
requests==2.26.0
1520
snowballstemmer==2.1.0
1621
Sphinx==4.1.2

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Sphinx
2-
2+
myst-parser

source/conf.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = 'Pythonスターターガイド'
21-
copyright = '2021, Python ED'
22-
author = 'Python ED'
20+
project = "Pythonスターターガイド"
21+
copyright = "2021, Python ED"
22+
author = "Python ED"
2323

2424

2525
# -- General configuration ---------------------------------------------------
@@ -28,17 +28,18 @@
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
3030
extensions = [
31+
"myst_parser",
3132
]
3233

3334
# Add any paths that contain templates here, relative to this directory.
34-
templates_path = ['_templates']
35+
templates_path = ["_templates"]
3536

3637
# The language for content autogenerated by Sphinx. Refer to documentation
3738
# for a list of supported languages.
3839
#
3940
# This is also used if you do content translation via gettext catalogs.
4041
# Usually you set "language" from the command line for these cases.
41-
language = 'ja'
42+
language = "ja"
4243

4344
# List of patterns, relative to source directory, that match files and
4445
# directories to ignore when looking for source files.
@@ -51,9 +52,14 @@
5152
# The theme to use for HTML and HTML Help pages. See the documentation for
5253
# a list of builtin themes.
5354
#
54-
html_theme = 'alabaster'
55+
html_theme = "alabaster"
5556

5657
# Add any paths that contain custom static files (such as style sheets) here,
5758
# relative to this directory. They are copied after the builtin static files,
5859
# so a file named "default.css" will overwrite the builtin "default.css".
59-
html_static_path = ['_static']
60+
html_static_path = ["_static"]
61+
62+
source_suffix = {
63+
".rst": "restructuredtext",
64+
".md": "markdown",
65+
}

0 commit comments

Comments
 (0)