Fix version number in doc guide
This commit is contained in:
parent
adce7ecf4b
commit
a9bd112e0c
|
|
@ -54,6 +54,9 @@ POD2TEXT = pod2text
|
||||||
MKINSTALLDIRS = $(SHELL) $(srcdir)/src/mkinstalldirs
|
MKINSTALLDIRS = $(SHELL) $(srcdir)/src/mkinstalldirs
|
||||||
PERL = @PERL@
|
PERL = @PERL@
|
||||||
|
|
||||||
|
# Version (for docs/guide/conf.py)
|
||||||
|
PACKAGE_VERSION_NUMBER = @PACKAGE_VERSION_NUMBER@
|
||||||
|
|
||||||
# Destination prefix for RPMs
|
# Destination prefix for RPMs
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
/*Verilator blue #008fd7; set in html*/
|
||||||
|
.wy-side-nav-search > div.version {
|
||||||
|
color: #111;
|
||||||
|
}
|
||||||
|
|
@ -20,14 +20,16 @@ import sphinx_rtd_theme
|
||||||
|
|
||||||
|
|
||||||
def get_vlt_version():
|
def get_vlt_version():
|
||||||
filename = "../../src/config_rev.h"
|
filename = "../../Makefile"
|
||||||
with open(filename) as fh:
|
with open(filename) as fh:
|
||||||
for line in fh:
|
for line in fh:
|
||||||
match = re.search(r'= "([a-z0-9.]+)', line)
|
match = re.search(r"PACKAGE_VERSION_NUMBER *= *([a-z0-9.]+)", line)
|
||||||
if match:
|
if match:
|
||||||
return match.group(1)
|
return match.group(1)
|
||||||
return "unknown"
|
return "unknown"
|
||||||
|
|
||||||
|
def setup(app):
|
||||||
|
app.add_css_file('css/vlt_sphinx.css')
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# -- Project information
|
# -- Project information
|
||||||
|
|
@ -63,7 +65,7 @@ extensions = []
|
||||||
# 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 = [
|
exclude_patterns = [
|
||||||
'_build', 'Thumbs.db', '.DS_Store', 'internals.rst', 'xml.rst'
|
'_build', 'Thumbs.db', '.DS_Store', 'internals.rst', 'xml.rst', 'gen/ex_*'
|
||||||
]
|
]
|
||||||
|
|
||||||
# Warn about refs
|
# Warn about refs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue