History

Merge tag '4.8-doc-fixes' of git://git.lwn.net/linux

Pull documentation fixes from Jonathan Corbet: "Three small fixes for Sphinx-formatted documentation generation" * tag '4.8-doc-fixes' of git://git.lwn.net/linux: doc-rst: customize RTD theme, drop padding of inline literal docs: kernel-documentation: remove some highlight directives docs: Set the Sphinx default highlight language to "guess"

Linus Torvalds committed 10 years ago

Commit 5cae6fe2 parents 3408fef d1669c83 files · +3 −8Browse files

Unified · Split

3 files
  1. Documentation/conf.py +1 −1
  2. Documentation/kernel-documentation.rst +0 −6
  3. Documentation/sphinx-static/theme_overrides.css +2 −1
Documentation/conf.py+1−1
@@ -131,7 +131,7 @@ pygments_style = 'sphinx' · 130 unmodified lines
131todo_include_todos = False131todo_include_todos = False
132 132
133primary_domain = 'C'133primary_domain = 'C'
134highlight_language = 'C'134highlight_language = 'guess'
135 135
136# -- Options for HTML output ----------------------------------------------136# -- Options for HTML output ----------------------------------------------
137 137
Documentation/kernel-documentation.rst+0−6
@@ -366,8 +366,6 @@ Domain`_ references. · 365 unmodified lines
366Cross-referencing from reStructuredText366Cross-referencing from reStructuredText
367~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~367~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
368 368
369.. highlight:: none
370
371To cross-reference the functions and types defined in the kernel-doc comments369To cross-reference the functions and types defined in the kernel-doc comments
372from reStructuredText documents, please use the `Sphinx C Domain`_370from reStructuredText documents, please use the `Sphinx C Domain`_
373references. For example::371references. For example::
@@ -390,8 +388,6 @@ For further details, please refer to the `Sphinx C Domain`_ documentation. · 16 unmodified lines
390Function documentation388Function documentation
391----------------------389----------------------
392 390
393.. highlight:: c
394
395The general format of a function and function-like macro kernel-doc comment is::391The general format of a function and function-like macro kernel-doc comment is::
396 392
397 /**393 /**
@@ -572,8 +568,6 @@ DocBook XML [DEPRECATED] · 174 unmodified lines
572Converting DocBook to Sphinx568Converting DocBook to Sphinx
573----------------------------569----------------------------
574 570
575.. highlight:: none
576
577Over time, we expect all of the documents under ``Documentation/DocBook`` to be571Over time, we expect all of the documents under ``Documentation/DocBook`` to be
578converted to Sphinx and reStructuredText. For most DocBook XML documents, a good572converted to Sphinx and reStructuredText. For most DocBook XML documents, a good
579enough solution is to use the simple ``Documentation/sphinx/tmplcvt`` script,573enough solution is to use the simple ``Documentation/sphinx/tmplcvt`` script,
Documentation/sphinx-static/theme_overrides.css+2−1
@@ -42,11 +42,12 @@ · 41 unmodified lines
42 caption a.headerlink { opacity: 0; }42 caption a.headerlink { opacity: 0; }
43 caption a.headerlink:hover { opacity: 1; }43 caption a.headerlink:hover { opacity: 1; }
44 44
45 /* inline literal: drop the borderbox and red color */45 /* inline literal: drop the borderbox, padding and red color */
46 46
47 code, .rst-content tt, .rst-content code {47 code, .rst-content tt, .rst-content code {
48 color: inherit;48 color: inherit;
49 border: none;49 border: none;
50 padding: unset;
50 background: inherit;51 background: inherit;
51 font-size: 85%;52 font-size: 85%;
52 }53 }