mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
doc: tweak doc config for v2.3 for CI tool mismatch
All releases of ACRN use the same CI docker image for testing the documentation build. This creates a problem because some features used in older ACRN releases are deprecated or behave differently with newer versions of Sphinx and other tools. Add a check for the Sphinx version to account for this, and update the .known-issues patterns for duplicate declarations. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
parent
5356fdc520
commit
6f3dfb8a59
@ -10,5 +10,5 @@
|
|||||||
#
|
#
|
||||||
^(?P<filename>[-._/\w]+/hld/[-._/\w]+.rst):(?P<lineno>[0-9]+): WARNING: duplicate C object description.*
|
^(?P<filename>[-._/\w]+/hld/[-._/\w]+.rst):(?P<lineno>[0-9]+): WARNING: duplicate C object description.*
|
||||||
#
|
#
|
||||||
^(?P<filename>[-._/\w]+/hld/[-._/\w]+.rst):(?P<lineno>[0-9]+): WARNING: Duplicate C\+\+ declaration, .*
|
^(?P<filename>[-._/\w]+/hld/[-._/\w]+.rst):(?P<lineno>[0-9]+): WARNING: Duplicate C[\+]* declaration, .*
|
||||||
^Declaration is .*
|
^Declaration is .*
|
||||||
|
23
doc/conf.py
23
doc/conf.py
@ -228,10 +228,23 @@ numfig_format = {'figure': 'Figure %s', 'table': 'Table %s', 'code-block': 'Code
|
|||||||
html_static_path = ['static']
|
html_static_path = ['static']
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
app.add_stylesheet("acrn-custom.css")
|
import sphinx
|
||||||
app.add_javascript("https://www.googletagmanager.com/gtag/js?id=UA-831873-64")
|
|
||||||
# note more GA tag manager calls are in acrn-custom.js
|
# add_stylesheet and add_javascript were deprecated in Sphinx 4.0
|
||||||
app.add_javascript("acrn-custom.js")
|
# so we'll need to tweak the configuration for CI systems using
|
||||||
|
# a newer Sphinx version than originally used for that ACRN release.
|
||||||
|
|
||||||
|
if float(sphinx.__version__[0:3]) < 3.0:
|
||||||
|
app.add_stylesheet("acrn-custom.css")
|
||||||
|
app.add_javascript("https://www.googletagmanager.com/gtag/js?id=UA-831873-64")
|
||||||
|
# note more GA tag manager calls are in acrn-custom.js
|
||||||
|
app.add_javascript("acrn-custom.js")
|
||||||
|
else:
|
||||||
|
app.add_css_file("acrn-custom.css")
|
||||||
|
app.add_js_file("https://www.googletagmanager.com/gtag/js?id=UA-831873-64")
|
||||||
|
# note more GA tag manager calls are in acrn-custom.js
|
||||||
|
app.add_js_file("acrn-custom.js")
|
||||||
|
|
||||||
|
|
||||||
# Custom sidebar templates, must be a dictionary that maps document names
|
# Custom sidebar templates, must be a dictionary that maps document names
|
||||||
# to template names.
|
# to template names.
|
||||||
@ -304,7 +317,7 @@ man_pages = [
|
|||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
(master_doc, 'Project ACRN', u'Project ACRN Documentation',
|
(master_doc, 'Project ACRN', u'Project ACRN Documentation',
|
||||||
author, 'Project ACRN',
|
author, 'Project ACRN',
|
||||||
'IoT-Optimized Hypervisor for Intel Architecture',
|
'IoT-Optimized Hypervisor for Intel Architecture',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user