Skip to content

Commit 4dbcef9

Browse files
committed
Generating the docs changelog on conf.py
That way it works as expected on readthedocs too Fixes lago-project#234 Change-Id: I4b85dfee9a9e74c390caab2b7a6c9097d310943a Signed-off-by: David Caro <[email protected]>
1 parent 019b336 commit 4dbcef9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ clean:
104104
rm -f ${SPECFILE}
105105
rm -f AUTHORS
106106

107-
docs: changelog
107+
docs:
108108
$(MAKE) -C docs clean
109109
$(MAKE) -C docs html
110-
mv ChangeLog docs/_static/ChangeLog.txt

docs/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# serve to show the default.
1414

1515
import os
16+
import shutil
1617
import sys
1718
import subprocess
1819
# If extensions (or modules to document with autodoc) are in another directory,
@@ -39,6 +40,8 @@
3940
os.path.dirname(__file__), '../lago_template_repo'
4041
]
4142
)
43+
subprocess.call(['make', '--directory=..', 'changelog', ])
44+
shutil.move('../ChangeLog', '_static/ChangeLog.txt')
4245

4346
# Mock all the modules that are included by lago, so autoimport works as
4447
# expected with no need to download them (some are not in pip even)

0 commit comments

Comments
 (0)