Metadata-Version: 2.4
Name: sphinx-data2table
Version: 0.1.4
Summary: Sphinx data-table extension for TOML, YAML, and JSON with Markdown cell parsing
Author: jagarikokamukamu
License-Expression: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Sphinx :: Extension
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Documentation :: Sphinx
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: sphinx>=8.0
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
Dynamic: license-file

# sphinx-data2table

Sphinx extension to render TOML, YAML, or JSON data as HTML/LaTeX tables with Markdown cell parsing.

## Installation & Setup

```bash
uv add sphinx-data2table  # or pip install sphinx-data2table
```

`conf.py`:
```python
extensions = ["sphinx_data2table"]
```

## Usage

Use the `data-table` directive (alias `datatable` is also supported).

### Inline Data Example

```rst
.. data-table::
   :format: yaml

   - Feature: "**Markdown Support**"
     Details: "Supports **bold**, [links](https://example.com), and more inside cells."

   - Feature: "List Support"
     Details: |
       - Item A
       - Item B
```

### Loading External File

```rst
.. data-table::
   :file: path/to/data.yaml
```

## Options

- `:file:` Path to the external data file
- `:format:` Data format specifier (`yaml`, `toml`, `json`, `auto`)
- `:headers:` Comma-separated column headers to display
