Metadata-Version: 2.4
Name: tracecite-docs
Version: 0.0.1
Summary: Source-linked table normalisation and evidence retrieval for executable documentation
Author: ARPST-UniMelb
License-Expression: MIT
Project-URL: Documentation, https://yasirroni.github.io/tracecite/
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Text Processing :: Indexing
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tracecite>=0.0.3
Requires-Dist: beautifulsoup4>=4.12
Requires-Dist: PyYAML>=6.0
Requires-Dist: tabulate>=0.9
Provides-Extra: docs
Requires-Dist: ipykernel>=7.3; extra == "docs"
Requires-Dist: nbclient>=0.11; extra == "docs"
Requires-Dist: nbformat>=5.10; extra == "docs"
Requires-Dist: tracecite-docs[pandas]; extra == "docs"
Provides-Extra: evidence
Requires-Dist: tracecite[evidence]>=0.0.3; extra == "evidence"
Provides-Extra: pandas
Requires-Dist: pandas>=2.0; extra == "pandas"
Provides-Extra: test
Requires-Dist: build>=1.2; extra == "test"
Requires-Dist: pytest<9,>=8.4; extra == "test"
Requires-Dist: tracecite-docs[pandas]; extra == "test"
Dynamic: license-file

# tracecite-docs

Table normalisation, citable documentation and inspection-site builds for the TraceCite family.
The shared [TraceCite documentation](https://yasirroni.github.io/tracecite/) covers evidence retrieval, normalised tables and their source citations together.
This package has no separate documentation site.

## Installation and use

Requires TraceCite 0.0.3 or later.

```bash
uv pip install tracecite-docs                # After the first release.
uv pip install 'tracecite-docs[docs,evidence]'
tracecite-docs build docs
tracecite-docs table normalise table.md
tracecite-docs table check docs/build
```

The `docs` extra enables Python/Jupyter page execution; `evidence` enables documentation indexing and retrieval through the core package.
Pandas table authoring is available with `tracecite-docs[pandas]` and is included in `docs` and `test`.
Quarto/Pandoc and Julia remain external tools when the selected inputs require them.

```python
from tracecite_docs import knowledge_table
from tracecite_docs.docs import build_docs, stage_docs, sync_docs_index
```

The executable is also available as `python -m tracecite_docs`.
Former `tracecite docs` subcommands are top-level commands here; `table`, `document` and `prepare` retain their structure.
The former table-validation command is `tracecite-docs table check`; documentation contract checking is `tracecite-docs check --docs-config ...`.
Core evidence commands continue to use `tracecite`.
Existing configuration names, table markers, source links and normaliser identities are preserved.

## Development

```bash
uv sync --locked --extra docs --extra evidence --extra test
uvx pre-commit run --all-files --show-diff-on-failure
uvx pre-commit run pyright --all-files --hook-stage manual
uv run --no-sync pytest -q -rs
```

The implementation and behavioural tests were extracted from TraceCite commit `a942f138ba8534536b7aaa8f4b2062d1ba84c27d`, preserving its MIT licence.
`requirements.txt` is derived with `uv export --all-extras --no-emit-project --no-hashes --output-file requirements.txt`.

```bash
uv pip install --upgrade build
uv build
uv pip install --upgrade twine
uvx twine check dist/*
uv build --no-sources
uvx twine check --strict dist/*
# After checking the artefacts and configuring the upload repository:
uvx twine upload --repository tracecite-docs dist/*
```

The upload alias names a private Twine configuration section; it does not select a project name.
Inspect and smoke-test the exact wheel and sdist before uploading.
