Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
115cbec9
Commit
115cbec9
authored
Jun 20, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{update] 修改config,支持pdf
parent
97778739
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
15 deletions
+33
-15
conf.py
docs/conf.py
+33
-15
No files found.
docs/conf.py
View file @
115cbec9
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# add these directories to sys.path here. If the directory is relative to the
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
#
#
import os
import
os
# import sys
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# sys.path.insert(0, os.path.abspath('.'))
import
sphinx_rtd_theme
import
sphinx_rtd_theme
...
@@ -114,24 +114,42 @@ htmlhelp_basename = u'Jumpserver 文档'
...
@@ -114,24 +114,42 @@ htmlhelp_basename = u'Jumpserver 文档'
# -- Options for LaTeX output ------------------------------------------------
# -- Options for LaTeX output ------------------------------------------------
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
latex_elements
=
{
if
on_rtd
:
latex_elements
=
{
# The paper size ('letterpaper' or 'a4paper').
# The paper size ('letterpaper' or 'a4paper').
#
#'papersize': 'letterpaper',
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
# The font size ('10pt', '11pt' or '12pt').
#
#'pointsize': '10pt',
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
# Additional stuff for the LaTeX preamble.
#
'preamble'
:
r'''
# 'preamble': '',
\hypersetup{unicode=true}
\usepackage{CJKutf8}
# Latex figure (float) alignment
\DeclareUnicodeCharacter{00A0}{\nobreakspace}
#
\DeclareUnicodeCharacter{2203}{\ensuremath{\exists}}
# 'figure_align': 'htbp',
\DeclareUnicodeCharacter{2200}{\ensuremath{\forall}}
}
\DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}}
\DeclareUnicodeCharacter{2713}{x}
\DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}}
\DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}}
\DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}}
\DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}}
\DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}}
\begin{CJK}{UTF8}{gbsn}
\AtEndDocument{\end{CJK}}
'''
,
}
else
:
latex_elements
=
{
'papersize'
:
'a4paper'
,
'utf8extra'
:
''
,
'inputenc'
:
''
,
'babel'
:
r'''\usepackage[english]{babel}'''
,
'preamble'
:
r'''
\usepackage{ctex}
'''
,
}
# Grouping the document tree into LaTeX files. List of tuples
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# (source start file, target name, title,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment