mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
docs/t: drop update-autogen, it's broken now
This commit is contained in:
parent
0d0cccea63
commit
ca638f77e3
@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Deletes and updates the contents of the autogen/ folder
|
|
||||||
|
|
||||||
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
||||||
pwd
|
|
||||||
shopt -s nullglob
|
|
||||||
rm -v autogen/*.html
|
|
||||||
|
|
||||||
# cd to the main folder
|
|
||||||
cd ../..
|
|
||||||
pwd
|
|
||||||
|
|
||||||
# Iterate over all the .py files and run pydoc3 on them.
|
|
||||||
for module in *.py protocols/*.py; do
|
|
||||||
echo "Running pydoc3 -w ./$module"
|
|
||||||
pydoc3 -w "./$module"
|
|
||||||
# Then, move the generated HTML files to the right place.
|
|
||||||
name="$(basename $module .py).html"
|
|
||||||
mv "$name" "$SCRIPT_DIR/autogen/$name"
|
|
||||||
done
|
|
Loading…
Reference in New Issue
Block a user