-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2 debug version of pdoc builder: https://pdoc.dev/docs/pdoc.html#pdoc
- Loading branch information
1 parent
af2aee0
commit 1b7924f
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
# Author: Timur Gilmullin | ||
|
||
""" | ||
A coroutine that generates the API documentation for the TKSBrokerAPI module using pdoc-engine: https://pdoc.dev/docs/pdoc.html | ||
To build new documentation: | ||
1. Remove the `./docs` directory from the repository root. | ||
2. Go to the root of the repository. | ||
3. Just run: `python PDocBuilder.py`. | ||
""" | ||
|
||
|
||
import os | ||
import sys | ||
import pdoc | ||
from pathlib import Path | ||
|
||
|
||
curdir = os.path.curdir | ||
|
||
sys.path.extend([ | ||
curdir, | ||
os.path.abspath(os.path.join(curdir, "tksbrokerapi")), | ||
]) | ||
|
||
pdoc.pdoc( | ||
Path("tksbrokerapi").resolve(), | ||
output_directory=Path("docs").resolve(), | ||
format="html", | ||
) |