Devicetree spec build environment changes
cover Devicetree spec build environment changes
Non-content changes. This series renames the source files to be easier to navigate and updates the build to match templates from an earlier version of Sphinx which will make it easier to track changes for newer versions of sphinx.
Grant Likely (4):
trivial: Add chapter number to source files
fix python3 compatibility
Update Makefile to newer Sphinx 'minimal' style
Updates to match Sphinx templates
Makefile | 232 +---------------
...oduction.rst => chapter1-introduction.rst} | 0
...ics.rst => chapter2-devicetree-basics.rst} | 0
...vicenodes.rst => chapter3-devicenodes.rst} | 0
...dings.rst => chapter4-device-bindings.rst} | 0
...rmat.rst => chapter5-flattened-format.rst} | 0
...guage.rst => chapter6-source-language.rst} | 0
source/conf.py | 255 ++++++------------
source/index.rst | 12 +-
9 files changed, 103 insertions(+), 396 deletions(-)
rename source/{introduction.rst => chapter1-introduction.rst} (100%)
rename source/{devicetree-basics.rst => chapter2-devicetree-basics.rst} (100%)
rename source/{devicenodes.rst => chapter3-devicenodes.rst} (100%)
rename source/{device-bindings.rst => chapter4-device-bindings.rst} (100%)
rename source/{flattened-format.rst => chapter5-flattened-format.rst} (100%)
rename source/{source-language.rst => chapter6-source-language.rst} (100%)Signature · 1 line
2.20.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/4 trivial: Add chapter number to source files
It is easier to follow the organization of the source files if the chapter numbers are included in the file names. This patch only renames the main chapter .rst files and fixes up the index.rst with the new names.
---
.../{introduction.rst => chapter1-introduction.rst} | 0
...ree-basics.rst => chapter2-devicetree-basics.rst} | 0
source/{devicenodes.rst => chapter3-devicenodes.rst} | 0
...ice-bindings.rst => chapter4-device-bindings.rst} | 0
...ened-format.rst => chapter5-flattened-format.rst} | 0
...rce-language.rst => chapter6-source-language.rst} | 0
source/index.rst | 12 ++++++------
7 files changed, 6 insertions(+), 6 deletions(-)
rename source/{introduction.rst => chapter1-introduction.rst} (100%)
rename source/{devicetree-basics.rst => chapter2-devicetree-basics.rst} (100%)
rename source/{devicenodes.rst => chapter3-devicenodes.rst} (100%)
rename source/{device-bindings.rst => chapter4-device-bindings.rst} (100%)
rename source/{flattened-format.rst => chapter5-flattened-format.rst} (100%)
rename source/{source-language.rst => chapter6-source-language.rst} (100%)source/chapter1-introduction.rst renamed from source/introduction.rst +0 -0
source/chapter2-devicetree-basics.rst renamed from source/devicetree-basics.rst +0 -0
source/chapter3-devicenodes.rst renamed from source/devicenodes.rst +0 -0
source/chapter4-device-bindings.rst renamed from source/device-bindings.rst +0 -0
source/chapter5-flattened-format.rst renamed from source/flattened-format.rst +0 -0
source/chapter6-source-language.rst renamed from source/source-language.rst +0 -0
source/index.rst +6 -6
@@ -13,12 +13,12 @@ Welcome to Devicetree Specification's documentation! license acknowledgements revhistory - introduction - devicetree-basics - devicenodes - device-bindings - flattened-format - source-language + chapter1-introduction + chapter2-devicetree-basics + chapter3-devicenodes + chapter4-device-bindings + chapter5-flattened-format + chapter6-source-language references ..
Signature · 1 line
2.20.1
PATCH 2/4 fix python3 compatibility
In reply to a message not in the archiveFix query of git commit tag to work with python3. The existing code falls over when using Sphinx on Python 3 due to the string datatype changes. Fix the code to be more robust.
--- source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
source/conf.py +1 -1
@@ -66,7 +66,7 @@ author = u'devicetree.org' # # The short X.Y version. try: - version = subprocess.check_output(["git", "describe", "--dirty"]).strip().encode() + version = str(subprocess.check_output(["git", "describe", "--dirty"]), 'utf-8').strip() except: version = "unknown-rev" # The full version, including alpha/beta/rc tags.
Signature · 1 line
2.20.1
PATCH 3/4 Update Makefile to newer Sphinx 'minimal' style
In reply to a message not in the archiveDrops a ton of lines from the Makefile and makes it easier to track upstream Sphinx changes. This change is in line with Sphinx 1.8
--- Makefile | 232 +++---------------------------------------------------- 1 file changed, 11 insertions(+), 221 deletions(-)
Makefile +11 -221
@@ -1,152 +1,21 @@ -# Makefile for Sphinx documentation +# Minimal makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build -PAPER = +SOURCEDIR = source BUILDDIR = build LATEXDIFF = latexdiff -# User-friendly check for sphinx-build -ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) - $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don\'t have Sphinx installed, grab it from http://sphinx-doc.org/) -endif - -# Internal variables. -PAPEROPT_a4 = -D latex_paper_size=a4 -PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source -# the i18n builder cannot share the environment and doctrees with the others -I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source - -.PHONY: help +# Put it first so that "make" without argument is like "make help". help: - @echo "Please use \`make <target>' where <target> is one of" - @echo " html to make standalone HTML files" - @echo " dirhtml to make HTML files named index.html in directories" - @echo " singlehtml to make a single large HTML file" - @echo " pickle to make pickle files" - @echo " json to make JSON files" - @echo " htmlhelp to make HTML files and a HTML help project" - @echo " qthelp to make HTML files and a qthelp project" - @echo " applehelp to make an Apple Help Book" - @echo " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " epub3 to make an epub3" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexdiff to make LaTeX files including changebars against previous release" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" - @echo " text to make text files" - @echo " man to make manual pages" - @echo " texinfo to make Texinfo files" - @echo " info to make Texinfo files and run them through makeinfo" - @echo " gettext to make PO message catalogs" - @echo " changes to make an overview of all changed/added/deprecated items" - @echo " xml to make Docutils-native XML files" - @echo " pseudoxml to make pseudoxml-XML files for display purposes" - @echo " linkcheck to check all external links for integrity" - @echo " doctest to run all doctests embedded in the documentation (if enabled)" - @echo " coverage to run coverage check of the documentation (if enabled)" - -.PHONY: clean -clean: - rm -rf $(BUILDDIR)/* - -.PHONY: check -check: - codespell source/*.rst + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + @echo " latexdiff to make LaTeX files including changebars against previous release" -.PHONY: html -html: - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." - -.PHONY: dirhtml -dirhtml: - $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." - -.PHONY: singlehtml -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -.PHONY: pickle -pickle: - $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle - @echo - @echo "Build finished; now you can process the pickle files." - -.PHONY: json -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json - @echo - @echo "Build finished; now you can process the JSON files." - -.PHONY: htmlhelp -htmlhelp: - $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp - @echo - @echo "Build finished; now you can run HTML Help Workshop with the" \ - ".hhp project file in $(BUILDDIR)/htmlhelp." - -.PHONY: qthelp -qthelp: - $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp - @echo - @echo "Build finished; now you can run "qcollectiongenerator" with the" \ - ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/DevicetreeSpecification.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/DevicetreeSpecification.qhc" - -.PHONY: applehelp -applehelp: - $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp - @echo - @echo "Build finished. The help book is in $(BUILDDIR)/applehelp." - @echo "N.B. You won't be able to view it unless you put it in" \ - "~/Library/Documentation/Help or install it in your application" \ - "bundle." - -.PHONY: devhelp -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/DevicetreeSpecification" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/DevicetreeSpecification" - @echo "# devhelp" - -.PHONY: epub -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -.PHONY: epub3 -epub3: - $(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILDDIR)/epub3 - @echo - @echo "Build finished. The epub3 file is in $(BUILDDIR)/epub3." +.PHONY: help latexdiff Makefile -.PHONY: latex -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -.PHONY: latexdiff -latexdiff: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex +latexdiff: latex @echo "Generating LaTeX changebars..." $(LATEXDIFF) --type=UNDERLINE --config VERBATIMENV=sphinxVerbatim $(BUILDDIR)/latex-previous/devicetree-specification.tex $(BUILDDIR)/latex/devicetree-specification.tex > $(BUILDDIR)/latex/devicetree-specification-changebars.tex @echo "Running LaTeX files through pdflatex..."
@@ -154,86 +23,7 @@ latexdiff: @echo @echo "latexdiff finished; the PDF files are in $(BUILDDIR)/latex." -.PHONY: latexpdf -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -.PHONY: latexpdfja -latexpdfja: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through platex and dvipdfmx..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -.PHONY: text -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -.PHONY: man -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -.PHONY: texinfo -texinfo: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo - @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." - @echo "Run \`make' in that directory to run these through makeinfo" \ - "(use \`make info' here to do that automatically)." - -.PHONY: info -info: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo "Running Texinfo files through makeinfo..." - make -C $(BUILDDIR)/texinfo info - @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." - -.PHONY: gettext -gettext: - $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale - @echo - @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." - -.PHONY: changes -changes: - $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes - @echo - @echo "The overview file is in $(BUILDDIR)/changes." - -.PHONY: linkcheck -linkcheck: - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck - @echo - @echo "Link check complete; look for any errors in the above output " \ - "or in $(BUILDDIR)/linkcheck/output.txt." - -.PHONY: doctest -doctest: - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest - @echo "Testing of doctests in the sources finished, look at the " \ - "results in $(BUILDDIR)/doctest/output.txt." - -.PHONY: coverage -coverage: - $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage - @echo "Testing of coverage in the sources finished, look at the " \ - "results in $(BUILDDIR)/coverage/python.txt." - -.PHONY: xml -xml: - $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml - @echo - @echo "Build finished. The XML files are in $(BUILDDIR)/xml." - -.PHONY: pseudoxml -pseudoxml: - $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml - @echo - @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Signature · 1 line
2.20.1
PATCH 4/4 Updates to match Sphinx templates
In reply to a message not in the archiveThis should be a no-op commit. It restructures the config file to match the style and format of the generic config file generated by sphinx-quickstart. The only reason to do this is to make it easy to adapt to changes to Sphinx going forward. This commit reflects the behaviour of Sphinx 1.8.4 which is what is packaged into Debian. The previous config file was generated by a 1.2.x era of Sphinx.
--- source/conf.py | 255 +++++++++++++++++-------------------------------- 1 file changed, 86 insertions(+), 169 deletions(-)
source/conf.py +86 -169
@@ -1,26 +1,22 @@ # -*- coding: utf-8 -*- # # Devicetree Specification documentation build configuration file, created by -# sphinx-quickstart on Tue Apr 19 10:28:32 2016. # -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. +# This file does only contain a selection of the most common options. For a +# full list see the documentation: +# http://www.sphinx-doc.org/en/master/config -import sys -import os -import time -import subprocess +# -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # 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. -#sys.path.insert(0, os.path.abspath('.')) +# +import os +import sys +import time +import subprocess +# sys.path.insert(0, os.path.abspath('.')) sys.path.append(os.path.abspath('extensions'))
@@ -30,48 +26,48 @@ def setup(app): from sphinx.highlighting import lexers lexers['dts'] = DtsLexer() +# -- Project information ----------------------------------------------------- + +project = u'Devicetree Specification' +copyright = u'2016,2017, devicetree.org' +author = u'devicetree.org' + +# The short X.Y version +try: + version = str(subprocess.check_output(["git", "describe", "--dirty"]), 'utf-8').strip() +except: + version = "unknown-rev" +# The full version, including alpha/beta/rc tags +release = version -# -- General configuration ------------------------------------------------ + +# -- General configuration --------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. +# needs_sphinx = '1.2.3' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx.ext.graphviz', 'numsec'] +extensions = [ + 'sphinx.ext.todo', + 'sphinx.ext.graphviz', + 'numsec' +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: +# # source_suffix = ['.rst', '.md'] source_suffix = '.rst' -# The encoding of source files. -#source_encoding = 'utf-8-sig' - # The master toctree document. master_doc = 'index' -# General information about the project. -project = u'Devicetree Specification' -copyright = u'2016,2017, devicetree.org' -author = u'devicetree.org' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. -try: - version = str(subprocess.check_output(["git", "describe", "--dirty"]), 'utf-8').strip() -except: - version = "unknown-rev" -# The full version, including alpha/beta/rc tags. -release = version - # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #
@@ -87,51 +83,26 @@ today_fmt = '%d %B %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path +# This pattern also affects html_static_path and html_extra_path. exclude_patterns = [] # Include at the beginning of every source file that is read with open('rst_prolog', 'rb') as pr: rst_prolog = pr.read().decode('utf-8') -# The reST default role (used for this markup: `text`) to use for all -# documents. -#default_role = None - -# If true, '()' will be appended to :func: etc. cross-reference text. -#add_function_parentheses = True - -# If true, the current module name will be prepended to all description -# unit titles (such as .. function::). -#add_module_names = True - -# If true, sectionauthor and moduleauthor directives will be shown in the -# output. They are ignored by default. -#show_authors = False - # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' -# A list of ignored prefixes for module index sorting. -#modindex_common_prefix = [] - -# If true, keep warnings as "system message" paragraphs in the built documents. -#keep_warnings = False - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = False - numfig = True highlight_language = 'none' -# -- Options for HTML output ---------------------------------------------- +# -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -import alabaster - +# html_theme = 'alabaster' # Theme options are theme-specific and customize the look and feel of a theme
@@ -142,16 +113,6 @@ html_theme_options = { 'github_repo': 'devicetree-specification', } -# Add any paths that contain custom themes here, relative to this directory. -html_theme_path = [alabaster.get_path()] - -# The name for this set of Sphinx documents. -# "<project> v<release> documentation" by default. -#html_title = u'Devicetree Specification v0.2-pre2' - -# A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None - # The name of an image file (relative to this directory) to place at the top # of the sidebar. html_logo = "devicetree-logo.svg"
@@ -166,19 +127,18 @@ html_favicon = "devicetree-favicon.png" # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -# Add any extra paths that contain custom files (such as robots.txt or -# .htaccess) here, relative to this directory. These files are copied -# directly to the root of the documentation. -#html_extra_path = [] +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# The default sidebars (for documents that don't match any pattern) are +# defined by theme itself. Builtin themes are using these templates by +# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', +# 'searchbox.html']``. +# +# html_sidebars = {} -# If not None, a 'Last updated on:' timestamp is inserted at every page -# bottom, using the given strftime format. -# The empty string is equivalent to '%b %d, %Y'. -#html_last_updated_fmt = None -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -#html_use_smartypants = True +# -- Options for HTMLHelp output --------------------------------------------- # Custom sidebar templates, maps document names to template names. html_sidebars = {
@@ -189,70 +149,33 @@ html_sidebars = { 'searchbox.html', ] } -# Additional templates that should be rendered to pages, maps page names to -# template names. -#html_additional_pages = {} - -# If false, no module index is generated. -#html_domain_indices = True - -# If false, no index is generated. -#html_use_index = True - -# If true, the index is split into individual pages for each letter. -#html_split_index = False - -# If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True - -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True - -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True - -# If true, an OpenSearch description file will be output, and all pages will -# contain a <link> tag referring to it. The value of this option must be the -# base URL from which the finished HTML is served. -#html_use_opensearch = '' - -# This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None - -# Language to be used for generating the HTML full-text search index. -# Sphinx supports the following languages: -# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' -# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh' -#html_search_language = 'en' - -# A dictionary with options for the search language support, empty by default. -# 'ja' uses this config value. -# 'zh' user can custom change `jieba` dictionary path. -#html_search_options = {'type': 'default'} - -# The name of a javascript file (relative to the configuration directory) that -# implements a search results scorer. If empty, the default will be used. -#html_search_scorer = 'scorer.js' # Output file base name for HTML help builder. htmlhelp_basename = 'DevicetreeSpecificationdoc' -# -- Options for LaTeX output --------------------------------------------- + +# -- Options for LaTeX output ------------------------------------------------ latex_elements = { - 'classoptions': ',oneside', - 'babel': '\\usepackage[english]{babel}', + 'classoptions': ',oneside', + 'babel': '\\usepackage[english]{babel}', + 'sphinxsetup': 'hmargin=2cm', - # The paper size ('letterpaper' or 'a4paper'). - 'papersize': 'a4paper', + # The paper size ('letterpaper' or 'a4paper'). + # + 'papersize': 'a4paper', - 'sphinxsetup': 'hmargin=2cm', + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', -# The font size ('10pt', '11pt' or '12pt'). -#'pointsize': '10pt', + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', -# Latex figure (float) alignment - 'figure_align': 'H', + # Latex figure (float) alignment + # + 'figure_align': 'H', } # Release numbers with a qualifier (ex. '-rc', '-pre') get a watermark.
@@ -271,24 +194,7 @@ latex_documents = [ # the title page. latex_logo = "devicetree-logo.png" -# For "manual" documents, if this is true, then toplevel headings are parts, -# not chapters. -#latex_use_parts = False - -# If true, show page references after internal links. -#latex_show_pagerefs = False - -# If true, show URL addresses after external links. -#latex_show_urls = False - -# Documents to append as an appendix to all manuals. -#latex_appendices = [] - -# If false, no module index is generated. -#latex_domain_indices = True - - -# -- Options for manual page output --------------------------------------- +# -- Options for manual page output ------------------------------------------ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section).
@@ -297,11 +203,8 @@ man_pages = [ [author], 1) ] -# If true, show URL addresses after external links. -#man_show_urls = False - -# -- Options for Texinfo output ------------------------------------------- +# -- Options for Texinfo output ---------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author,
@@ -312,14 +215,28 @@ texinfo_documents = [ 'Miscellaneous'), ] -# Documents to append as an appendix to all manuals. -#texinfo_appendices = [] -# If false, no module index is generated. -#texinfo_domain_indices = True +# -- Options for Epub output ------------------------------------------------- -# How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' +# Bibliographic Dublin Core info. +epub_title = project -# If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False +# The unique identifier of the text. This can be a ISBN number +# or the project homepage. +# +# epub_identifier = '' + +# A unique identification for the text. +# +# epub_uid = '' + +# A list of files that should not be packed into the epub file. +epub_exclude_files = ['search.html'] + + +# -- Extension configuration ------------------------------------------------- + +# -- Options for todo extension ---------------------------------------------- + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = False
Signature · 1 line
2.20.1