summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2020-10-11 13:38:31 +0200
committerNejc Habjan <nejc.habjan@siemens.com>2020-10-11 14:13:09 +0200
commit6c21fc83d3d6173bffb60e686ec579f875f8bebe (patch)
tree4e5e41c42257bc3e075eafc5969062f6fe136fc3 /docs
parent68a41629ca0c27bd62d8e656071f612d443aaa1b (diff)
downloadgitlab-docs/cli-reference-page.tar.gz
docs(cli): add auto-generated CLI referencedocs/cli-reference-page
Diffstat (limited to 'docs')
-rw-r--r--docs/api/gitlab.rst4
-rw-r--r--docs/cli-objects.rst17
-rw-r--r--docs/cli-usage.rst (renamed from docs/cli.rst)4
-rw-r--r--docs/conf.py7
-rw-r--r--docs/index.rst5
5 files changed, 32 insertions, 5 deletions
diff --git a/docs/api/gitlab.rst b/docs/api/gitlab.rst
index 1dabad2..0377b87 100644
--- a/docs/api/gitlab.rst
+++ b/docs/api/gitlab.rst
@@ -1,5 +1,5 @@
-gitlab package
-==============
+API reference (``gitlab`` package)
+==================================
Subpackages
-----------
diff --git a/docs/cli-objects.rst b/docs/cli-objects.rst
new file mode 100644
index 0000000..d6648f6
--- /dev/null
+++ b/docs/cli-objects.rst
@@ -0,0 +1,17 @@
+##################################
+CLI reference (``gitlab`` command)
+##################################
+
+.. warning::
+
+ The following is a complete, auto-generated list of subcommands available
+ via the :command:`gitlab` command-line tool. Some of the actions may
+ currently not work as expected or lack functionality available via the API.
+
+ Please see the existing `list of CLI related issues`_, or open a new one if
+ it is not already listed there.
+
+.. _list of CLI related issues: https://github.com/python-gitlab/python-gitlab/issues?q=is%3Aopen+is%3Aissue+label%3Acli
+
+.. autoprogram:: gitlab.cli:docs()
+ :prog: gitlab
diff --git a/docs/cli.rst b/docs/cli-usage.rst
index 95f7062..10fd73a 100644
--- a/docs/cli.rst
+++ b/docs/cli-usage.rst
@@ -180,6 +180,10 @@ Example:
Examples
========
+ **Notice:**
+
+ For a complete list of objects and actions available, see :doc:`/cli-objects`.
+
List the projects (paginated):
.. code-block:: console
diff --git a/docs/conf.py b/docs/conf.py
index a5e5406..681af22 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -39,7 +39,12 @@ sys.path.insert(0, os.path.abspath(".."))
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = ["sphinx.ext.autodoc", "sphinx.ext.autosummary", "ext.docstrings"]
+extensions = [
+ "sphinx.ext.autodoc",
+ "sphinx.ext.autosummary",
+ "ext.docstrings",
+ "sphinxcontrib.autoprogram",
+]
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
diff --git a/docs/index.rst b/docs/index.rst
index 9c8cfd3..22f4c9a 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -12,14 +12,15 @@ Contents:
:maxdepth: 2
install
- cli
+ cli-usage
api-usage
faq
- switching-to-v4
api-objects
api/gitlab
+ cli-objects
release_notes
changelog
+ switching-to-v4
Indices and tables