|
16 | 16 | # import sys |
17 | 17 | # sys.path.insert(0, os.path.abspath('.')) |
18 | 18 |
|
19 | | -import recommonmark |
20 | | -from recommonmark.transform import AutoStructify |
21 | | - |
22 | 19 |
|
23 | 20 | # -- Project information ----------------------------------------------------- |
24 | 21 |
|
25 | 22 | project = u'hickle' |
26 | | -copyright = u'2018-2020, Danny Price, Ellert van der Velden and contributors' |
| 23 | +copyright = u'2018-2025, Danny Price, Ellert van der Velden and contributors' |
27 | 24 | author = u'Danny Price' |
28 | 25 |
|
29 | 26 | # The short X.Y version |
|
44 | 41 | extensions = [ |
45 | 42 | 'sphinx.ext.autodoc', |
46 | 43 | 'sphinx.ext.githubpages', |
47 | | - 'sphinx.ext.napoleon' |
| 44 | + 'sphinx.ext.napoleon', |
| 45 | + 'myst_parser' |
48 | 46 | ] |
49 | 47 |
|
50 | 48 | # Add any paths that contain templates here, relative to this directory. |
51 | 49 | templates_path = ['_templates'] |
52 | 50 |
|
53 | 51 | # The suffix(es) of source filenames. |
54 | | -# You can specify multiple suffix as a list of string: |
55 | | -# |
56 | | -source_parsers = { |
57 | | - '.md': 'recommonmark.parser.CommonMarkParser', |
58 | | -} |
59 | | -source_suffix = ['.rst', '.md'] |
60 | | -#source_suffix = '.rst' |
| 52 | +source_suffix = {'.rst': None, '.md': 'myst'} |
61 | 53 |
|
62 | 54 | # The master toctree document. |
63 | | -master_doc = '../../README' |
| 55 | +master_doc = 'index' |
64 | 56 |
|
65 | 57 | # The language for content autogenerated by Sphinx. Refer to documentation |
66 | 58 | # for a list of supported languages. |
67 | 59 | # |
68 | 60 | # This is also used if you do content translation via gettext catalogs. |
69 | 61 | # Usually you set "language" from the command line for these cases. |
70 | | -language = None |
| 62 | +language = 'en' |
71 | 63 |
|
72 | 64 | # List of patterns, relative to source directory, that match files and |
73 | 65 | # directories to ignore when looking for source files. |
|
84 | 76 | # a list of builtin themes. |
85 | 77 | # |
86 | 78 | html_theme = "sphinx_rtd_theme" |
87 | | -html_theme_path = ["_themes", ] |
88 | 79 |
|
89 | 80 | # Theme options are theme-specific and customize the look and feel of a theme |
90 | 81 | # further. For a list of options available for each theme, see the |
|
181 | 172 |
|
182 | 173 | # A list of files that should not be packed into the epub file. |
183 | 174 | epub_exclude_files = ['search.html'] |
184 | | - |
185 | | - |
186 | | -# -- Extension configuration ------------------------------------------------- |
187 | | - |
188 | | -def setup(app): |
189 | | - app.add_config_value('recommonmark_config', { |
190 | | - 'url_resolver': lambda url: github_doc_root + url, |
191 | | - 'auto_toc_tree_section': 'Contents', |
192 | | - }, True) |
193 | | - app.add_transform(AutoStructify) |
0 commit comments