tracecite-docs 0.0.1__tar.gz → 0.0.2__tar.gz

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.
Files changed (52) hide show
  1. tracecite_docs-0.0.2/PKG-INFO +61 -0
  2. tracecite_docs-0.0.2/README.md +26 -0
  3. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/pyproject.toml +6 -6
  4. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/docs/stage.py +51 -2
  5. tracecite_docs-0.0.2/src/tracecite_docs.egg-info/PKG-INFO +61 -0
  6. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs.egg-info/requires.txt +4 -8
  7. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/docs/test_stage.py +46 -26
  8. tracecite_docs-0.0.1/PKG-INFO +0 -94
  9. tracecite_docs-0.0.1/README.md +0 -58
  10. tracecite_docs-0.0.1/src/tracecite_docs.egg-info/PKG-INFO +0 -94
  11. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/LICENSE +0 -0
  12. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/MANIFEST.in +0 -0
  13. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/setup.cfg +0 -0
  14. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/__init__.py +0 -0
  15. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/__main__.py +0 -0
  16. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/cli.py +0 -0
  17. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/docs/__init__.py +0 -0
  18. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/docs/build.py +0 -0
  19. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/docs/config.py +0 -0
  20. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/docs/contract.py +0 -0
  21. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/docs/modes.py +0 -0
  22. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/docs/vectorize.py +0 -0
  23. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/__init__.py +0 -0
  24. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/_text.py +0 -0
  25. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/document.py +0 -0
  26. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/html.py +0 -0
  27. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/models.py +0 -0
  28. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/normalise.py +0 -0
  29. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/pandoc.py +0 -0
  30. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/publish.py +0 -0
  31. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/render.py +0 -0
  32. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs/tables/site.py +0 -0
  33. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs.egg-info/SOURCES.txt +0 -0
  34. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs.egg-info/dependency_links.txt +0 -0
  35. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs.egg-info/entry_points.txt +0 -0
  36. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/src/tracecite_docs.egg-info/top_level.txt +0 -0
  37. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/docs/__init__.py +0 -0
  38. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/docs/conftest.py +0 -0
  39. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/docs/test_config.py +0 -0
  40. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/docs/test_docs_cli.py +0 -0
  41. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/docs/test_modes.py +0 -0
  42. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/docs/test_vectorize.py +0 -0
  43. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/fixtures/docs-vector/.gitignore +0 -0
  44. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/fixtures/docs-vector/docs/authored/.gitkeep +0 -0
  45. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/fixtures/docs-vector/docs/retained/assets/diagram.svg +0 -0
  46. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/fixtures/docs-vector/docs/retained/guide.md +0 -0
  47. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/fixtures/docs-vector/docs/source-links.toml +0 -0
  48. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/fixtures/docs-vector/sources/report.pdf +0 -0
  49. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/fixtures/docs-vector/tracecite.toml +0 -0
  50. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/test_docs.py +0 -0
  51. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/test_tables.py +0 -0
  52. {tracecite_docs-0.0.1 → tracecite_docs-0.0.2}/tests/test_version.py +0 -0
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: tracecite-docs
3
+ Version: 0.0.2
4
+ Summary: Quarto builds and source-linked table normalisation for executable Python and Julia pages
5
+ Author: ARPST-UniMelb
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/yasirroni/tracecite-docs
8
+ Project-URL: Documentation, https://yasirroni.github.io/tracecite/
9
+ Project-URL: Issues, https://github.com/yasirroni/tracecite-docs/issues
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Operating System :: MacOS
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Scientific/Engineering
16
+ Classifier: Topic :: Text Processing :: Indexing
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: tracecite>=0.0.3
21
+ Requires-Dist: beautifulsoup4>=4.12
22
+ Requires-Dist: PyYAML>=6.0
23
+ Requires-Dist: tabulate>=0.9
24
+ Provides-Extra: python
25
+ Requires-Dist: ipykernel>=7.3; extra == "python"
26
+ Requires-Dist: nbclient>=0.11; extra == "python"
27
+ Requires-Dist: nbformat>=5.10; extra == "python"
28
+ Requires-Dist: pandas>=2.0; extra == "python"
29
+ Provides-Extra: evidence
30
+ Requires-Dist: tracecite[evidence]>=0.0.3; extra == "evidence"
31
+ Provides-Extra: test
32
+ Requires-Dist: build>=1.2; extra == "test"
33
+ Requires-Dist: pytest<9,>=8.4; extra == "test"
34
+ Dynamic: license-file
35
+
36
+ # tracecite-docs
37
+
38
+ Build Quarto sites from executable Python (`.py`) and Julia (`.jl`) pages.
39
+ Preserve raw tables and source links alongside normalised text for citation and search.
40
+ Also supports HTML tables produced by Literate.jl and Documenter.jl.
41
+
42
+ ```bash
43
+ uv pip install 'tracecite-docs[python,evidence]'
44
+ tracecite-docs build docs
45
+ tracecite-docs table normalise table.md
46
+ tracecite-docs table check docs/build
47
+ ```
48
+
49
+ The `python` extra enables Python pages; `evidence` adds indexing and search.
50
+ The `build` command needs Quarto; Markdown tables need Pandoc or Quarto.
51
+ Julia pages also need Julia.
52
+
53
+ ## Runnable examples
54
+
55
+ | Pages | Example project |
56
+ |---|---|
57
+ | Python only | [Quarto](https://github.com/yasirroni/tracecite/tree/main/docs_quarto_py) |
58
+ | Julia only | [Literate.jl / Documenter.jl](https://github.com/yasirroni/tracecite/tree/main/docs_jl) |
59
+ | Python and Julia | [Mixed Quarto](https://github.com/yasirroni/tracecite/tree/main/docs) |
60
+
61
+ [Documentation](https://yasirroni.github.io/tracecite/)
@@ -0,0 +1,26 @@
1
+ # tracecite-docs
2
+
3
+ Build Quarto sites from executable Python (`.py`) and Julia (`.jl`) pages.
4
+ Preserve raw tables and source links alongside normalised text for citation and search.
5
+ Also supports HTML tables produced by Literate.jl and Documenter.jl.
6
+
7
+ ```bash
8
+ uv pip install 'tracecite-docs[python,evidence]'
9
+ tracecite-docs build docs
10
+ tracecite-docs table normalise table.md
11
+ tracecite-docs table check docs/build
12
+ ```
13
+
14
+ The `python` extra enables Python pages; `evidence` adds indexing and search.
15
+ The `build` command needs Quarto; Markdown tables need Pandoc or Quarto.
16
+ Julia pages also need Julia.
17
+
18
+ ## Runnable examples
19
+
20
+ | Pages | Example project |
21
+ |---|---|
22
+ | Python only | [Quarto](https://github.com/yasirroni/tracecite/tree/main/docs_quarto_py) |
23
+ | Julia only | [Literate.jl / Documenter.jl](https://github.com/yasirroni/tracecite/tree/main/docs_jl) |
24
+ | Python and Julia | [Mixed Quarto](https://github.com/yasirroni/tracecite/tree/main/docs) |
25
+
26
+ [Documentation](https://yasirroni.github.io/tracecite/)
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tracecite-docs"
7
- version = "0.0.1"
8
- description = "Source-linked table normalisation and evidence retrieval for executable documentation"
7
+ version = "0.0.2"
8
+ description = "Quarto builds and source-linked table normalisation for executable Python and Julia pages"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
11
11
  license = "MIT"
@@ -28,15 +28,15 @@ dependencies = [
28
28
  ]
29
29
 
30
30
  [project.urls]
31
+ Homepage = "https://github.com/yasirroni/tracecite-docs"
31
32
  Documentation = "https://yasirroni.github.io/tracecite/"
33
+ Issues = "https://github.com/yasirroni/tracecite-docs/issues"
32
34
 
33
35
  [project.optional-dependencies]
34
36
  # Quarto runs Python documentation pages through a Jupyter kernel.
35
- docs = ["ipykernel>=7.3", "nbclient>=0.11", "nbformat>=5.10", "tracecite-docs[pandas]"]
37
+ python = ["ipykernel>=7.3", "nbclient>=0.11", "nbformat>=5.10", "pandas>=2.0"]
36
38
  evidence = ["tracecite[evidence]>=0.0.3"]
37
- # knowledge_table and computed_first_row_summary take a pandas DataFrame.
38
- pandas = ["pandas>=2.0"]
39
- test = ["build>=1.2", "pytest>=8.4,<9", "tracecite-docs[pandas]"]
39
+ test = ["build>=1.2", "pytest>=8.4,<9"]
40
40
 
41
41
  [project.scripts]
42
42
  tracecite-docs = "tracecite_docs.cli:main"
@@ -13,8 +13,7 @@ from typing import Literal
13
13
  from tracecite.evidence.source_links import (
14
14
  SourceLinkEntry,
15
15
  load_source_links,
16
- parse_staged_markdown_destination,
17
- parse_staged_source_destination,
16
+ parse_source_link_destination,
18
17
  )
19
18
 
20
19
  from .contract import DocsEvidenceContract
@@ -86,6 +85,56 @@ _HTML_BLOCK_TAGS = {
86
85
  _TABLE_SEPARATOR = re.compile(r"^\s*\|?\s*:?-{3,}:?\s*(?:\|\s*:?-{3,}:?\s*)+\|?\s*$")
87
86
 
88
87
 
88
+ def parse_staged_source_destination(destination: str) -> tuple[str, int] | None:
89
+ """Parse a narrow local PDF `#page=N` destination for stage rewriting."""
90
+ parsed = parse_source_link_destination(destination)
91
+ if parsed is None:
92
+ return None
93
+ path, page = parsed
94
+ if (
95
+ page <= 0
96
+ or any(character in path for character in "?#()<>\t\r\n")
97
+ or any(character.isspace() for character in path)
98
+ or not path.lower().endswith(".pdf")
99
+ ):
100
+ return None
101
+ return path, page
102
+
103
+
104
+ def parse_staged_markdown_destination(destination: str) -> tuple[str, str] | None:
105
+ """Parse a narrow local `.md` or `.md#anchor` destination for stage rewriting.
106
+
107
+ Returns ``(path, anchor)`` with ``anchor`` the empty string when no
108
+ fragment was authored, or ``None`` when the destination is not a
109
+ supported local Markdown routing candidate (remote, query-bearing,
110
+ angle-wrapped, malformed, or wrong-extension destinations all return
111
+ ``None`` so the caller can leave them untouched rather than erroring).
112
+ """
113
+ if (
114
+ not destination
115
+ or "?" in destination
116
+ or "://" in destination
117
+ or destination.startswith("<")
118
+ or destination.count("#") > 1
119
+ ):
120
+ return None
121
+ path, separator, anchor = destination.partition("#")
122
+ if separator and not anchor:
123
+ return None
124
+ if (
125
+ not path
126
+ or any(character in path for character in "?#()<>\t\r\n")
127
+ or any(character.isspace() for character in path)
128
+ or not path.lower().endswith(".md")
129
+ ):
130
+ return None
131
+ if any(character.isspace() for character in anchor) or any(
132
+ character in anchor for character in "()<>"
133
+ ):
134
+ return None
135
+ return path, anchor
136
+
137
+
89
138
  def _protected_ranges(
90
139
  line: str, in_comment: bool
91
140
  ) -> tuple[list[tuple[int, int]], bool]:
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: tracecite-docs
3
+ Version: 0.0.2
4
+ Summary: Quarto builds and source-linked table normalisation for executable Python and Julia pages
5
+ Author: ARPST-UniMelb
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/yasirroni/tracecite-docs
8
+ Project-URL: Documentation, https://yasirroni.github.io/tracecite/
9
+ Project-URL: Issues, https://github.com/yasirroni/tracecite-docs/issues
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Operating System :: MacOS
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Scientific/Engineering
16
+ Classifier: Topic :: Text Processing :: Indexing
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: tracecite>=0.0.3
21
+ Requires-Dist: beautifulsoup4>=4.12
22
+ Requires-Dist: PyYAML>=6.0
23
+ Requires-Dist: tabulate>=0.9
24
+ Provides-Extra: python
25
+ Requires-Dist: ipykernel>=7.3; extra == "python"
26
+ Requires-Dist: nbclient>=0.11; extra == "python"
27
+ Requires-Dist: nbformat>=5.10; extra == "python"
28
+ Requires-Dist: pandas>=2.0; extra == "python"
29
+ Provides-Extra: evidence
30
+ Requires-Dist: tracecite[evidence]>=0.0.3; extra == "evidence"
31
+ Provides-Extra: test
32
+ Requires-Dist: build>=1.2; extra == "test"
33
+ Requires-Dist: pytest<9,>=8.4; extra == "test"
34
+ Dynamic: license-file
35
+
36
+ # tracecite-docs
37
+
38
+ Build Quarto sites from executable Python (`.py`) and Julia (`.jl`) pages.
39
+ Preserve raw tables and source links alongside normalised text for citation and search.
40
+ Also supports HTML tables produced by Literate.jl and Documenter.jl.
41
+
42
+ ```bash
43
+ uv pip install 'tracecite-docs[python,evidence]'
44
+ tracecite-docs build docs
45
+ tracecite-docs table normalise table.md
46
+ tracecite-docs table check docs/build
47
+ ```
48
+
49
+ The `python` extra enables Python pages; `evidence` adds indexing and search.
50
+ The `build` command needs Quarto; Markdown tables need Pandoc or Quarto.
51
+ Julia pages also need Julia.
52
+
53
+ ## Runnable examples
54
+
55
+ | Pages | Example project |
56
+ |---|---|
57
+ | Python only | [Quarto](https://github.com/yasirroni/tracecite/tree/main/docs_quarto_py) |
58
+ | Julia only | [Literate.jl / Documenter.jl](https://github.com/yasirroni/tracecite/tree/main/docs_jl) |
59
+ | Python and Julia | [Mixed Quarto](https://github.com/yasirroni/tracecite/tree/main/docs) |
60
+
61
+ [Documentation](https://yasirroni.github.io/tracecite/)
@@ -3,19 +3,15 @@ beautifulsoup4>=4.12
3
3
  PyYAML>=6.0
4
4
  tabulate>=0.9
5
5
 
6
- [docs]
7
- ipykernel>=7.3
8
- nbclient>=0.11
9
- nbformat>=5.10
10
- tracecite-docs[pandas]
11
-
12
6
  [evidence]
13
7
  tracecite[evidence]>=0.0.3
14
8
 
15
- [pandas]
9
+ [python]
10
+ ipykernel>=7.3
11
+ nbclient>=0.11
12
+ nbformat>=5.10
16
13
  pandas>=2.0
17
14
 
18
15
  [test]
19
16
  build>=1.2
20
17
  pytest<9,>=8.4
21
- tracecite-docs[pandas]
@@ -3,14 +3,12 @@ from __future__ import annotations
3
3
  from pathlib import Path
4
4
 
5
5
  import pytest
6
- import tracecite.evidence.verify as verify_module
7
- from tracecite.evidence.source_links import (
8
- parse_source_link_destination,
9
- parse_staged_source_destination,
10
- )
11
- from tracecite.evidence.verify import _parse_definitions
12
6
 
13
7
  from tracecite_docs.docs import load_docs_contract, stage_docs
8
+ from tracecite_docs.docs.stage import (
9
+ parse_staged_markdown_destination,
10
+ parse_staged_source_destination,
11
+ )
14
12
 
15
13
 
16
14
  def _fixture(tmp_path: Path) -> tuple[Path, Path, str]:
@@ -79,36 +77,58 @@ publication_exclude = []
79
77
  return config, retained / "index.md", source
80
78
 
81
79
 
82
- def test_verifier_and_stager_share_destination_parser_contract() -> None:
83
- destination = "<sources/report\\ file.pdf#page=7>"
84
- assert parse_source_link_destination(destination) == ("sources/report file.pdf", 7)
85
- definitions, issues, _ = _parse_definitions([f"[report]: {destination}"])
86
- assert issues == []
87
- assert definitions["report"].path == "sources/report file.pdf"
88
- assert definitions["report"].page == 7
80
+ def test_parse_staged_source_destination_pdf_positive_page() -> None:
89
81
  assert parse_staged_source_destination("sources/report.pdf#page=7") == (
90
82
  "sources/report.pdf",
91
83
  7,
92
84
  )
93
85
  assert parse_staged_source_destination("sources/report.pdf#page=0") is None
86
+ assert parse_staged_source_destination("sources/report.pdf#page=-1") is None
87
+ assert parse_staged_source_destination("sources/report.md#page=7") is None
94
88
 
95
89
 
96
- def test_verifier_delegates_definition_parsing_at_runtime(
97
- monkeypatch: pytest.MonkeyPatch,
98
- ) -> None:
99
- calls: list[str] = []
90
+ def test_parse_staged_markdown_destination_without_anchor() -> None:
91
+ assert parse_staged_markdown_destination("relative.md") == ("relative.md", "")
92
+ assert parse_staged_markdown_destination("../guide/searchable-evidence.md") == (
93
+ "../guide/searchable-evidence.md",
94
+ "",
95
+ )
100
96
 
101
- def delegated(destination: str) -> tuple[str, int]:
102
- calls.append(destination)
103
- return "delegated.pdf", 42
104
97
 
105
- monkeypatch.setattr(verify_module, "parse_source_link_destination", delegated)
106
- definitions, issues, _ = _parse_definitions(["[report]: original.pdf#page=7"])
98
+ def test_parse_staged_markdown_destination_with_anchor() -> None:
99
+ assert parse_staged_markdown_destination("relative.md#overview") == (
100
+ "relative.md",
101
+ "overview",
102
+ )
103
+ assert parse_staged_markdown_destination("nested/page.md#section-2") == (
104
+ "nested/page.md",
105
+ "section-2",
106
+ )
107
107
 
108
- assert calls == ["original.pdf#page=7"]
109
- assert issues == []
110
- assert definitions["report"].path == "delegated.pdf"
111
- assert definitions["report"].page == 42
108
+
109
+ def test_parse_staged_markdown_destination_rejects_malformed_candidates() -> None:
110
+ # Query-bearing.
111
+ assert parse_staged_markdown_destination("relative.md?download=1") is None
112
+ assert parse_staged_markdown_destination("relative.md?download=1#overview") is None
113
+ # Remote.
114
+ assert (
115
+ parse_staged_markdown_destination("https://example.invalid/relative.md") is None
116
+ )
117
+ # Angle-wrapped (escaping form), unsupported for narrow Markdown routing.
118
+ assert parse_staged_markdown_destination("<relative.md>") is None
119
+ # Multiple fragments or an empty fragment.
120
+ assert parse_staged_markdown_destination("relative.md#one#two") is None
121
+ assert parse_staged_markdown_destination("relative.md#") is None
122
+ # Wrong extension (including a coincidental ".md" substring).
123
+ assert parse_staged_markdown_destination("relative.mdx") is None
124
+ assert parse_staged_markdown_destination("relative.md5") is None
125
+ assert parse_staged_markdown_destination("relative.pdf") is None
126
+ # Whitespace or forbidden characters in the path or anchor.
127
+ assert parse_staged_markdown_destination("relative with space.md") is None
128
+ assert parse_staged_markdown_destination("relative.md#with space") is None
129
+ assert parse_staged_markdown_destination("relative.md#(parens)") is None
130
+ # Empty destination.
131
+ assert parse_staged_markdown_destination("") is None
112
132
 
113
133
 
114
134
  def test_stage_local_and_public_rewrite_only_targeted_links(tmp_path: Path) -> None:
@@ -1,94 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: tracecite-docs
3
- Version: 0.0.1
4
- Summary: Source-linked table normalisation and evidence retrieval for executable documentation
5
- Author: ARPST-UniMelb
6
- License-Expression: MIT
7
- Project-URL: Documentation, https://yasirroni.github.io/tracecite/
8
- Classifier: Development Status :: 3 - Alpha
9
- Classifier: Intended Audience :: Science/Research
10
- Classifier: Operating System :: MacOS
11
- Classifier: Operating System :: POSIX :: Linux
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Topic :: Scientific/Engineering
14
- Classifier: Topic :: Text Processing :: Indexing
15
- Requires-Python: >=3.11
16
- Description-Content-Type: text/markdown
17
- License-File: LICENSE
18
- Requires-Dist: tracecite>=0.0.3
19
- Requires-Dist: beautifulsoup4>=4.12
20
- Requires-Dist: PyYAML>=6.0
21
- Requires-Dist: tabulate>=0.9
22
- Provides-Extra: docs
23
- Requires-Dist: ipykernel>=7.3; extra == "docs"
24
- Requires-Dist: nbclient>=0.11; extra == "docs"
25
- Requires-Dist: nbformat>=5.10; extra == "docs"
26
- Requires-Dist: tracecite-docs[pandas]; extra == "docs"
27
- Provides-Extra: evidence
28
- Requires-Dist: tracecite[evidence]>=0.0.3; extra == "evidence"
29
- Provides-Extra: pandas
30
- Requires-Dist: pandas>=2.0; extra == "pandas"
31
- Provides-Extra: test
32
- Requires-Dist: build>=1.2; extra == "test"
33
- Requires-Dist: pytest<9,>=8.4; extra == "test"
34
- Requires-Dist: tracecite-docs[pandas]; extra == "test"
35
- Dynamic: license-file
36
-
37
- # tracecite-docs
38
-
39
- Table normalisation, citable documentation and inspection-site builds for the TraceCite family.
40
- The shared [TraceCite documentation](https://yasirroni.github.io/tracecite/) covers evidence retrieval, normalised tables and their source citations together.
41
- This package has no separate documentation site.
42
-
43
- ## Installation and use
44
-
45
- Requires TraceCite 0.0.3 or later.
46
-
47
- ```bash
48
- uv pip install tracecite-docs # After the first release.
49
- uv pip install 'tracecite-docs[docs,evidence]'
50
- tracecite-docs build docs
51
- tracecite-docs table normalise table.md
52
- tracecite-docs table check docs/build
53
- ```
54
-
55
- The `docs` extra enables Python/Jupyter page execution; `evidence` enables documentation indexing and retrieval through the core package.
56
- Pandas table authoring is available with `tracecite-docs[pandas]` and is included in `docs` and `test`.
57
- Quarto/Pandoc and Julia remain external tools when the selected inputs require them.
58
-
59
- ```python
60
- from tracecite_docs import knowledge_table
61
- from tracecite_docs.docs import build_docs, stage_docs, sync_docs_index
62
- ```
63
-
64
- The executable is also available as `python -m tracecite_docs`.
65
- Former `tracecite docs` subcommands are top-level commands here; `table`, `document` and `prepare` retain their structure.
66
- The former table-validation command is `tracecite-docs table check`; documentation contract checking is `tracecite-docs check --docs-config ...`.
67
- Core evidence commands continue to use `tracecite`.
68
- Existing configuration names, table markers, source links and normaliser identities are preserved.
69
-
70
- ## Development
71
-
72
- ```bash
73
- uv sync --locked --extra docs --extra evidence --extra test
74
- uvx pre-commit run --all-files --show-diff-on-failure
75
- uvx pre-commit run pyright --all-files --hook-stage manual
76
- uv run --no-sync pytest -q -rs
77
- ```
78
-
79
- The implementation and behavioural tests were extracted from TraceCite commit `a942f138ba8534536b7aaa8f4b2062d1ba84c27d`, preserving its MIT licence.
80
- `requirements.txt` is derived with `uv export --all-extras --no-emit-project --no-hashes --output-file requirements.txt`.
81
-
82
- ```bash
83
- uv pip install --upgrade build
84
- uv build
85
- uv pip install --upgrade twine
86
- uvx twine check dist/*
87
- uv build --no-sources
88
- uvx twine check --strict dist/*
89
- # After checking the artefacts and configuring the upload repository:
90
- uvx twine upload --repository tracecite-docs dist/*
91
- ```
92
-
93
- The upload alias names a private Twine configuration section; it does not select a project name.
94
- Inspect and smoke-test the exact wheel and sdist before uploading.
@@ -1,58 +0,0 @@
1
- # tracecite-docs
2
-
3
- Table normalisation, citable documentation and inspection-site builds for the TraceCite family.
4
- The shared [TraceCite documentation](https://yasirroni.github.io/tracecite/) covers evidence retrieval, normalised tables and their source citations together.
5
- This package has no separate documentation site.
6
-
7
- ## Installation and use
8
-
9
- Requires TraceCite 0.0.3 or later.
10
-
11
- ```bash
12
- uv pip install tracecite-docs # After the first release.
13
- uv pip install 'tracecite-docs[docs,evidence]'
14
- tracecite-docs build docs
15
- tracecite-docs table normalise table.md
16
- tracecite-docs table check docs/build
17
- ```
18
-
19
- The `docs` extra enables Python/Jupyter page execution; `evidence` enables documentation indexing and retrieval through the core package.
20
- Pandas table authoring is available with `tracecite-docs[pandas]` and is included in `docs` and `test`.
21
- Quarto/Pandoc and Julia remain external tools when the selected inputs require them.
22
-
23
- ```python
24
- from tracecite_docs import knowledge_table
25
- from tracecite_docs.docs import build_docs, stage_docs, sync_docs_index
26
- ```
27
-
28
- The executable is also available as `python -m tracecite_docs`.
29
- Former `tracecite docs` subcommands are top-level commands here; `table`, `document` and `prepare` retain their structure.
30
- The former table-validation command is `tracecite-docs table check`; documentation contract checking is `tracecite-docs check --docs-config ...`.
31
- Core evidence commands continue to use `tracecite`.
32
- Existing configuration names, table markers, source links and normaliser identities are preserved.
33
-
34
- ## Development
35
-
36
- ```bash
37
- uv sync --locked --extra docs --extra evidence --extra test
38
- uvx pre-commit run --all-files --show-diff-on-failure
39
- uvx pre-commit run pyright --all-files --hook-stage manual
40
- uv run --no-sync pytest -q -rs
41
- ```
42
-
43
- The implementation and behavioural tests were extracted from TraceCite commit `a942f138ba8534536b7aaa8f4b2062d1ba84c27d`, preserving its MIT licence.
44
- `requirements.txt` is derived with `uv export --all-extras --no-emit-project --no-hashes --output-file requirements.txt`.
45
-
46
- ```bash
47
- uv pip install --upgrade build
48
- uv build
49
- uv pip install --upgrade twine
50
- uvx twine check dist/*
51
- uv build --no-sources
52
- uvx twine check --strict dist/*
53
- # After checking the artefacts and configuring the upload repository:
54
- uvx twine upload --repository tracecite-docs dist/*
55
- ```
56
-
57
- The upload alias names a private Twine configuration section; it does not select a project name.
58
- Inspect and smoke-test the exact wheel and sdist before uploading.
@@ -1,94 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: tracecite-docs
3
- Version: 0.0.1
4
- Summary: Source-linked table normalisation and evidence retrieval for executable documentation
5
- Author: ARPST-UniMelb
6
- License-Expression: MIT
7
- Project-URL: Documentation, https://yasirroni.github.io/tracecite/
8
- Classifier: Development Status :: 3 - Alpha
9
- Classifier: Intended Audience :: Science/Research
10
- Classifier: Operating System :: MacOS
11
- Classifier: Operating System :: POSIX :: Linux
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Topic :: Scientific/Engineering
14
- Classifier: Topic :: Text Processing :: Indexing
15
- Requires-Python: >=3.11
16
- Description-Content-Type: text/markdown
17
- License-File: LICENSE
18
- Requires-Dist: tracecite>=0.0.3
19
- Requires-Dist: beautifulsoup4>=4.12
20
- Requires-Dist: PyYAML>=6.0
21
- Requires-Dist: tabulate>=0.9
22
- Provides-Extra: docs
23
- Requires-Dist: ipykernel>=7.3; extra == "docs"
24
- Requires-Dist: nbclient>=0.11; extra == "docs"
25
- Requires-Dist: nbformat>=5.10; extra == "docs"
26
- Requires-Dist: tracecite-docs[pandas]; extra == "docs"
27
- Provides-Extra: evidence
28
- Requires-Dist: tracecite[evidence]>=0.0.3; extra == "evidence"
29
- Provides-Extra: pandas
30
- Requires-Dist: pandas>=2.0; extra == "pandas"
31
- Provides-Extra: test
32
- Requires-Dist: build>=1.2; extra == "test"
33
- Requires-Dist: pytest<9,>=8.4; extra == "test"
34
- Requires-Dist: tracecite-docs[pandas]; extra == "test"
35
- Dynamic: license-file
36
-
37
- # tracecite-docs
38
-
39
- Table normalisation, citable documentation and inspection-site builds for the TraceCite family.
40
- The shared [TraceCite documentation](https://yasirroni.github.io/tracecite/) covers evidence retrieval, normalised tables and their source citations together.
41
- This package has no separate documentation site.
42
-
43
- ## Installation and use
44
-
45
- Requires TraceCite 0.0.3 or later.
46
-
47
- ```bash
48
- uv pip install tracecite-docs # After the first release.
49
- uv pip install 'tracecite-docs[docs,evidence]'
50
- tracecite-docs build docs
51
- tracecite-docs table normalise table.md
52
- tracecite-docs table check docs/build
53
- ```
54
-
55
- The `docs` extra enables Python/Jupyter page execution; `evidence` enables documentation indexing and retrieval through the core package.
56
- Pandas table authoring is available with `tracecite-docs[pandas]` and is included in `docs` and `test`.
57
- Quarto/Pandoc and Julia remain external tools when the selected inputs require them.
58
-
59
- ```python
60
- from tracecite_docs import knowledge_table
61
- from tracecite_docs.docs import build_docs, stage_docs, sync_docs_index
62
- ```
63
-
64
- The executable is also available as `python -m tracecite_docs`.
65
- Former `tracecite docs` subcommands are top-level commands here; `table`, `document` and `prepare` retain their structure.
66
- The former table-validation command is `tracecite-docs table check`; documentation contract checking is `tracecite-docs check --docs-config ...`.
67
- Core evidence commands continue to use `tracecite`.
68
- Existing configuration names, table markers, source links and normaliser identities are preserved.
69
-
70
- ## Development
71
-
72
- ```bash
73
- uv sync --locked --extra docs --extra evidence --extra test
74
- uvx pre-commit run --all-files --show-diff-on-failure
75
- uvx pre-commit run pyright --all-files --hook-stage manual
76
- uv run --no-sync pytest -q -rs
77
- ```
78
-
79
- The implementation and behavioural tests were extracted from TraceCite commit `a942f138ba8534536b7aaa8f4b2062d1ba84c27d`, preserving its MIT licence.
80
- `requirements.txt` is derived with `uv export --all-extras --no-emit-project --no-hashes --output-file requirements.txt`.
81
-
82
- ```bash
83
- uv pip install --upgrade build
84
- uv build
85
- uv pip install --upgrade twine
86
- uvx twine check dist/*
87
- uv build --no-sources
88
- uvx twine check --strict dist/*
89
- # After checking the artefacts and configuring the upload repository:
90
- uvx twine upload --repository tracecite-docs dist/*
91
- ```
92
-
93
- The upload alias names a private Twine configuration section; it does not select a project name.
94
- Inspect and smoke-test the exact wheel and sdist before uploading.
File without changes
File without changes