doxtr-cli 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,110 @@
1
+ Metadata-Version: 2.4
2
+ Name: doxtr-cli
3
+ Version: 0.1.0
4
+ Summary: Unified CLI tool for Doxtr documentation release, test staging, and local/container preview serving.
5
+ Author: Jens Frey
6
+ Project-URL: Homepage, https://github.com/doxtr/doxtr-cli
7
+ Project-URL: Repository, https://github.com/doxtr/doxtr-cli
8
+ Project-URL: Issues, https://github.com/doxtr/doxtr-cli/issues
9
+ Classifier: Environment :: Console
10
+ Classifier: Framework :: Sphinx
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Documentation
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: click>=8.0
22
+ Requires-Dist: rich>=13.0
23
+ Requires-Dist: requests>=2.28
24
+ Requires-Dist: tomli>=2.0; python_version < "3.11"
25
+ Provides-Extra: watch
26
+ Requires-Dist: watchfiles>=0.20; extra == "watch"
27
+ Provides-Extra: sphinx
28
+ Requires-Dist: sphinx>=7.0; extra == "sphinx"
29
+ Requires-Dist: sphinxcontrib-confluencebuilder>=2.0; extra == "sphinx"
30
+ Provides-Extra: all
31
+ Requires-Dist: doxtr-cli[sphinx,watch]; extra == "all"
32
+ Provides-Extra: dev
33
+ Requires-Dist: pytest>=7.0; extra == "dev"
34
+ Requires-Dist: pytest-cov>=4.0; extra == "dev"
35
+ Requires-Dist: ruff==0.16.9; extra == "dev"
36
+ Requires-Dist: mypy>=1.0; extra == "dev"
37
+ Requires-Dist: types-requests>=2.28; extra == "dev"
38
+ Requires-Dist: sphinx>=7.0; extra == "dev"
39
+ Dynamic: license-file
40
+
41
+ # doxtr-cli
42
+
43
+ Command-line tool (`doxtr`) for building, staging, publishing, and previewing Sphinx documentation projects in the Doxtr ecosystem.
44
+
45
+ ## Commands
46
+
47
+ - `doxtr release`: Production build (light PDF, dark PDF, HTML site, bundled PDF download artifacts + SHA-256 `artifacts.json` manifest, and Confluence release publish + PDF attachments). Protected by a strict interactive confirmation gate requiring literal `yes` + Enter (or `--dry-run`).
48
+ - `doxtr test`: Staging build with rich Git metadata stamping (`<ver>+g<sha>.<branch>[-dirty] (<utc>)`), optional PDF watermark (`--watermark`), announcement-banner HTML output (`build/html-test`), bundled test PDF downloads, and isolated `[confluence.test]` targeting.
49
+ - `doxtr serve`: Serves built documentation or live theme previews via either Reactor's `nginx` (`default.template`) or a pure-Python multi-version `ThreadingHTTPServer` supporting `/versions.json`, `/?scheme=dark|light`, `--theme`, and `--watch` incremental rebuilds.
50
+ - `doxtr info`: Displays resolved `doxtr.toml` configuration and current Git metadata (supports `--json`).
51
+
52
+ ## Installation
53
+
54
+ ```bash
55
+ pip install doxtr-cli
56
+ # With optional live watch & Sphinx dependencies:
57
+ pip install "doxtr-cli[all]"
58
+ ```
59
+
60
+ ## Configuration (`doxtr.toml`)
61
+
62
+ ```toml
63
+ [project]
64
+ name = "doxtr-docs"
65
+ source_dir = "source"
66
+ build_dir = "build"
67
+ latex_name = "doxtr"
68
+
69
+ [html]
70
+ theme = "doxtr_aubergine"
71
+ downloads_subdir = "_static/downloads"
72
+
73
+ [pdf]
74
+ light = true
75
+ dark = true
76
+ light_filename = "doxtr-light.pdf"
77
+ dark_filename = "doxtr-dark.pdf"
78
+ copy_to_html_downloads = true
79
+
80
+ [confluence.release]
81
+ enabled = true
82
+ space_key = "DOCS"
83
+ parent_page = "Doxtr Documentation"
84
+ server_url = "${DOXTR_CONFLUENCE_URL}"
85
+ attach_pdfs = true
86
+
87
+ [confluence.test]
88
+ enabled = true
89
+ space_key = "DOCSTEST"
90
+ parent_page = "Sandbox Previews"
91
+ server_url = "${DOXTR_CONFLUENCE_URL}"
92
+ attach_pdfs = true
93
+ page_title_prefix = "[TEST] "
94
+
95
+ [serve]
96
+ default_backend = "auto"
97
+ port = 8008
98
+ host = "0.0.0.0"
99
+ versions_dir = "build/versions"
100
+ nginx_template = "/workspaces/docs/reactor/default.template"
101
+ ```
102
+
103
+ ## Exit Codes
104
+
105
+ | Code | Meaning |
106
+ | --- | --- |
107
+ | `0` | Success |
108
+ | `1` | Build/export failure or interactive confirmation declined |
109
+ | `2` | Invalid configuration or missing required external binary |
110
+ | `130` | Interrupted by user (`Ctrl-C` / `SIGINT`) |
@@ -0,0 +1,16 @@
1
+ doxtr_cli/__init__.py,sha256=hLU6VfvIsmi8c79AtF4jjFizbnFyuKlhRjtOwXH3GKY,1069
2
+ doxtr_cli/__main__.py,sha256=NX4cB2zjuYKq_3SnYE7ZNIOHU5Ud2G9S9dEiDV7YmA8,144
3
+ doxtr_cli/builders.py,sha256=MyeGaRDDHe1gyvOQ9KRPP5HLH24wkk01eLToEXzXNWw,19300
4
+ doxtr_cli/cli.py,sha256=HoDvavu_u5_r8rY7A5J8jxUkvJupQR79d-XsGYs3ckk,9144
5
+ doxtr_cli/config.py,sha256=dmoKCBDj16fS2hrhSj5cUyBdHKKcit-vrCvkPUnGtB4,11320
6
+ doxtr_cli/confluence.py,sha256=GBkdbDFaDmBqkwl-wwsDIY32widoEc2371W7LB2JZkY,5854
7
+ doxtr_cli/errors.py,sha256=8OI6MX_d0LAe2hf1eOUlbR8iTKnRiX2h9fOcPwsHJCQ,1263
8
+ doxtr_cli/git_meta.py,sha256=jVGejRo5Rp3RMD7C6MdlgqR0Q7g2LvjRhNkCaq99vFM,3806
9
+ doxtr_cli/prompts.py,sha256=ru-jmaRxzIcQsHWueU3YrCJtzVFG5-FHGlyuTY8cObI,3293
10
+ doxtr_cli/server.py,sha256=CYsZ_Gqh0CQCXigcXQolVXBoVaOneku4cXJHTwRo4_I,27250
11
+ doxtr_cli-0.1.0.dist-info/licenses/LICENSE,sha256=DSTWkW3DtQEr6-3t8gcb6yF6S2YqrDn-BU1pNfUyiyc,1062
12
+ doxtr_cli-0.1.0.dist-info/METADATA,sha256=zwKyurGmjO1UZPJ_VlNRPq0LUM7bvOaP1_qR27SAAu0,3891
13
+ doxtr_cli-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
14
+ doxtr_cli-0.1.0.dist-info/entry_points.txt,sha256=ZC3w73I6f-AkqRNZD9WT2Zew8osVpaef9RopbYUNODY,45
15
+ doxtr_cli-0.1.0.dist-info/top_level.txt,sha256=HztbwurnEF_bPrf28udO13SB9KmA2bMjZC8iF-tgO2E,10
16
+ doxtr_cli-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ doxtr = doxtr_cli.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Doxtr
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ doxtr_cli