Skip to content

Commit a56fb8d

Browse files
committed
[#1945] generate kea-messages.rst a priori
This allows us to document premium messages in the public ARM without having to hand out a copy of the premium sources to readthedocs.
1 parent 79b57e5 commit a56fb8d

File tree

4 files changed

+25704
-9
lines changed

4 files changed

+25704
-9
lines changed

doc/sphinx/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/_build
22
/api.rst
3-
/kea-messages.rst

doc/sphinx/conf.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
sys.path.append(SRC_DIR)
2323

2424
import api2doc # noqa # pylint: disable=wrong-import-position
25-
import mes2doc # noqa # pylint: disable=wrong-import-position
2625

2726
# -- Project information -----------------------------------------------------
2827

@@ -260,11 +259,6 @@ def run_generate_docs(_):
260259
api_files = [os.path.abspath(os.path.join(SRC_DIR, '../..', af)) for af in api_files]
261260
api2doc.generate(api_files, os.path.join(SRC_DIR, 'api.rst'))
262261

263-
with open(os.path.join(SRC_DIR, 'mes-files.txt'), encoding='utf-8') as mf:
264-
mes_files = mf.read().split()
265-
mes_files = [os.path.abspath(os.path.join(SRC_DIR, '../..', mf)) for mf in mes_files]
266-
mes2doc.generate(mes_files, os.path.join(SRC_DIR, 'kea-messages.rst'))
267-
268262
# Sphinx has some limitations. It can't import files from outside its directory, which
269263
# in our case is src/sphinx. On the other hand, we need to have platforms.rst file
270264
# in top level directory, so it's easily accessible by prospective and first time

0 commit comments

Comments
 (0)