piermesh/builddocs

10 lines
423 B
Plaintext
Executable File

rm -rf docs/*
sphinx-build -M markdown src docs
mv docs/markdown docs.tmp
rm -rf docs/doctrees
mv docs.tmp/* docs
rm -rf docs.tmp
mv docs/index.md docs/readme.md
sed -i '1s;^;![PierMesh logo](https://git.utopic.work/PierMesh/piermesh/raw/branch/main/piermeshicon.png)\n\n;' docs/readme.md
sed -i '1s;^;![Daisy logo](https://git.utopic.work/PierMesh/piermesh/raw/branch/main/imgs/daisydisplay.png)\n\n;' docs/Daisy/Daisy.md