lint Documentation/

This commit is contained in:
Brennan Ashton 2021-04-04 17:10:08 -07:00 committed by Xiang Xiao
parent 3a97f0e5bd
commit f2b799842e

View File

@ -37,10 +37,10 @@
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'NuttX' project = "NuttX"
copyright = '2020, The Apache Software Foundation' copyright = "2020, The Apache Software Foundation"
author = 'NuttX community' author = "NuttX community"
version = release = 'latest' version = release = "latest"
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
@ -51,12 +51,12 @@ version = release = 'latest'
extensions = [ extensions = [
"sphinx_rtd_theme", "sphinx_rtd_theme",
"m2r2", "m2r2",
'sphinx.ext.autosectionlabel', "sphinx.ext.autosectionlabel",
'sphinx.ext.todo', "sphinx.ext.todo",
'sphinx_tabs.tabs' "sphinx_tabs.tabs",
] ]
source_suffix = [ '.rst', '.md' ] source_suffix = [".rst", ".md"]
todo_include_todos = True todo_include_todos = True
@ -67,19 +67,19 @@ highlight_language = "none"
primary_domain = None primary_domain = None
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and # List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files. # directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path. # This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# list of documentation versions to offer (besides latest). this will be # list of documentation versions to offer (besides latest). this will be
# overriden by command line option but we can provide a sane default # overriden by command line option but we can provide a sane default
# this way # this way
html_context = dict() html_context = dict()
html_context['nuttx_versions'] = 'latest' html_context["nuttx_versions"] = "latest"
# TODO: append other options using releases detected from git (or maybe just # TODO: append other options using releases detected from git (or maybe just
# a few hand-selected ones, or maybe just a "stable" option) # a few hand-selected ones, or maybe just a "stable" option)
@ -89,41 +89,33 @@ html_context['nuttx_versions'] = 'latest'
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
# #
html_theme = 'sphinx_rtd_theme' html_theme = "sphinx_rtd_theme"
html_show_sphinx = False html_show_sphinx = False
html_theme_options = { html_theme_options = {"navigation_depth": 5}
'navigation_depth': 5
}
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, # relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css". # so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] html_static_path = ["_static"]
html_css_files = [ html_css_files = ["custom.css"]
'custom.css'
]
html_show_license = True html_show_license = True
html_logo = '_static/NuttX.png' html_logo = "_static/NuttX.png"
html_favicon = '_static/favicon.ico' html_favicon = "_static/favicon.ico"
today_fmt = '%d %B %y at %H:%M' today_fmt = "%d %B %y at %H:%M"
c_id_attributes = [ c_id_attributes = ["FAR", "CODE", "noreturn_function"]
'FAR',
'CODE',
'noreturn_function'
]
# This is required to allow running linkcheck with sphinx-tabs # This is required to allow running linkcheck with sphinx-tabs
sphinx_tabs_valid_builders = ['linkcheck'] sphinx_tabs_valid_builders = ["linkcheck"]
# There are some sites where the linkchecker cannot handle anchors # There are some sites where the linkchecker cannot handle anchors
linkcheck_ignore = [ linkcheck_ignore = [
'https://github.com/pyenv/pyenv#installation', "https://github.com/pyenv/pyenv#installation",
'http://openocd.zylin.com/#/c/4103/', "http://openocd.zylin.com/#/c/4103/",
] ]