You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Move "XML configuration" section to user guide
Also change title, set an anchor, and make it clear why we need that.
* Create a new glossary entry TOML
* Revise "Configuring the Tool"
* Add URLs to Sphinx extensions
* Amend IDEAS
* Raise maxdepth for main index
Move "XML configuration" section to user guide. Also change title, set an anchor, and make it clear why we need that. Revise "Configuring the Tool" section.
Copy file name to clipboardExpand all lines: docs/source/developer/project-dependencies.rst
-9Lines changed: 0 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,12 +58,3 @@ External tools
58
58
* :command:`make` is used to build the documentation.
59
59
* :command:`jing`: for validation the XML configuration files.
60
60
* :command:`gh`: optional tool for interacting with GitHub, see :ref:`github-cli`.
61
-
62
-
63
-
64
-
XML configuration
65
-
-----------------
66
-
67
-
Formerly known as the *Docserv XML configs*. These configuration files defines the :term:`products <Product>`, their :term:`releases <Docset>`, their :term:`lifecycle <Lifecycle>` status and more.
68
-
69
-
Clone the |gl_xmlconfig| or use the RNC schema from :gh_tree:`src/docbuild/config/xml/data/` to create this configuration.
Copy file name to clipboardExpand all lines: docs/source/user/config.rst
+21-7Lines changed: 21 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,32 @@
3
3
Configuring the Tool
4
4
---------------------
5
5
6
-
Currently, the environment configuration is done via a TOML file. An example configuration file is provided in the repository. find it at :gh_tree:`etc/docbuild/env.example.toml`. Copy it to your working directory and name it accordingly to your purpose, for example, ``env.development.toml``, ``env.testing.toml``, or ``env.production.toml``. Modify it according to your needs.
6
+
.. note::
7
7
8
-
To use the configuration file, specific it with the option ``--env-config``.
8
+
To prevent accidental commits of sensitive information, all configuration files matching the :file:`env.*.toml` pattern in the root directory are ignored by git. However, this rule does not apply to files within the :file:`etc/` directory.
9
9
10
-
If you need to deal with different environments (testing, staging, production), it can be tedious to type. In such a case, use aliases in your shell.
10
+
Use separate TOML files to define the configuration for each of your environments. To avoid confusion, name each file according to its specific purpose. For instance, use :file:`env.devel.toml` for development, :file:`env.staging.toml` for staging, and :file:`env.production.toml` for production.
11
+
12
+
An example configuration file is provided in the repository at :gh_tree:`etc/docbuild/env.example.toml`.
13
+
14
+
To use your configuration file, follow these steps one time:
15
+
16
+
#. In your cloned GitHub repository, copy the example file :file:`etc/docbuild/env.example.toml` to the root directory of this project. For example::
17
+
18
+
cp etc/docbuild/env.example.toml env.devel.toml
19
+
20
+
#. Open your TOML file.
21
+
22
+
#. Adjust the path ``paths.root_config_dir``. Use the path from :ref:`get-xml-config`. The rest can stay as it is.
23
+
24
+
#. Specific the configuration with the global option ``--env-config``.
25
+
26
+
To deal with different environments without having to type the full command each time, create aliases in your shell. This allows you to quickly switch between configurations without needing to remember the exact command syntax.
11
27
12
28
.. code-block:: shell-session
13
-
:caption: Example aliases for a configuration file
29
+
:caption: Example aliases for different configuration files
14
30
:name: docbuild-aliases
15
31
16
32
$ alias docbuild-prod='docbuild --env-config env.production.toml'
17
33
$ alias docbuild-test='docbuild --env-config env.testing.toml'
18
-
$ alias docbuild-dev='docbuild --env-config env.development.toml'
19
-
20
-
Keep in mind, all configuration files that match the pattern ``env.*.toml`` are ignored by git. This is on purpose to prevent accidental commits of sensitive information.
34
+
$ alias docbuild-dev='docbuild --env-config env.devel.toml'
Copy file name to clipboardExpand all lines: docs/source/user/install.rst
+20-5Lines changed: 20 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,13 @@ Installing docbuild
3
3
4
4
To install the docbuild tool, follow these steps:
5
5
6
-
1. :ref:`prepare-installation` - Prepare your environment for installation.
6
+
#. :ref:`prepare-installation` - Prepare your environment for installation.
7
7
8
-
2. :ref:`installing-docbuild` - Install the docbuild tool itself.
8
+
#. :ref:`installing-docbuild` - Install the docbuild tool itself.
9
9
10
-
3. :ref:`configuring-docbuild` - Configure the docbuild tool to suit your needs.
10
+
#. :ref:`get-xml-config` - Get the XML configuration files required for building documentation.
11
+
12
+
#. :ref:`configuring-docbuild` - Configure the docbuild tool to suit your needs.
11
13
12
14
13
15
.. _prepare-installation:
@@ -45,15 +47,15 @@ There are different methods to install the :command:`uv` package manager
45
47
46
48
You should see the version of :command:`uv` printed in the terminal.
47
49
48
-
3. **Install Python 3.13 or higher**
50
+
3. **Install Python 3.12 or higher**
49
51
50
52
As of the time of writing, the docbuild tool requires Python 3.12 or higher. Install the Python version using :command:`uv`:
51
53
52
54
.. code-block:: shell-session
53
55
54
56
$ uv python install 3.13
55
57
56
-
This command will download Python 3.13 and install it in the directory :file:`~/.local/share/uv/python/<VERSION>`.
58
+
The previous command downloads Python 3.13 and install it in the directory :file:`~/.local/share/uv/python/<VERSION>`.
57
59
58
60
4. **Check the available Python versions**
59
61
@@ -105,3 +107,16 @@ Installing the tool
105
107
Resolved 29 packages in 586ms
106
108
Built docbuild @ file:///.../docbuild
107
109
Installed 15 packages in 2.11s
110
+
111
+
112
+
.. _get-xml-config:
113
+
114
+
Getting the XML configuration
115
+
-----------------------------
116
+
117
+
Formerly known as the *Docserv XML configs*. These configuration files defines the :term:`products <Product>`, their :term:`releases <Docset>`, their :term:`lifecycle <Lifecycle>` status and more.
118
+
119
+
The tool needs the XML configuration to build the documentation correctly. The XML configuration is not part of the docbuild tool itself, but it is required to run the tool.
120
+
121
+
Clone the |gl_xmlconfig| to your machine where you can access it easily.
122
+
As an alternative, use the RNC schema from :gh_tree:`src/docbuild/config/xml/data/` to create your own configuration.
0 commit comments