mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-27 13:28:51 +07:00
Remove docs dir dependency from man page build (#81003)
This commit is contained in:
@@ -7,6 +7,7 @@ include examples/hosts
|
|||||||
include examples/scripts/ConfigureRemotingForAnsible.ps1
|
include examples/scripts/ConfigureRemotingForAnsible.ps1
|
||||||
include examples/scripts/upgrade_to_ps3.ps1
|
include examples/scripts/upgrade_to_ps3.ps1
|
||||||
include hacking/build-ansible.py
|
include hacking/build-ansible.py
|
||||||
|
include hacking/templates/*.j2
|
||||||
include hacking/test-module.py
|
include hacking/test-module.py
|
||||||
include hacking/update-sanity-requirements.py
|
include hacking/update-sanity-requirements.py
|
||||||
include licenses/*.txt
|
include licenses/*.txt
|
||||||
|
|||||||
2
changelogs/fragments/man-page-build-docs-dependency.yml
Normal file
2
changelogs/fragments/man-page-build-docs-dependency.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- man page build - Remove the dependency on the ``docs`` directory for building man pages.
|
||||||
@@ -21,7 +21,7 @@ from ..change_detection import update_file_if_different # pylint: disable=relat
|
|||||||
from ..commands import Command # pylint: disable=relative-beyond-top-level
|
from ..commands import Command # pylint: disable=relative-beyond-top-level
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_TEMPLATE_FILE = pathlib.Path(__file__).parents[4] / 'docs/templates/man.j2'
|
DEFAULT_TEMPLATE_FILE = pathlib.Path(__file__).parents[4] / 'hacking/templates/man.j2'
|
||||||
|
|
||||||
|
|
||||||
# from https://www.python.org/dev/peps/pep-0257/
|
# from https://www.python.org/dev/peps/pep-0257/
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ def _generate_rst_in_templates() -> t.Iterable[Path]:
|
|||||||
sys.executable,
|
sys.executable,
|
||||||
'hacking/build-ansible.py',
|
'hacking/build-ansible.py',
|
||||||
'generate-man',
|
'generate-man',
|
||||||
'--template-file=docs/templates/man.j2',
|
|
||||||
'--output-dir=docs/man/man1/',
|
'--output-dir=docs/man/man1/',
|
||||||
'--output-format=man',
|
'--output-format=man',
|
||||||
*Path('lib/ansible/cli/').glob('*.py'),
|
*Path('lib/ansible/cli/').glob('*.py'),
|
||||||
|
|||||||
Reference in New Issue
Block a user