Skip to content

Commit 01cbfe5

Browse files
authored
docs: Refine links and command examples (#62)
* updated link of RNC, modified content of TOML and UV Signed-off-by: sushant-suse <[email protected]> * added importance of --frozen flag Signed-off-by: sushant-suse <[email protected]> * added documentation link of reStructuredText, Sphinx, and uv in Overview Signed-off-by: sushant-suse <[email protected]> * added documentation link of towncrier Signed-off-by: sushant-suse <[email protected]> * added openSUSE, gh, and jing links; modified the content of external tools Signed-off-by: sushant-suse <[email protected]> * modified style of link to VS code download page Signed-off-by: sushant-suse <[email protected]> * updated commands and removed $ sign Signed-off-by: sushant-suse <[email protected]> * docs: Add news fragment for documentation improvements (PR #62) * updated back-ticks issue Signed-off-by: sushant-suse <[email protected]> --------- Signed-off-by: sushant-suse <[email protected]>
1 parent 5f0314c commit 01cbfe5

21 files changed

Lines changed: 60 additions & 53 deletions

changelog.d/62.doc.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Improved documentation clarity and usability:
2+
3+
* Updated external links for ``uv``, ``towncrier``, ``reStructuredText``, Sphinx, ``jing``, and RNC schema to official resources.
4+
* Removed ``$`` prefixes from shell command examples for easier copy-pasting.
5+
* Added a brief explanation for the ``--frozen`` flag usage with :command:`uv sync`.
6+
* Enhanced descriptions and added links in the "External tools" section.

devel/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The directory :file:`devel/` contains some helper tools to make development easi
2424
.. code-block:: shell-session
2525
:caption: Activating development aliases
2626
27-
$ source devel/activate-aliases.sh
27+
source devel/activate-aliases.sh
2828
2929
* :command:`bump-version.sh`
3030
Bumps the version of the project. To bump the minor version, use

docs/source/developer/build-changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To build the changelog, make sure you have:
1616
.. code-block:: shell-session
1717
:caption: Build a combined changelog from news fragments
1818
19-
$ towncrier build [--yes]
19+
towncrier build [--yes]
2020
2121
After this command, the :file:`CHANGELOG.rst` file in the root directory is updated and all news fragments are removed from the directory :file:`changelog.d/`.
2222

docs/source/developer/build-docs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ To build the documentation for this project, use the following steps:
1313
:caption: Building the documentation
1414
:name: makedocs
1515
16-
$ makedocs
16+
makedocs
1717
1818
#. Find the generated documentation in the :file:`docs/build/html` directory.

docs/source/developer/bump-version.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project follows :term:`Semantic Versioning <SemVer>`. To bump the version,
1010
:caption: Bumping the minor part
1111
:name: sh-bump-version
1212
13-
$ ./devel/bump-version.sh minor
13+
./devel/bump-version.sh minor
1414
1515
This script automates the versioning process with the following actions:
1616

docs/source/developer/design.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The project follows a modular design structure, with the following main componen
112112

113113
* **Documentation directory**: The documentation is stored in the :file:`docs` directory, which contains the Sphinx documentation source files.
114114

115-
* **Changelog**: The project maintains a :file:`CHANGELOG.rst` file, which documents the changes made in each version of the project. The changelog is automatically generated using the towncrier tool. It uses the :file:`changelog.d` directory to store individual change files.
115+
* **Changelog**: The project maintains a :file:`CHANGELOG.rst` file, which documents the changes made in each version of the project. The changelog is automatically generated using the `towncrier <https://towncrier.readthedocs.io/en/stable/>`_ tool. It uses the :file:`changelog.d` directory to store individual change files.
116116

117117

118118

docs/source/developer/install-vscode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Follow these steps to set up VSCode for working with this project:
1010

1111
#. Install Visual Studio Code
1212

13-
Download and install VSCode from the official website: https://code.visualstudio.com/
13+
Download and install VSCode from the `official website <https://code.visualstudio.com/>`_.
1414

1515
#. Install the recommended extensions
1616

docs/source/developer/overview.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The project's repository is structured in a way that allows for easy navigation
1313

1414
* **pyproject.toml**
1515

16-
The :file:`pyproject.toml` file is used to define the project's metadata, dependencies, and build system requirements. It is a standardized way to configure Python projects and is used by tools such as :command:`uv`.
16+
The :file:`pyproject.toml` file is used to define the project's metadata, dependencies, and build system requirements. It is a standardized way to configure Python projects and is used by tools such as :command:`uv` (see `uv docs <https://docs.astral.sh/uv/>`_).
1717
The :command:`uv` create a lock file :file:`uv.lock` based on the dependencies defined in :file:`pyproject.toml`. This lock file ensures that the same versions of dependencies are used across different environments, providing consistency and reliability.
1818

1919
* **uv**
@@ -23,4 +23,4 @@ The project's repository is structured in a way that allows for easy navigation
2323

2424
* **Documentation**
2525

26-
The documentation is built using reStructuredText and Sphinx. The source files for the documentation are located in the :file:`docs/` directory. The documentation targets users and developers, providing information on how to use the project, its features, and how to change it.
26+
The documentation is built using `reStructuredText <https://docutils.sourceforge.io/rst.html>`_ and `Sphinx <https://www.sphinx-doc.org/en/master/>`_. The source files for the documentation are located in the :file:`docs/` directory. The documentation targets users and developers, providing information on how to use the project, its features, and how to change it.

docs/source/developer/prepare-environment.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The following steps are recommended to set up your development environment:
7272
:caption: Creating a virtual environment with |uv|
7373
:name: uv-venv
7474
75-
$ uv venv --prompt venv313 --python 3.13 .venv
75+
uv venv --prompt venv313 --python 3.13 .venv
7676
7777
Keep in mind that the Python version used in the virtual environment should match the version specified in the :file:`pyproject.toml` file.
7878

@@ -85,7 +85,7 @@ The following steps are recommended to set up your development environment:
8585
:caption: Synchronizing the virtual environment with the development dependencies
8686
:name: uv-sync-devel
8787
88-
$ uv sync --frozen --group devel
88+
uv sync --frozen --group devel
8989
9090
The option ``--frozen`` ensures that the dependencies are installed exactly as specified in the lock file, preventing any unexpected changes.
9191

@@ -95,7 +95,7 @@ The following steps are recommended to set up your development environment:
9595
:caption: Activating the shell aliases for development
9696
:name: activate-aliases
9797
98-
$ source devel/activate-aliases.sh
98+
source devel/activate-aliases.sh
9999
100100
101101
After completing these steps, your development environment is ready to go.
@@ -113,7 +113,7 @@ To get started, clone this repository to your local machine (you need VPN access
113113

114114
.. code-block:: shell-session
115115
116-
$ git clone https://gitlab.suse.de/susedoc/docserv-config.git
116+
git clone https://gitlab.suse.de/susedoc/docserv-config.git
117117
118118
You will later need to point ``docbuild`` to the location of this cloned
119119
repository in your configuration.

docs/source/developer/project-dependencies.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ All of the above points (except for the last one) are defined in the :file:`pypr
2727
Operating System
2828
----------------
2929

30-
The code is developed on openSUSE, but should work on any Linux distribution.
30+
The code is developed on `openSUSE <https://www.opensuse.org/>`_, but should work on any Linux distribution.
3131
The project will support MacOS too. It's currently not planned to support Windows.
3232

3333

@@ -41,7 +41,7 @@ The project will support MacOS too. It's currently not planned to support Window
4141
Python
4242
------
4343

44-
The minimal Python version is defined in the :file:`pyproject.toml` file. It's strongly recommended to have the Python versions managed by |uv|.
44+
The minimal Python version is defined in the :file:`pyproject.toml` file. It is strongly recommended to have the Python versions managed by |uv|.
4545

4646

4747
Editor
@@ -53,8 +53,8 @@ You can use any editor you like. Rudimentary support is available for `VSCode <h
5353
External tools
5454
--------------
5555

56-
* |daps|: our tool to build documentation. This is an obligatory requirement. This adds other dependencies.
57-
* |uv|, the Python package manager. This is explained in :ref:`devel-helpers`.
58-
* :command:`make` is used to build the documentation.
59-
* :command:`jing`: for validation the XML configuration files.
60-
* :command:`gh`: optional tool for interacting with GitHub, see :ref:`github-cli`.
56+
* |daps|: Our tool to build documentation. This is an obligatory requirement. This adds other dependencies.
57+
* |uv|: The Python package and project manager. This is explained in :ref:`devel-helpers`.
58+
* :command:`make`: Used to orchestrate the documentation build process.
59+
* `jing <https://jing.nu/>`: For validating the XML configuration files against their RNC schema.
60+
* `gh <https://cli.github.com/>`: The GitHub CLI, an optional tool for GitHub interactions. See :ref:`github-cli`.

0 commit comments

Comments
 (0)