Skip to content

Commit e4611cc

Browse files
committed
deploy: 3e3bb1c
1 parent e1fe59f commit e4611cc

54 files changed

Lines changed: 222 additions & 324 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_sources/developer/project-dependencies.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ External tools
5656
* |daps|: Our tool to build documentation. This is an obligatory requirement. This adds other dependencies.
5757
* |uv|: The Python package and project manager. This is explained in :ref:`devel-helpers`.
5858
* :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`.
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`.

_sources/reference/_autoapi/docbuild/constants/index.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Attributes
3535
docbuild.constants.APP_CONFIG_FILENAME
3636
docbuild.constants.ENV_CONFIG_FILENAME
3737
docbuild.constants.DEFAULT_ENV_CONFIG_FILENAME
38+
docbuild.constants.GITLOGGER_NAME
3839
docbuild.constants.BASE_LOG_DIR
3940
docbuild.constants.XMLDATADIR
4041

@@ -172,6 +173,13 @@ Module Contents
172173
used in production.
173174

174175

176+
.. py:data:: GITLOGGER_NAME
177+
:value: 'docbuild.git'
178+
179+
180+
The standardized name for the Git-related logger.
181+
182+
175183
.. py:data:: BASE_LOG_DIR
176184
177185
The directory where log files will be stored, typically at

_sources/reference/_autoapi/docbuild/logging/index.rst.txt

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -9,50 +9,18 @@ docbuild.logging
99

1010

1111

12-
Attributes
13-
----------
14-
15-
.. autoapisummary::
16-
17-
docbuild.logging.LOGGERNAME
18-
docbuild.logging.LOGFILE
19-
docbuild.logging.KEEP_LOGS
20-
21-
2212
Functions
2313
---------
2414

2515
.. autoapisummary::
2616

2717
docbuild.logging.create_base_log_dir
2818
docbuild.logging.setup_logging
29-
docbuild.logging.get_effective_level
3019

3120

3221
Module Contents
3322
---------------
3423

35-
.. py:data:: LOGGERNAME
36-
:value: 'docbuild'
37-
38-
39-
Name of the main logger for the application.
40-
41-
42-
.. py:data:: LOGFILE
43-
:value: 'docbuild.log'
44-
45-
46-
Filename for the main log file.
47-
48-
49-
.. py:data:: KEEP_LOGS
50-
:value: 4
51-
52-
53-
Number of log files to keep before rolling over.
54-
55-
5624
.. py:function:: create_base_log_dir(base_log_dir: str | pathlib.Path = BASE_LOG_DIR) -> pathlib.Path
5725
5826
Create the base log directory if it doesn't exist.
@@ -65,24 +33,11 @@ Module Contents
6533
:return: The path to the base log directory.
6634

6735

68-
.. py:function:: setup_logging(cliverbosity: int | None, fmt: str = '[%(levelname)s] %(funcName)s: %(message)s', logdir: str | pathlib.Path | None = None, default_logdir: str | pathlib.Path = BASE_LOG_DIR, use_queue: bool = True) -> None
69-
70-
Set up logging for the application.
71-
72-
:param cliverbosity: The verbosity level from the command line.
73-
:param fmt: The format string for log messages.
74-
:param logdir: The directory where log files should be stored.
75-
:param default_logdir: The default directory for logs.
76-
:param use_queue: Whether to use QueueHandler and QueueListener (for production).
77-
78-
79-
.. py:function:: get_effective_level(verbosity: int | None, offset: int = 0) -> int
36+
.. py:function:: setup_logging(cliverbosity: int, user_config: dict[str, Any] | None = None) -> None
8037
81-
Return a valid log level, clamped safely.
38+
Sets up a non-blocking, configurable logging system.
8239

83-
:param verbosity: The verbosity level, typically from command
84-
line arguments (range 0..8)
85-
:param offset: An offset to apply to the verbosity level.
86-
:return: The effective log level.
40+
:param cliverbosity: ...
41+
:param user_config: ...
8742

8843

_sources/reference/_autoapi/docbuild/models/language/LanguageCode.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
docbuild.models.language.LanguageCode
22
=====================================
33

4-
.. py:class:: docbuild.models.language.LanguageCode(language: str, **kwargs: dict[Any, Any])
4+
.. py:class:: docbuild.models.language.LanguageCode(/, **data: Any)
55
66
Bases: :py:obj:`pydantic.BaseModel`
77

