Skip to content

Commit

Permalink
Doc fixes
Browse files Browse the repository at this point in the history
- Fixed issue where all argparse output was missing from commmand docs since v0.10.0
  • Loading branch information
lowell80 committed Sep 29, 2023
1 parent f8371d7 commit bc64a0a
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/source/cmd_check.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ksconf check


.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: check
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_combine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ksconf combine
==============

.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: combine
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_diff.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ksconf diff


.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: diff
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ksconf filter
=============

.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: filter
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ksconf
======

.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:prog: ksconf
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_merge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ksconf merge
============

.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: merge
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_minimize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ksconf minimize


.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: minimize
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ksconf package


.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: package
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_promote.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ksconf promote


.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: promote
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_rest-export.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ksconf rest-export
But for **ALL** other use cases, the ``rest-publish`` command is superior.

.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: rest-export
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_rest-publish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ksconf rest-publish


.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: rest-publish
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_snapshot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ksconf snapshot
===============

.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: snapshot
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_sort.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ksconf sort
===========

.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: sort
:nodefault:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cmd_unarchive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ksconf unarchive
================

.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: unarchive
:nodefault:
Expand Down
5 changes: 4 additions & 1 deletion docs/source/cmd_xmlformat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ksconf xml-format


.. argparse::
:module: ksconf.__main__
:module: ksconf.cli
:func: build_cli_parser
:path: xml-format
:nodefault:
Expand Down Expand Up @@ -50,3 +50,6 @@ To recursively format xml files
.. code-block:: sh
find . -path '*/data/ui/views/*.xml' -o -path '*/data/ui/nav/*.xml' | ksconf xml-format -
.. include:: common
2 changes: 1 addition & 1 deletion docs/source/concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ What does Splunk have to say about this? (From the docs)

.. [SPLKDOC1] https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Configurationfiledirectories
.. include:: common
.. include:: common
2 changes: 1 addition & 1 deletion docs/source/contrib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ File path Description / purpose
``tests/tests/test_cli_CMD.py`` Add new unit test here
``docs/source/cmd_CMD.rst`` Command line documentation. Make sure to include the `argparse` module
``ksconf/setup_entrypoints.py`` Add a new entrypoint line here, or the new command won't be registered
``.pre-commit-hooks.yaml`` If a new command is applicable, add this to the `ksconf pre-commit repo`_.
``.pre-commit-hooks.yaml`` If a new command is applicable, add this to the `ksconf-pre-commit repo`_.
``setup.py`` Update if there are any new external dependencies
``requirements.txt`` Same as above
``make_splunk_app`` If there's new dependencies that need to go into the Splunk app
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ Indices and tables
* :ref:`modindex`
* :ref:`search`

.. include:: common
.. include:: common
2 changes: 1 addition & 1 deletion docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,4 @@ OS-specific notes:



.. include:: common
.. include:: common

0 comments on commit bc64a0a

Please sign in to comment.