From 584cf691e76d91e077ce5752fef6a4ec88a3657a Mon Sep 17 00:00:00 2001 From: David Douard <david.douard@sdfa3.org> Date: Thu, 28 Mar 2024 12:31:14 +0100 Subject: [PATCH] devel/add-new-package: use code-block instead of block directives code-block is the sphinx (more featured) version of rst's code directive. --- docs/devel/tutorials/add-new-package.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/devel/tutorials/add-new-package.rst b/docs/devel/tutorials/add-new-package.rst index ff19d0a7..bba9383b 100644 --- a/docs/devel/tutorials/add-new-package.rst +++ b/docs/devel/tutorials/add-new-package.rst @@ -27,13 +27,13 @@ The following commands need to run from the base directory 1. Use ``bin/init-py-repo`` to initialize the repository with a project template and create the corresponding gitlab project: - .. code:: bash + .. code-block:: console bin/init-py-repo swh-foo 2. Install the pre-commit hook: - .. code:: bash + .. code-block:: console pre-commit install @@ -80,7 +80,7 @@ Make an initial release Releases are made automatically by Jenkins when a tag is pushed to a module repository. Making an initial release is thus done by doing: -.. code:: bash +.. code-block:: console git tag v0.0.0 git push origin --tags v0.0.0 @@ -107,7 +107,7 @@ To add a new module to the documentation: - Add the package with a concise description to the index of the development part, located in ``docs/devel/index.rst``. - :: + .. code-block:: rst :ref:`swh.foo <swh-foo>` short description of the repository -- GitLab