changelog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ <h3>Features<a class="headerlink" href="#features" title="Link to this heading">
507507
<ul class="simple">
508508
<li><p>Implement metadata from a <code class="docutils literal notranslate"><span class="pre">daps</span> <span class="pre">metadata</span></code> command. (<a class="extlink-gh reference external" href="https://github.com/openSUSE/docbuild/issues/16">GH #16</a>)</p></li>
509509
<li><p>Add new context manager <a class="reference internal" href="reference/_autoapi/docbuild/utils/contextmgr/PersistentOnErrorTemporaryDirectory.html#docbuild.utils.contextmgr.PersistentOnErrorTemporaryDirectory" title="docbuild.utils.contextmgr.PersistentOnErrorTemporaryDirectory"><code class="xref py py-class docutils literal notranslate"><span class="pre">PersistentOnErrorTemporaryDirectory</span></code></a>.
510-
It is derived from <a class="reference external" href="https://docs.python.org/3/library/tempfile.html#tempfile.TemporaryDirectory" title="(in Python v3.13)"><code class="xref py py-class docutils literal notranslate"><span class="pre">tempfile.TemporaryDirectory</span></code></a> and has a similar behavior, but it does not delete the temporary directory on exit if an exception occurs. (<a class="extlink-gh reference external" href="https://github.com/openSUSE/docbuild/issues/49">GH #49</a>)</p></li>
510+
It is derived from <a class="reference external" href="https://docs.python.org/3/library/tempfile.html#tempfile.TemporaryDirectory" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">tempfile.TemporaryDirectory</span></code></a> and has a similar behavior, but it does not delete the temporary directory on exit if an exception occurs. (<a class="extlink-gh reference external" href="https://github.com/openSUSE/docbuild/issues/49">GH #49</a>)</p></li>
511511
<li><p>Allow optional slash in Doctype syntax.
512512
Now it’s allowed to write instead of <code class="docutils literal notranslate"><span class="pre">&quot;*/*/*&quot;</span></code> the syntax <code class="docutils literal notranslate"><span class="pre">&quot;/*/*/*&quot;</span></code> and all variations of it. It’s the same, but helps to avoid accidental errors. (<a class="extlink-gh reference external" href="https://github.com/openSUSE/docbuild/issues/50">GH #50</a>)</p></li>
513513
<li><p>Implement async-aware context manager (<a class="extlink-gh reference external" href="https://github.com/openSUSE/docbuild/issues/52">GH #52</a>)</p></li>
@@ -684,7 +684,7 @@ <h3>Features<a class="headerlink" href="#id14" title="Link to this heading">#</a
684684
<ul class="simple">
685685
<li><p><a class="reference internal" href="reference/_autoapi/docbuild/logging/index.html#docbuild.logging.create_base_log_dir" title="docbuild.logging.create_base_log_dir"><code class="xref py py-func docutils literal notranslate"><span class="pre">create_base_log_dir()</span></code></a>: Create the base log directory if it doesn’t exist.</p></li>
686686
<li><p><a class="reference internal" href="reference/_autoapi/docbuild/logging/index.html#docbuild.logging.setup_logging" title="docbuild.logging.setup_logging"><code class="xref py py-func docutils literal notranslate"><span class="pre">setup_logging()</span></code></a>: Set up logging for the application.</p></li>
687-
<li><p><a class="reference internal" href="reference/_autoapi/docbuild/logging/index.html#docbuild.logging.get_effective_level" title="docbuild.logging.get_effective_level"><code class="xref py py-func docutils literal notranslate"><span class="pre">get_effective_level()</span></code></a>: Return a valid log level, clamped safely.</p></li>
687+
<li><p><code class="xref py py-func docutils literal notranslate"><span class="pre">get_effective_level()</span></code>: Return a valid log level, clamped safely.</p></li>
688688
</ul>
689689
<p>The <cite>setup_logging</cite> sets different loggers for the app itself, for Jinja,
690690
XPath, and Git.</p>

developer/design.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ <h2>Project design structure<a class="headerlink" href="#project-design-structur
578578
<h2>Commandline design patterns<a class="headerlink" href="#commandline-design-patterns" title="Link to this heading">#</a></h2>
579579
<p>The commandline interface is designed to be intuitive and user-friendly, following these patterns:</p>
580580
<ul class="simple">
581-
<li><p><strong>Dependency</strong>: The CLI is built using the <a class="reference external" href="https://click.palletsprojects.com/en/latest/api/#module-click" title="(in Click v8.2.x)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">click</span></code></a> library, which provides a simple and powerful way to create command-line interfaces in Python.</p></li>
581+
<li><p><strong>Dependency</strong>: The CLI is built using the <a class="reference external" href="https://click.palletsprojects.com/en/latest/api/#module-click" title="(in Click v8.3.x)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">click</span></code></a> library, which provides a simple and powerful way to create command-line interfaces in Python.</p></li>
582582
<li><p><strong>Subcommands</strong>: The CLI uses subcommands to organize functionality.</p></li>
583583
<li><p><strong>Options and Arguments</strong>: Options are used to modify the behavior of commands, while arguments are used to specify input data.</p></li>
584584
<li><p><strong>Help and Documentation</strong>: Each command and option has a help message that can be accessed using the <code class="docutils literal notranslate"><span class="pre">--help</span></code> flag. This provides users with information on how to use the command and its options.</p></li>

developer/project-dependencies.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ <h2>External tools<a class="headerlink" href="#external-tools" title="Link to th
517517
<li><p><strong class="command">daps</strong>: Our tool to build documentation. This is an obligatory requirement. This adds other dependencies.</p></li>
518518
<li><p><strong class="command">uv</strong>: The Python package and project manager. This is explained in <a class="reference internal" href="prepare-environment.html#devel-helpers"><span class="std std-ref">Helper Tools</span></a>.</p></li>
519519
<li><p><strong class="command">make</strong>: Used to orchestrate the documentation build process.</p></li>
520-
<li><p><cite>jing &lt;https://jing.nu/&gt;</cite>: For validating the XML configuration files against their RNC schema.</p></li>
521-
<li><p><cite>gh &lt;https://cli.github.com/&gt;</cite>: The GitHub CLI, an optional tool for GitHub interactions. See <a class="reference internal" href="prepare-environment.html#github-cli"><span class="std std-ref">GitHub CLI</span></a>.</p></li>
520+
<li><p><a class="reference external" href="https://jing.nu/">jing</a>: For validating the XML configuration files against their RNC schema.</p></li>
521+
<li><p><a class="reference external" href="https://cli.github.com/">gh</a>: The GitHub CLI, an optional tool for GitHub interactions. See <a class="reference internal" href="prepare-environment.html#github-cli"><span class="std std-ref">GitHub CLI</span></a>.</p></li>
522522
</ul>
523523
</section>
524524
</section>

genindex.html

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ <h1 id="index">Index</h1>
421421
| <a href="#G"><strong>G</strong></a>
422422
| <a href="#H"><strong>H</strong></a>
423423
| <a href="#I"><strong>I</strong></a>
424-
| <a href="#K"><strong>K</strong></a>
425424
| <a href="#L"><strong>L</strong></a>
426425
| <a href="#M"><strong>M</strong></a>
427426
| <a href="#N"><strong>N</strong></a>
@@ -1257,16 +1256,16 @@ <h2 id="G">G</h2>
12571256
<table style="width: 100%" class="indextable genindextable"><tr>
12581257
<td style="width: 33%; vertical-align: top;"><ul>
12591258
<li><a href="reference/_autoapi/docbuild/cli/cmd_metadata/metaprocess/index.html#docbuild.cli.cmd_metadata.metaprocess.get_deliverable_from_doctype">get_deliverable_from_doctype() (in module docbuild.cli.cmd_metadata.metaprocess)</a>
1260-
</li>
1261-
<li><a href="reference/_autoapi/docbuild/logging/index.html#docbuild.logging.get_effective_level">get_effective_level() (in module docbuild.logging)</a>
12621259
</li>
12631260
<li><a href="glossary.html#term-GIL"><strong>GIL</strong></a>
12641261
</li>
1265-
</ul></td>
1266-
<td style="width: 33%; vertical-align: top;"><ul>
12671262
<li><a href="reference/_autoapi/docbuild/models/deliverable/Deliverable.html#docbuild.models.deliverable.Deliverable.git">git (docbuild.models.deliverable.Deliverable property)</a>
12681263
</li>
1264+
</ul></td>
1265+
<td style="width: 33%; vertical-align: top;"><ul>
12691266
<li><a href="glossary.html#term-GitHub-Action"><strong>GitHub Action</strong></a>
1267+
</li>
1268+
<li><a href="reference/_autoapi/docbuild/constants/index.html#docbuild.constants.GITLOGGER_NAME">GITLOGGER_NAME (in module docbuild.constants)</a>
12701269
</li>
12711270
<li><a href="glossary.html#term-Global-Interpreter-Lock"><strong>Global Interpreter Lock</strong></a>
12721271
</li>
@@ -1293,14 +1292,6 @@ <h2 id="I">I</h2>
12931292
</ul></td>
12941293
</tr></table>
12951294

1296-
<h2 id="K">K</h2>
1297-
<table style="width: 100%" class="indextable genindextable"><tr>
1298-
<td style="width: 33%; vertical-align: top;"><ul>
1299-
<li><a href="reference/_autoapi/docbuild/logging/index.html#docbuild.logging.KEEP_LOGS">KEEP_LOGS (in module docbuild.logging)</a>
1300-
</li>
1301-
</ul></td>
1302-
</tr></table>
1303-
13041295
<h2 id="L">L</h2>
13051296
<table style="width: 100%" class="indextable genindextable"><tr>
13061297
<td style="width: 33%; vertical-align: top;"><ul>
@@ -1320,14 +1311,14 @@ <h2 id="L">L</h2>
13201311
</ul></li>
13211312
<li><a href="glossary.html#term-Lifecycle"><strong>Lifecycle</strong></a>
13221313
</li>
1314+
</ul></td>
1315+
<td style="width: 33%; vertical-align: top;"><ul>
13231316
<li><a href="reference/_autoapi/docbuild/models/deliverable/Deliverable.html#docbuild.models.deliverable.Deliverable.lifecycle">lifecycle (docbuild.models.deliverable.Deliverable property)</a>
13241317

13251318
<ul>
13261319
<li><a href="reference/_autoapi/docbuild/models/doctype/Doctype.html#docbuild.models.doctype.Doctype.lifecycle">(docbuild.models.doctype.Doctype attribute)</a>
13271320
</li>
13281321
</ul></li>
1329-
</ul></td>
1330-
<td style="width: 33%; vertical-align: top;"><ul>
13311322
<li><a href="reference/_autoapi/docbuild/models/lifecycle/index.html#docbuild.models.lifecycle.LifecycleFlag">LifecycleFlag (in module docbuild.models.lifecycle)</a>
13321323
</li>
13331324
<li><a href="reference/_autoapi/docbuild/constants/index.html#docbuild.constants.LIFECYCLES_STR">LIFECYCLES_STR (in module docbuild.constants)</a>
@@ -1339,10 +1330,6 @@ <h2 id="L">L</h2>
13391330
<li><a href="reference/_autoapi/docbuild/config/xml/stitch/index.html#docbuild.config.xml.stitch.load_check_functions">load_check_functions() (in module docbuild.config.xml.stitch)</a>
13401331
</li>
13411332
<li><a href="reference/_autoapi/docbuild/config/load/index.html#docbuild.config.load.load_single_config">load_single_config() (in module docbuild.config.load)</a>
1342-
</li>
1343-
<li><a href="reference/_autoapi/docbuild/logging/index.html#docbuild.logging.LOGFILE">LOGFILE (in module docbuild.logging)</a>
1344-
</li>
1345-
<li><a href="reference/_autoapi/docbuild/logging/index.html#docbuild.logging.LOGGERNAME">LOGGERNAME (in module docbuild.logging)</a>
13461333
</li>
13471334
</ul></td>
13481335
</tr></table>

objects.inv

-34 Bytes
Binary file not shown.

reference/_autoapi/docbuild/cli/cmd_build/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ <h2>Functions<a class="headerlink" href="#functions" title="Link to this heading
613613
<h2>Package Contents<a class="headerlink" href="#package-contents" title="Link to this heading">#</a></h2>
614614
<dl class="py function">
615615
<dt class="sig sig-object py" id="docbuild.cli.cmd_build.build">
616-
<span class="sig-prename descclassname"><span class="pre">docbuild.cli.cmd_build.</span></span><span class="sig-name descname"><span class="pre">build</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">ctx</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://click.palletsprojects.com/en/latest/api/#click.Context" title="(in Click v8.2.x)"><span class="pre">click.Context</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">doctypes</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#tuple" title="(in Python v3.13)"><span class="pre">tuple</span></a><span class="p"><span class="pre">[</span></span><a class="reference internal" href="../../models/doctype/Doctype.html#docbuild.models.doctype.Doctype" title="docbuild.models.doctype.Doctype"><span class="pre">docbuild.models.doctype.Doctype</span></a><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><span class="pre">None</span></a></span></span><a class="headerlink" href="#docbuild.cli.cmd_build.build" title="Link to this definition">#</a></dt>
616+
<span class="sig-prename descclassname"><span class="pre">docbuild.cli.cmd_build.</span></span><span class="sig-name descname"><span class="pre">build</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">ctx</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://click.palletsprojects.com/en/latest/api/#click.Context" title="(in Click v8.3.x)"><span class="pre">click.Context</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">doctypes</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#tuple" title="(in Python v3.14)"><span class="pre">tuple</span></a><span class="p"><span class="pre">[</span></span><a class="reference internal" href="../../models/doctype/Doctype.html#docbuild.models.doctype.Doctype" title="docbuild.models.doctype.Doctype"><span class="pre">docbuild.models.doctype.Doctype</span></a><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.14)"><span class="pre">None</span></a></span></span><a class="headerlink" href="#docbuild.cli.cmd_build.build" title="Link to this definition">#</a></dt>
617617
<dd><p>Subcommand build.</p>
618618
<dl class="field-list simple">
619619
<dt class="field-odd">Parameters<span class="colon">:</span></dt>

0 commit comments

Comments
 (0)