mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-25 03:24:59 +00:00
--------- Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com> Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
28 lines
772 B
YAML
28 lines
772 B
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
deploy:
|
|
type: boolean
|
|
description: "If true, the docs will be deployed."
|
|
default: false
|
|
|
|
jobs:
|
|
run-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install poetry
|
|
run: pipx install poetry==1.8.3
|
|
shell: bash
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
cache: 'poetry'
|
|
- name: Install dependencies
|
|
run: poetry install --only docs
|
|
shell: bash
|
|
- name: Build docs
|
|
run: poetry run mkdocs build --verbose --clean
|
|
- name: Build and push docs
|
|
if: inputs.deploy
|
|
run: poetry run mkdocs gh-deploy --force
|
|
|