File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,3 +118,33 @@ jobs:
118118 - name : Ensure we can build JS package
119119 run : yarn pack
120120 working-directory : javascript
121+
122+ build-docs : # validate that doc can be built
123+ runs-on : ubuntu-24.04
124+ needs : generate-rules
125+
126+ steps :
127+ - name : Checkout repo
128+ uses : actions/checkout@v4
129+
130+ - name : Set up Python
131+ uses : actions/setup-python@v5
132+ with :
133+ python-version-file : pyproject.toml
134+ architecture : x64
135+
136+ - name : Install dependencies (and project)
137+ run : |
138+ pip install -U pip hatch
139+ pip install -e .[docs]
140+
141+ - name : Build mkdoc documentation
142+ run : hatch run docs:build
143+
144+ - name : Save doc artifact
145+ uses : actions/upload-artifact@v4
146+ with :
147+ path : |
148+ site/
149+ name : doc
150+ retention-days : 1
Original file line number Diff line number Diff line change 11# zimscraperlib
22
3- [ ![ Build Status] ( https://github.com/openzim/python-scraperlib/workflows/CI/badge.svg?query=branch%3Amain )] ( https://github.com/openzim/python-scraperlib/actions?query=branch%3Amain )
3+ [ ![ QA Status] ( https://github.com/openzim/python-scraperlib/workflows/QA/badge.svg?query=branch%3Amain )] ( https://github.com/openzim/python-scraperlib/actions/workflows/QA.yaml )
4+ [ ![ Tests Status] ( https://github.com/openzim/python-scraperlib/workflows/Tests/badge.svg?query=branch%3Amain )] ( https://github.com/openzim/python-scraperlib/actions/workflows/Tests.yaml )
45[ ![ CodeFactor] ( https://www.codefactor.io/repository/github/openzim/python-scraperlib/badge )] ( https://www.codefactor.io/repository/github/openzim/python-scraperlib )
56[ ![ License: GPL v3] ( https://img.shields.io/badge/License-GPLv3-blue.svg )] ( https://www.gnu.org/licenses/gpl-3.0 )
67[ ![ PyPI version shields.io] ( https://img.shields.io/pypi/v/zimscraperlib.svg )] ( https://pypi.org/project/zimscraperlib/ )
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ plugins:
7171 handlers :
7272 python :
7373 # Set up cross-references to Python types
74- import :
74+ inventories :
7575 - https://docs.python.org/3/objects.inv
7676 paths : [src]
7777 options :
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ docs = [
7878 " pymdown-extensions==10.17.1" ,
7979 " mkdocs-gen-files==0.5.0" ,
8080 " mkdocs-literate-nav==0.6.2" ,
81+ " pygments==2.19.2" , # See https://github.com/pygments/pygments/issues/3076
8182]
8283dev = [
8384 " ipython==9.7.0" ,
You can’t perform that action at this time.
0 commit comments