MilesCranmer commited on
Commit
1b76c06
1 Parent(s): 9d43604

Reduce gen_docs without pydoc-markdown

Browse files
Files changed (1) hide show
  1. gen_docs.sh +3 -5
gen_docs.sh CHANGED
@@ -1,6 +1,4 @@
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 ..
 
1
+ #!/bin/bash -e
2
+
3
+ cat README.md | grep -v 'pysr_logo.svg' | grep -E -v '\<.*div.*\>' > docs/index.md
 
 
4
  cd docs && python generate_papers.py && cd ..