]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
docs: Link commands to generated help
authorThomas Bechtold <tbechtold@suse.com>
Mon, 20 Apr 2020 13:10:39 +0000 (15:10 +0200)
committerThomas Bechtold <tbechtold@suse.com>
Mon, 20 Apr 2020 13:11:34 +0000 (15:11 +0200)
This is useful to quickly show the available CLI help for the
different commands.
For that, auto generate labels based on the headline via a Sphinx
extension.

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
docs/README.rst
docs/conf.py

index e57a5a7f6f488cf96b2a54137cb58fd0a2b55f80..fa903b7888b230abb1f6d0f763b7d8804bfdfdf5 100644 (file)
@@ -29,20 +29,20 @@ If you are new to teuthology and simply want to run existing tests, check out
 
 Provided Utilities
 ==================
-* ``teuthology`` - Run individual jobs
+* :ref:`teuthology` - Run individual jobs
 * ``teuthology-coverage`` - Analyze code coverage via lcov
-* ``teuthology-kill`` - Kill running jobs or entire runs
-* ``teuthology-lock`` - Lock, unlock, and update status of machines
-* ``teuthology-ls`` - List job results by examining an archive directory
-* ``teuthology-openstack`` - Use OpenStack backend (wrapper around ``teuthology-suite``)
-* ``teuthology-nuke`` - Attempt to return a machine to a pristine state
-* ``teuthology-queue`` - List, or delete, jobs in the queue
-* ``teuthology-report`` - Submit test results to a web service (we use `paddles <https://github.com/ceph/paddles/>`__)
-* ``teuthology-results`` - Examing a finished run and email results
-* ``teuthology-schedule`` - Schedule a single job
-* ``teuthology-suite`` - Schedule a full run based on a suite (see `suites` in `ceph-qa-suite <https://github.com/ceph/ceph-qa-suite>`__)
-* ``teuthology-updatekeys`` - Update SSH host keys for a machine
-* ``teuthology-worker`` - Worker daemon to monitor the queue and execute jobs
+* :ref:`teuthology-kill` - Kill running jobs or entire runs
+* :ref:`teuthology-lock` - Lock, unlock, and update status of machines
+* :ref:`teuthology-ls` - List job results by examining an archive directory
+* :ref:`teuthology-openstack` - Use OpenStack backend (wrapper around ``teuthology-suite``)
+* :ref:`teuthology-nuke` - Attempt to return a machine to a pristine state
+* :ref:`teuthology-queue` - List, or delete, jobs in the queue
+* :ref:`teuthology-report` - Submit test results to a web service (we use `paddles <https://github.com/ceph/paddles/>`__)
+* :ref:`teuthology-results` - Examing a finished run and email results
+* :ref:`teuthology-schedule` - Schedule a single job
+* :ref:`teuthology-suite` - Schedule a full run based on a suite (see `suites` in `ceph-qa-suite <https://github.com/ceph/ceph-qa-suite>`__)
+* :ref:`teuthology-updatekeys` - Update SSH host keys for a machine
+* :ref:`teuthology-worker` - Worker daemon to monitor the queue and execute jobs
 
 For a description of the distinct services that utilities interact with see
 :ref:`components`.
index 5ac3609f9a7eea5a9fedec2d74c5e49cfff93942..09ae1e69265d45d85befac8947f4eb3fcb051588 100644 (file)
@@ -30,6 +30,7 @@ import os
 # ones.
 extensions = [
     'sphinx.ext.autodoc',
+    'sphinx.ext.autosectionlabel',
     'sphinxcontrib.programoutput',
 ]