-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconf.py
More file actions
120 lines (104 loc) · 3.04 KB
/
Copy pathconf.py
File metadata and controls
120 lines (104 loc) · 3.04 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# 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
import os
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.png'
highlight_language = 'none'
suppress_warnings = [
'image.not_readable',
'myst.header',
'git.dependency_not_found'
]
navigation_depth = 2
html_theme_path = ['_themes']
html_theme = 'piccolo_theme'
html_show_sphinx = False
html_baseurl = 'https://help.emeditor.com/'
smartquotes = False
sitemap_locales = ['en', 'ja', 'ko', 'zh-cn', 'zh-tw']
sitemap_url_scheme = '{lang}{link}'
sitemap_show_lastmod = True
latex_engine = 'lualatex'
latex_elements = {
'fontpkg': r'''
\usepackage{luatexja}
\usepackage{luatexja-fontspec}
\usepackage{fontspec}
\setmainfont[
Path=../../fonts/
]{NotoSans-VariableFont.ttf}
\setmainjfont[
Path=../../fonts/
]{NotoSerifCJKjp-VF.ttf}
% Emoji
\newfontfamily\emojifont[
Path=../../fonts/,
UprightFont=segoe-ui-emoji.ttf
]{Segoe UI Emoji}
\newcommand{\emoji}[1]{{\emojifont #1}}
% Symbols
\newfontfamily\symbolafont[
Path=../../fonts/,
UprightFont=Symbola.ttf
]{Symbola}
% Command to insert Symbola characters safely
\newcommand{\symbolchar}[1]{{\symbolafont #1}}
''',
'preamble': r'''
% Flush left
\raggedright
% Break lines in tables
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{makecell}
\usepackage{array}
\usepackage{ragged2e}
\renewcommand{\arraystretch}{1.2}
\renewcommand{\tabcolsep}{4pt}
\newcolumntype{l}{>{\RaggedRight\arraybackslash}p{5cm}}
'''
}
if os.getenv('SPHINX_BUILDER') == 'latex':
exclude_patterns = ['about/thirdPartyLicenses.md']
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'