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