Skip to content

Commit

Permalink
introduce sphinx templated configuration file
Browse files Browse the repository at this point in the history
index.html now contains proper lmiwbem version in the heading.
  • Loading branch information
phatina committed Dec 4, 2014
1 parent 29a9939 commit 72f88ac
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ AC_OUTPUT(
[makefile
setup.py
doc/makefile
doc/src/conf.py
src/makefile
src/lmiwbem/makefile
src/lmiwbem/__init__.py
Expand Down
2 changes: 2 additions & 0 deletions doc/makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ buildhtml:
[ -L $(DOCLMIWBEMDIR)/__init__.py ] || ln -s $(BUILDDIR)/src/lmiwbem/__init__.py $(DOCLMIWBEMDIR)/__init__.py
[ -L $(DOCLMIWBEMDIR)/lmiwbem_types.py ] || ln -s $(BUILDDIR)/src/lmiwbem/lmiwbem_types.py $(DOCLMIWBEMDIR)/lmiwbem_types.py
[ -L $(DOCLMIWBEMDIR)/lmiwbem_core.so ] || ln -s $(BUILDDIR)/src/.libs/lmiwbem_core.so $(DOCLMIWBEMDIR)/lmiwbem_core.so
[ -e $(DOCSRCDIR)/conf.py ] || ln -s $(BUILDDIR)/doc/src/conf.py $(DOCSRCDIR)/conf.py
LMIWBEM_BUILDDIR=${abs_top_builddir} $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(HTMLBUILDDIR)
rm -fr $(DOCLMIWBEMDIR)
[ ! -L $(DOCSRCDIR)/conf.py ] || rm -f $(DOCSRCDIR)/conf.py

installhtml: buildhtml
mkdir -p $(HTMLINSTALLDIR)
Expand Down
4 changes: 2 additions & 2 deletions doc/src/conf.py → doc/src/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
# built documents.
#
# The short X.Y version.
version = '0.1.0'
version = '@VERSION@'
# The full version, including alpha/beta/rc tags.
release = '0.1.0'
release = '@VERSION@'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions doc/src/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LMIWBEM Documentation
=====================
LMIWBEM |version|
=================

*LMIWBEM is a Python library that performs CIM operations using CIM-XML
protocol. The library tries to mimic PyWBEM, but does things in different way:*
Expand Down

0 comments on commit 72f88ac

Please sign in to comment.