-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake_docs.sh
75 lines (53 loc) · 1.56 KB
/
make_docs.sh
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
set -e
do_tests()
{
# run those tests
pytest pydoc_fork --doctest-modules
}
do_lint()
{
# pick ones that match target generator & syntax
# dargslint
interrogate pydoc_fork
# can't figure out how to enable just doc related
pylint pydoc_fork --disable=all --enable=basic,spelling
# not sure these are high value rules, so I disabled them
pydocstyle pydoc_fork --ignore=D400,D404,D415,D212,D200,D205,D403,D401,D203,D213,D202,D407,D413,D209,D406
}
do_docs()
{
# pick one or two!
rm -rf docs/docs_pdoc3
pdoc pydoc_fork --html -o docs/docs_pdoc3
# broken here!
# pycco
# pydoctor, validates on indentation
rm -rf docs/docs_pydoctor
pydoctor pydoc_fork/**/*.py --make-html --html-output docs/docs_pydoctor
# driven by yaml config
mkdocs build
rm -rf docs/docs_sphinx
cd sphinx_docs
./start.sh
cd ..
rm -rf docs/docs_pydoc_fork
python -m pydoc_fork pydoc_fork --output docs/docs_pydoc_fork
rm -rf docs/docs_portray
portray as_html --directory . --output_dir docs/docs_portray --modules pydoc_fork
}
#fill in boiler plate
# HUGE, 1/4 GB!!!
# pip install docly
# and doesn't work on windows and abandoned project
# docly-gen pydoc_fork
# spell checks variable names, can't target docstrings?
# scspell build.py --report-only
# copy `__init__` docstring to README.md
#https://github.com/datagazing/gleandoc/tree/main/gleandoc
# google style checker... seems to not be picky?
# python -m check_docstring pydoc_fork
# this will remove docstrings! Maybe if they are so bad a reset is needed?
# strip-docs .
do_tests
do_lint
do_docs