PriceGenerator
/
PDocBuilder.py
37 строк · 1.0 Кб
1# -*- coding: utf-8 -*-
2# Author: Timur Gilmullin
3
4"""
5A coroutine that generates the API documentation for the PriceGenerator module using pdoc-engine: https://pdoc.dev/docs/pdoc.html
6
7To build new documentation:
81. Remove the `./docs` directory from the repository root.
92. Go to the root of the repository.
103. Just run: `python PDocBuilder.py`.
11"""
12
13
14import os15import sys16import pdoc17from pathlib import Path18
19
20curdir = os.path.curdir21
22sys.path.extend([23curdir,24os.path.abspath(os.path.join(curdir, "pricegenerator")),25])26
27pdoc.render.configure(28docformat="restructuredtext",29favicon="https://github.com/Tim55667757/PriceGenerator/blob/develop/media/logo-pricegenerator-256x256px.png?raw=true",30footer_text="⚙ Good luck for you in trade automation! And profit!",31logo="https://github.com/Tim55667757/PriceGenerator/blob/develop/media/logo-pricegenerator-420x610px.png?raw=true",32show_source=False,33)
34pdoc.pdoc(35Path("pricegenerator").resolve(),36output_directory=Path("docs").resolve(),37)
38