Skip to content

Commit df0cac3

Browse files
authored
Merge pull request #35 from samsrabin/use-myst
Use MyST markdown parser
2 parents b656726 + 10fe3c6 commit df0cac3

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

conf.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
'sphinx.ext.todo',
4040
'sphinx.ext.coverage',
4141
'sphinx.ext.githubpages',
42-
'sphinx_mdinclude',
42+
'myst_parser',
4343
]
4444

4545
# Add any paths that contain templates here, relative to this directory.
@@ -93,6 +93,15 @@
9393
# If true, `todo` and `todoList` produce output, else they produce nothing.
9494
todo_include_todos = True
9595

96+
# Do not render straight quotes as smart quotes.
97+
smartquotes = False
98+
99+
# -- Options for MyST Markdown --------------------------------------------
100+
101+
myst_enable_extensions = [
102+
"dollarmath",
103+
]
104+
96105
# -- Options for HTML output ----------------------------------------------
97106

98107
# The theme to use for HTML and HTML Help pages. See the documentation for

doc_builder/build_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import shutil
88
from doc_builder import sys_utils # pylint: disable=import-error
99

10-
DEFAULT_IMAGE = "ghcr.io/escomp/ctsm/ctsm-docs:v1.0.1"
10+
DEFAULT_IMAGE = "ghcr.io/escomp/ctsm/ctsm-docs:v2.0.1"
1111

1212
# The path in the container's filesystem where doc-builder's parent repo checkout is mounted
1313
_CONTAINER_HOME = "/home/user/mounted_home"

test/test_unit_get_build_command.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
from unittest.mock import patch
88

99
# pylint: disable=import-error
10-
from doc_builder.build_commands import get_build_command, get_mount_arg, get_container_cli_tool
10+
from doc_builder.build_commands import (
11+
get_build_command,
12+
get_mount_arg,
13+
get_container_cli_tool,
14+
DEFAULT_IMAGE,
15+
)
1116

1217
# Allow names that pylint doesn't like, because otherwise I find it hard
1318
# to make readable unit test names
@@ -136,7 +141,7 @@ def test_container(self, mock_get_toplevel_of_doc_builder_parent):
136141
"--rm",
137142
"-e",
138143
"current_version=None",
139-
"ghcr.io/escomp/ctsm/ctsm-docs:v1.0.1",
144+
DEFAULT_IMAGE,
140145
"make",
141146
f"SPHINXOPTS=-W --keep-going -c '{os.path.dirname(conf_py_path)}'",
142147
"BUILDDIR=/home/user/mounted_home/foorepos/foodocs/versions/main",
@@ -176,7 +181,7 @@ def test_container_relpath(self, mock_get_toplevel_of_doc_builder_parent):
176181
"--rm",
177182
"-e",
178183
"current_version=None",
179-
"ghcr.io/escomp/ctsm/ctsm-docs:v1.0.1",
184+
DEFAULT_IMAGE,
180185
"make",
181186
"SPHINXOPTS=-W --keep-going",
182187
"BUILDDIR=/home/user/mounted_home/foorepos/foodocs/versions/main",
@@ -216,7 +221,7 @@ def test_container_no_clitool_given(self, mock_get_toplevel_of_doc_builder_paren
216221
"--rm",
217222
"-e",
218223
"current_version=None",
219-
"ghcr.io/escomp/ctsm/ctsm-docs:v1.0.1",
224+
DEFAULT_IMAGE,
220225
"make",
221226
f"SPHINXOPTS=-W --keep-going -c '{os.path.dirname(conf_py_path)}'",
222227
"BUILDDIR=/home/user/mounted_home/foorepos/foodocs/versions/main",

0 commit comments

Comments
 (0)