|
1 | | -# Configuration file for the Sphinx documentation builder. |
2 | | -# |
3 | | -# For the full list of built-in configuration values, see the documentation: |
4 | | -# https://www.sphinx-doc.org/en/master/usage/configuration.html |
5 | | - |
6 | | -from multiproject.utils import get_project |
7 | | -from datetime import datetime |
8 | | - |
9 | | -project = 'EmEditor' |
10 | | -copyright = '{} Emurasoft'.format(datetime.now().year) |
11 | | -author = 'Emurasoft' |
12 | | - |
13 | | -extensions = ['multiproject', 'myst_parser', 'sphinx_sitemap'] |
14 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'venv'] |
15 | | -html_static_path = ['_static'] |
16 | | -html_css_files = ['custom.css'] |
17 | | -templates_path = ['_templates'] |
18 | | -html_copy_source = False |
19 | | -html_favicon = '_static/favicon.ico' |
20 | | -sitemap_locales = ['en', 'ja', 'ko', 'zh-cn', 'zh-tw'] |
21 | | -highlight_language = 'none' |
22 | | -suppress_warnings = ['image.not_readable'] |
23 | | -navigation_depth = 2 |
24 | | -html_theme_path = ['_themes'] |
25 | | -html_theme = 'piccolo_theme' |
26 | | -html_show_sphinx = False |
27 | | -html_baseurl = 'https://www.emeditor.org/' |
28 | | -sitemap_url_scheme = '{lang}{link}' |
29 | | - |
30 | | -html_sidebars = { |
31 | | - '**': ['globaltoc.html'], |
32 | | -} |
33 | | - |
34 | | -multiproject_projects = { |
35 | | - 'en': {}, |
36 | | - 'ja': {}, |
37 | | - 'ko': {}, |
38 | | - 'zh-cn': {}, |
39 | | - 'zh-tw': {}, |
40 | | -} |
41 | | - |
42 | | -myst_enable_extensions = [ |
43 | | - 'amsmath', |
44 | | - 'attrs_inline', |
45 | | - 'colon_fence', |
46 | | - 'deflist', |
47 | | - 'dollarmath', |
48 | | - 'fieldlist', |
49 | | - 'html_admonition', |
50 | | - 'html_image', |
51 | | - 'linkify', |
52 | | - 'replacements', |
53 | | - 'smartquotes', |
54 | | - 'strikethrough', |
55 | | - 'substitution', |
56 | | - 'tasklist', |
57 | | -] |
58 | | - |
59 | | -match get_project(multiproject_projects): |
60 | | - case 'en': |
61 | | - language = 'en' |
62 | | - case 'ja': |
63 | | - language = 'ja' |
64 | | - case 'ko': |
65 | | - language = 'ko' |
66 | | - case 'zh-cn': |
67 | | - language = 'zh_CN' |
68 | | - case 'zh-tw': |
69 | | - language = 'zh_TW' |
70 | | - case _: |
71 | | - raise 'unknown project' |
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# For the full list of built-in configuration values, see the documentation: |
| 4 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 | + |
| 6 | +from multiproject.utils import get_project |
| 7 | +from datetime import datetime |
| 8 | + |
| 9 | +project = 'EmEditor' |
| 10 | +copyright = '{} Emurasoft'.format(datetime.now().year) |
| 11 | +author = 'Emurasoft' |
| 12 | + |
| 13 | +extensions = ['multiproject', 'myst_parser', 'sphinx_sitemap'] |
| 14 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'venv'] |
| 15 | +html_static_path = ['_static'] |
| 16 | +html_css_files = ['custom.css'] |
| 17 | +templates_path = ['_templates'] |
| 18 | +html_copy_source = False |
| 19 | +html_favicon = '_static/favicon.ico' |
| 20 | +sitemap_locales = ['en', 'ja', 'ko', 'zh-cn', 'zh-tw'] |
| 21 | +highlight_language = 'none' |
| 22 | +suppress_warnings = ['image.not_readable'] |
| 23 | +navigation_depth = 2 |
| 24 | +html_theme_path = ['_themes'] |
| 25 | +html_theme = 'piccolo_theme' |
| 26 | +html_show_sphinx = False |
| 27 | +html_baseurl = 'https://www.emeditor.org/' |
| 28 | +sitemap_url_scheme = '{lang}{link}' |
| 29 | + |
| 30 | +html_sidebars = { |
| 31 | + '**': ['globaltoc.html'], |
| 32 | +} |
| 33 | + |
| 34 | +multiproject_projects = { |
| 35 | + 'en': {}, |
| 36 | + 'ja': {}, |
| 37 | + 'ko': {}, |
| 38 | + 'zh-cn': {}, |
| 39 | + 'zh-tw': {}, |
| 40 | +} |
| 41 | + |
| 42 | +myst_enable_extensions = [ |
| 43 | + 'attrs_inline', |
| 44 | + 'html_image', |
| 45 | + 'linkify', |
| 46 | + 'strikethrough', |
| 47 | + 'substitution', |
| 48 | +] |
| 49 | + |
| 50 | +match get_project(multiproject_projects): |
| 51 | + case 'en': |
| 52 | + language = 'en' |
| 53 | + case 'ja': |
| 54 | + language = 'ja' |
| 55 | + case 'ko': |
| 56 | + language = 'ko' |
| 57 | + case 'zh-cn': |
| 58 | + language = 'zh_CN' |
| 59 | + case 'zh-tw': |
| 60 | + language = 'zh_TW' |
| 61 | + case _: |
| 62 | + raise 'unknown project' |
0 commit comments