Skip to content

Commit

Permalink
#2 debug version of pdoc builder: https://pdoc.dev/docs/pdoc.html#pdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim55667757 committed Jul 14, 2022
1 parent af2aee0 commit 1b7924f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions PDocBuilder.py
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",
)

0 comments on commit 1b7924f

Please # to comment.