mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
* Update docs-check.yml Bump actions/setup-python to v5 Bump python-version to 3.12 (default on ubuntu-latest) Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained * Update node-release.yml Bump actions/setup-python to v5 Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained Bump actions/cache to v4 Bump actions/setup-node to v4 Bump actions/upload-artifact to v4 Bump actions/download-artifact to v4 * Update node.yml Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained Bump actions/cache to v4 Bump actions/setup-node to v4 * Update python-release-conda.yml Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained Bump conda-incubator/setup-miniconda to v3 * Update python-release.yml Bump actions/setup-python to v5 Bump actions/download-artifact to v4 * Update rust-release.yml Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained Bump actions/cache to v4 * Update stale.yml Bump actions/stale to v9 * Update python.yml Bump actions/setup-python to v5
40 lines
869 B
YAML
40 lines
869 B
YAML
name: Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.12
|
|
|
|
- name: Install dependencies
|
|
run: pip install sphinx sphinx_rtd_theme setuptools-rust
|
|
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Build tokenizers
|
|
working-directory: ./bindings/python
|
|
run: pip install -e .
|
|
|
|
- name: Build documentation
|
|
working-directory: ./docs
|
|
run: make clean && make html_all O="-W --keep-going"
|
|
|
|
- name: Upload built doc
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: documentation
|
|
path: ./docs/build/*
|