File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : website
2+
3+ # build the documentation whenever there are new commits on main
4+ on :
5+ push :
6+ branches :
7+ - main
8+ # Alternative: only build for tags.
9+ # tags:
10+ # - '*'
11+
12+ # security: restrict permissions for CI jobs.
13+ permissions :
14+ contents : read
15+
16+ jobs :
17+ # Build the documentation and upload the static HTML files as an artifact.
18+ build :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v6
22+ with :
23+ persist-credentials : false
24+ - uses : actions/setup-python@v6
25+ with :
26+ python-version : " 3.14"
27+
28+ - run : pip install -e ".[docs]"
29+ # ADJUST THIS: build your documentation into docs/.
30+ # We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
31+ - run : pdoc -o docs/ --docformat="google" vlogs_handler
32+
33+ - uses : actions/upload-pages-artifact@v4
34+ with :
35+ path : docs/
36+
37+ # Deploy the artifact to GitHub pages.
38+ # This is a separate job so that only actions/deploy-pages has the necessary permissions.
39+ deploy :
40+ needs : build
41+ runs-on : ubuntu-latest
42+ permissions :
43+ pages : write
44+ id-token : write
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+ steps :
49+ - id : deployment
50+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ Home = "https://github.com/ErikKalkoken/python-victorialogs-handler"
2929
3030[project .optional-dependencies ]
3131test = [" coverage" ]
32+ docs = [" pdoc" ]
3233
3334[tool .flit .module ]
3435name = " vlogs_handler"
Original file line number Diff line number Diff line change 66__version__ = "0.1.0dev7"
77
88__all__ = ["VictoriaLogsHandler" ]
9-
10- # TODO
11- # - Enable logging and switch to full debug logging in prod for testing
12- # - Consider using a persistent queue
You can’t perform that action at this time.
0 commit comments