Skip to content

Commit 8c85546

Browse files
authored
Merge pull request #298 from Bojun-Vvibe/fix/openzim-python-scraperlib-272
fix(docs): rename mkdocstrings 'import' option to 'inventories'
2 parents d6bd4b3 + f303f4d commit 8c85546

4 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/Tests.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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/)

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
]
8283
dev = [
8384
"ipython==9.7.0",

0 commit comments

Comments
 (0)