-
Notifications
You must be signed in to change notification settings - Fork 5
/
PDocBuilder.py
37 lines (29 loc) · 1 KB
/
PDocBuilder.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
# Author: Timur Gilmullin
"""
A coroutine that generates the API documentation for the PriceGenerator 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, "pricegenerator")),
])
pdoc.render.configure(
docformat="restructuredtext",
favicon="https://github.com/Tim55667757/PriceGenerator/blob/develop/media/logo-pricegenerator-256x256px.png?raw=true",
footer_text="⚙ Good luck for you in trade automation! And profit!",
logo="https://github.com/Tim55667757/PriceGenerator/blob/develop/media/logo-pricegenerator-420x610px.png?raw=true",
show_source=False,
)
pdoc.pdoc(
Path("pricegenerator").resolve(),
output_directory=Path("docs").resolve(),
)