mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
systemd-python: provide version info to sphinx
This commit is contained in:
parent
80cb917e62
commit
9f06e912f6
@ -3551,7 +3551,7 @@ BUILT_SOURCES += \
|
||||
src/python-systemd/id128-constants.h
|
||||
|
||||
PAPER = $(shell cat /etc/papersize 2>/dev/null || echo a4)
|
||||
SPHINXOPTS = -D latex_paper_size=$(PAPER)
|
||||
SPHINXOPTS = -D latex_paper_size=$(PAPER) -D version=$(VERSION) -D release=$(VERSION)
|
||||
sphinx-%:
|
||||
$(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
|
||||
$(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
|
||||
|
@ -42,15 +42,6 @@ master_doc = 'index'
|
||||
# General information about the project.
|
||||
project = u'python-systemd'
|
||||
|
||||
# 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.
|
||||
version = '197'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '197'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#language = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user