[doc] formating
This commit is contained in:
4
docs/_templates/alabaster/__init__.py
vendored
4
docs/_templates/alabaster/__init__.py
vendored
@ -14,11 +14,11 @@ def get_path():
|
|||||||
def update_context(app, pagename, templatename, context, doctree):
|
def update_context(app, pagename, templatename, context, doctree):
|
||||||
context['alabaster_version'] = version.__version__
|
context['alabaster_version'] = version.__version__
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# add_html_theme is new in Sphinx 1.6+
|
# add_html_theme is new in Sphinx 1.6+
|
||||||
if hasattr(app, 'add_html_theme'):
|
if hasattr(app, 'add_html_theme'):
|
||||||
theme_path = os.path.abspath(os.path.dirname(__file__))
|
theme_path = os.path.abspath(os.path.dirname(__file__))
|
||||||
app.add_html_theme('alabaster', theme_path)
|
app.add_html_theme('alabaster', theme_path)
|
||||||
app.connect('html-page-context', update_context)
|
app.connect('html-page-context', update_context)
|
||||||
return {'version': version.__version__,
|
return {'version': version.__version__, 'parallel_read_safe': True}
|
||||||
'parallel_read_safe': True}
|
|
||||||
|
|||||||
8
docs/_templates/alabaster/support.py
vendored
8
docs/_templates/alabaster/support.py
vendored
@ -16,10 +16,8 @@ class Alabaster(Style):
|
|||||||
Whitespace: "underline #f8f8f8", # class: 'w'
|
Whitespace: "underline #f8f8f8", # class: 'w'
|
||||||
Error: "#a40000 border:#ef2929", # class: 'err'
|
Error: "#a40000 border:#ef2929", # class: 'err'
|
||||||
Other: "#000000", # class 'x'
|
Other: "#000000", # class 'x'
|
||||||
|
|
||||||
Comment: "italic #8f5902", # class: 'c'
|
Comment: "italic #8f5902", # class: 'c'
|
||||||
Comment.Preproc: "noitalic", # class: 'cp'
|
Comment.Preproc: "noitalic", # class: 'cp'
|
||||||
|
|
||||||
Keyword: "bold #004461", # class: 'k'
|
Keyword: "bold #004461", # class: 'k'
|
||||||
Keyword.Constant: "bold #004461", # class: 'kc'
|
Keyword.Constant: "bold #004461", # class: 'kc'
|
||||||
Keyword.Declaration: "bold #004461", # class: 'kd'
|
Keyword.Declaration: "bold #004461", # class: 'kd'
|
||||||
@ -27,10 +25,8 @@ class Alabaster(Style):
|
|||||||
Keyword.Pseudo: "bold #004461", # class: 'kp'
|
Keyword.Pseudo: "bold #004461", # class: 'kp'
|
||||||
Keyword.Reserved: "bold #004461", # class: 'kr'
|
Keyword.Reserved: "bold #004461", # class: 'kr'
|
||||||
Keyword.Type: "bold #004461", # class: 'kt'
|
Keyword.Type: "bold #004461", # class: 'kt'
|
||||||
|
|
||||||
Operator: "#582800", # class: 'o'
|
Operator: "#582800", # class: 'o'
|
||||||
Operator.Word: "bold #004461", # class: 'ow' - like keywords
|
Operator.Word: "bold #004461", # class: 'ow' - like keywords
|
||||||
|
|
||||||
Punctuation: "bold #000000", # class: 'p'
|
Punctuation: "bold #000000", # class: 'p'
|
||||||
|
|
||||||
# because special names such as Name.Class, Name.Function, etc.
|
# because special names such as Name.Class, Name.Function, etc.
|
||||||
@ -55,12 +51,9 @@ class Alabaster(Style):
|
|||||||
Name.Variable.Class: "#000000", # class: 'vc' - to be revised
|
Name.Variable.Class: "#000000", # class: 'vc' - to be revised
|
||||||
Name.Variable.Global: "#000000", # class: 'vg' - to be revised
|
Name.Variable.Global: "#000000", # class: 'vg' - to be revised
|
||||||
Name.Variable.Instance: "#000000", # class: 'vi' - to be revised
|
Name.Variable.Instance: "#000000", # class: 'vi' - to be revised
|
||||||
|
|
||||||
Number: "#990000", # class: 'm'
|
Number: "#990000", # class: 'm'
|
||||||
|
|
||||||
Literal: "#000000", # class: 'l'
|
Literal: "#000000", # class: 'l'
|
||||||
Literal.Date: "#000000", # class: 'ld'
|
Literal.Date: "#000000", # class: 'ld'
|
||||||
|
|
||||||
String: "#4e9a06", # class: 's'
|
String: "#4e9a06", # class: 's'
|
||||||
String.Backtick: "#4e9a06", # class: 'sb'
|
String.Backtick: "#4e9a06", # class: 'sb'
|
||||||
String.Char: "#4e9a06", # class: 'sc'
|
String.Char: "#4e9a06", # class: 'sc'
|
||||||
@ -73,7 +66,6 @@ class Alabaster(Style):
|
|||||||
String.Regex: "#4e9a06", # class: 'sr'
|
String.Regex: "#4e9a06", # class: 'sr'
|
||||||
String.Single: "#4e9a06", # class: 's1'
|
String.Single: "#4e9a06", # class: 's1'
|
||||||
String.Symbol: "#4e9a06", # class: 'ss'
|
String.Symbol: "#4e9a06", # class: 'ss'
|
||||||
|
|
||||||
Generic: "#000000", # class: 'g'
|
Generic: "#000000", # class: 'g'
|
||||||
Generic.Deleted: "#a40000", # class: 'gd'
|
Generic.Deleted: "#a40000", # class: 'gd'
|
||||||
Generic.Emph: "italic #000000", # class: 'ge'
|
Generic.Emph: "italic #000000", # class: 'ge'
|
||||||
|
|||||||
Reference in New Issue
Block a user