mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 15:35:17 +00:00
[#2050] Sphinx build updated
This commit is contained in:
@@ -90,6 +90,7 @@ exclude_patterns = [
|
|||||||
'arm/hooks-class-cmds.rst',
|
'arm/hooks-class-cmds.rst',
|
||||||
'arm/hooks-cb-cmds.rst',
|
'arm/hooks-cb-cmds.rst',
|
||||||
'arm/config-backend.rst',
|
'arm/config-backend.rst',
|
||||||
|
'arm/config-templates.rst',
|
||||||
'arm/hooks-ha.rst',
|
'arm/hooks-ha.rst',
|
||||||
'arm/hooks-host-cache.rst',
|
'arm/hooks-host-cache.rst',
|
||||||
'arm/hooks-lease-cmds.rst',
|
'arm/hooks-lease-cmds.rst',
|
||||||
@@ -238,9 +239,22 @@ def run_generate_docs(_):
|
|||||||
# users. Furthermore, ReadTheDocs does not use the makefile system at all and they rely
|
# users. Furthermore, ReadTheDocs does not use the makefile system at all and they rely
|
||||||
# on sphinx-build only. As a result we need to conduct some Makefile-like operations
|
# on sphinx-build only. As a result we need to conduct some Makefile-like operations
|
||||||
# here. This requires us to copy (or link) the file from the top level to sphinx subdir.
|
# here. This requires us to copy (or link) the file from the top level to sphinx subdir.
|
||||||
|
#
|
||||||
|
# The first entry on this list is the actual file to copy, the second is a unique name
|
||||||
|
# that will be used when copied over to arm/ directory.
|
||||||
|
FILES_TO_COPY = [
|
||||||
|
[ '../../platforms.rst', 'platforms.rst' ],
|
||||||
|
[ '../examples/template-power-user-home/info.md', 'template-power-user-home.md' ],
|
||||||
|
[ '../examples/template-power-user-home/kea-ca-1.conf', 'template-power-user-home-ca-1.conf' ],
|
||||||
|
[ '../examples/template-power-user-home/kea-ca-2.conf', 'template-power-user-home-ca-2.conf' ],
|
||||||
|
[ '../examples/template-power-user-home/kea-dhcp4-1.conf', 'template-power-user-home-dhcp4-1.conf' ],
|
||||||
|
[ '../examples/template-power-user-home/kea-dhcp4-2.conf', 'template-power-user-home-dhcp4-2.conf' ]
|
||||||
|
]
|
||||||
|
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
src = os.path.join(src_dir, '../../platforms.rst')
|
for [a, b] in FILES_TO_COPY:
|
||||||
dst = os.path.join(src_dir, 'arm/platforms.rst')
|
src = os.path.join(src_dir, a)
|
||||||
|
dst = os.path.join(src_dir, 'arm', b)
|
||||||
print("Copying %s to %s" % (src, dst))
|
print("Copying %s to %s" % (src, dst))
|
||||||
copyfile(src, dst)
|
copyfile(src, dst)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user