|
13 | 13 | # -- General configuration --------------------------------------------------- |
14 | 14 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
15 | 15 |
|
16 | | -extensions = [] |
| 16 | +import recommonmark |
| 17 | +from recommonmark.transform import AutoStructify |
| 18 | + |
| 19 | +extensions = [ |
| 20 | + 'recommonmark', |
| 21 | +] |
| 22 | +# Configuration file for the Sphinx documentation builder. |
| 23 | +# |
| 24 | +# For the full list of built-in configuration values, see the documentation: |
| 25 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 26 | + |
| 27 | +# -- Project information ----------------------------------------------------- |
| 28 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 29 | + |
| 30 | +project = 'learning-python' |
| 31 | +copyright = '2025, v.skolan' |
| 32 | +author = 'v.skolan' |
| 33 | + |
| 34 | +# -- General configuration --------------------------------------------------- |
| 35 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 36 | + |
| 37 | +extensions = [ |
| 38 | + 'recommonmark', |
| 39 | +] |
| 40 | +html_theme = 'sphinx_rtd_theme' |
| 41 | +html_theme_path = ["_themes"] |
| 42 | +# Configuration file for the Sphinx documentation builder. |
| 43 | +# |
| 44 | +# For the full list of built-in configuration values, see the documentation: |
| 45 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 46 | + |
| 47 | +# -- Project information ----------------------------------------------------- |
| 48 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 49 | + |
| 50 | +project = 'learning-python' |
| 51 | +copyright = '2025, v.skolan' |
| 52 | +author = 'v.skolan' |
| 53 | + |
| 54 | +# -- General configuration --------------------------------------------------- |
| 55 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 56 | + |
| 57 | +extensions = [ |
| 58 | + 'recommonmark', |
| 59 | + 'sphinx_rtd_theme', |
| 60 | +] |
| 61 | +html_theme = 'sphinx_rtd_theme' |
| 62 | +html_theme_path = ["_themes"] |
| 63 | +# Configuration file for the Sphinx documentation builder. |
| 64 | +# |
| 65 | +# For the full list of built-in configuration values, see the documentation: |
| 66 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 67 | + |
| 68 | +# -- Project information ----------------------------------------------------- |
| 69 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 70 | + |
| 71 | +project = 'learning-python' |
| 72 | +copyright = '2025, v.skolan' |
| 73 | +author = 'v.skolan' |
| 74 | + |
| 75 | +# -- General configuration --------------------------------------------------- |
| 76 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 77 | + |
| 78 | +extensions = [ |
| 79 | + 'recommonmark', |
| 80 | + 'sphinx_rtd_theme', |
| 81 | +] |
| 82 | +html_theme = 'sphinx_rtd_theme' |
| 83 | +html_theme_path = ["_themes"] |
| 84 | +source_suffix = ['.rst', '.md'] |
| 85 | +# Configuration file for the Sphinx documentation builder. |
| 86 | +# |
| 87 | +# For the full list of built-in configuration values, see the documentation: |
| 88 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 89 | + |
| 90 | +# -- Project information ----------------------------------------------------- |
| 91 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 92 | + |
| 93 | +project = 'learning-python' |
| 94 | +copyright = '2025, v.skolan' |
| 95 | +author = 'v.skolan' |
| 96 | + |
| 97 | +# -- General configuration --------------------------------------------------- |
| 98 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 99 | + |
| 100 | +extensions = [ |
| 101 | + 'recommonmark', |
| 102 | + 'sphinx_rtd_theme', |
| 103 | +] |
| 104 | +html_theme = 'sphinx_rtd_theme' |
| 105 | +html_theme_path = ["_themes"] |
| 106 | +source_suffix = ['.rst', '.md'] |
| 107 | + |
| 108 | +def setup(app): |
| 109 | + app.add_config_value('recommonmark_config', { |
| 110 | + 'enable_eval_rst': True, |
| 111 | + 'auto_toc_tree_depth': 2, |
| 112 | + }, True) |
| 113 | + app.add_transform(AutoStructify) |
17 | 114 |
|
18 | 115 | templates_path = ['_templates'] |
19 | 116 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
|
0 commit comments