Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ jobs:
exit 1
fi
- name: Run examples
run: |
for ex in basic custom_selectors configuration ir_access transforms; do
cargo run -q -p markkit --example "$ex"
done
cargo run -q -p markkit --features tool --example agent_tool
run: bash scripts/run-examples.sh

wasm:
# Browser package @everruns/markkit-wasm: build the wasm32-unknown-unknown
Expand All @@ -137,6 +133,8 @@ jobs:
run: bash crates/markkit-wasm/scripts/build.sh release
- name: Integration tests (headless Node)
run: node --test crates/markkit-wasm/__test__/*.test.mjs
- name: Run WASM example
run: node examples/wasm/quickstart.mjs
- name: Verify npm archive contents
run: |
cd crates/markkit-wasm/pkg
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ on:
paths:
- "crates/markkit-js/**"
- "crates/markkit/**"
- "examples/node/**"
- "examples/data/**"
pull_request:
branches: [main]
paths:
- "crates/markkit-js/**"
- "crates/markkit/**"
- "examples/node/**"
- "examples/data/**"

permissions:
contents: read
Expand All @@ -35,6 +39,8 @@ jobs:
run: git diff --exit-code -- Cargo.lock
- name: Binding tests
run: cd crates/markkit-js && node --test __test__/*.test.cjs
- name: Run Node.js examples
run: for ex in examples/node/*.cjs; do echo "── $ex"; MARKKIT_MODULE="$PWD/crates/markkit-js" node "$ex"; done
- name: Verify installed npm package
run: |
cd crates/markkit-js
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ on:
paths:
- "crates/markkit-python/**"
- "crates/markkit/**"
- "examples/python/**"
- "examples/data/**"
- "markkit.pyi"
- "pyproject.toml"
pull_request:
branches: [main]
paths:
- "crates/markkit-python/**"
- "crates/markkit/**"
- "examples/python/**"
- "examples/data/**"
- "markkit.pyi"
- "pyproject.toml"

permissions:
contents: read
Expand All @@ -37,3 +45,7 @@ jobs:
python -c 'from importlib.metadata import metadata; import markkit; assert metadata("markkit")["Name"] == "markkit"; assert markkit.extract_html_sync("<h1>Smoke</h1>").strip() == "# Smoke"; print("Distribution and import OK")'
- name: Test structured documents and PDF layout
run: python -m unittest discover -s crates/markkit-python/tests -p 'test_*.py'
- name: Verify type stubs ship in the wheel
run: python -c 'import pathlib, markkit; d = pathlib.Path(markkit.__file__).parent; assert (d / "__init__.pyi").is_file() and (d / "py.typed").is_file(), "markkit.pyi/py.typed missing from wheel"'
- name: Run Python examples
run: for ex in examples/python/*.py; do echo "── $ex"; python "$ex"; done
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

### Added

- Runnable examples for every surface, run in CI: Rust `documents`, `convert`
(DOCX/XLSX/PDF or your own files), `main_content` and `limits`; Python
`examples/python/`, Node.js `examples/node/` and WASM `examples/wasm/`,
sharing sample files in `examples/data/`. Index: `examples/README.md`.
- Python type stubs: the wheel ships `markkit/__init__.pyi` and `py.typed`, with
typed `Limits` and `Extraction` results; PyPI metadata gains classifiers,
`requires-python` and project URLs.
- `docs/pdf.md`: PDF text, tables, layout geometry, OCR and limits in one guide.

### Changed

- Rewrote the PyPI README (formats, document dict, async, limits, links) and added
PyPI project links, keywords and classifiers.
- Docs overhaul: rewritten root, PyPI, npm and WASM READMEs (API tables,
result fields, options, limits, errors); getting-started guide rewritten.
Rust snippets in the README and guides are now compiled as doctests.
- docs.rs builds with every format, `http_client`, `tool` and `json-schema`
enabled and shows feature badges; crate docs cover configuration, limits,
the IR pipeline and features. Node.js `index.d.ts` documents every option and
result field.
- Releases now publish PyPI and npm (native + WASM) together with crates.io.

### Fixed
Expand Down
Loading
Loading