Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
f15c244
1
Parent(s):
ef490d2
Add file for generating docs
Browse files- gen_docs.sh +6 -0
gen_docs.sh
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
cat README.md | grep -v 'pysr_logo.svg' > docs/index.md
|
3 |
+
pydoc-markdown --build --site-dir build -vv
|
4 |
+
cp docs/build/content/docs/api*.md docs/ && rm -rf docs/build
|
5 |
+
for f in docs/api*.md; do mv "$f" "$f.bkup" && cat "$f.bkup" | sed '1,4d' > "$f" && rm "$f.bkup"; done
|
6 |
+
cd docs && python generate_papers.py && cd ..
|