Spaces:
Running
Running
Download docs/gen_docs.sh from MilesCranmer/PySR: direct link, hf CLI and curl.
- Browser
- Download file 905 Bytes
-
https://huggingface.co/spaces/MilesCranmer/PySR/resolve/a5eaab9fefaf6afd4eaf3df223deeeb0dc4e0a3d/docs/gen_docs.sh
- Command line
-
hf download hf://spaces/MilesCranmer/PySR@a5eaab9fefaf6afd4eaf3df223deeeb0dc4e0a3d/docs/gen_docs.sh
-
curl -L -o gen_docs.sh https://huggingface.co/spaces/MilesCranmer/PySR/resolve/a5eaab9fefaf6afd4eaf3df223deeeb0dc4e0a3d/docs/gen_docs.sh
905 Bytes
| # Generate home page using README.md: | |
| echo '<div style="width:100%;height:0px;position:relative;padding-bottom:56.250%;"><iframe src="https://streamable.com/e/ncvqhy" frameborder="0" width="100%" height="100%" allowfullscreen style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden;"></iframe></div>' >index.md | |
| cat ../README.md | grep -v 'user-images' | grep -E -v '\<.*div.*\>' >>index.md | |
| # Transform "### Test status" to "**Test status**": | |
| sed -i.bak 's/\#\#\# Test status/**Test status**/g' index.md | |
| # Change '# ' to '## ': | |
| sed -i.bak '10,$s/^\# /## /g' index.md | |
| # Create papers.md | |
| python generate_papers.py | |
| # Copy _api.md up to but not including PARAMSKEY and all tex after: | |
| cat _api.md | sed -n '1,/PARAMSKEY/p' | sed '$d' >api.md | |
| python gen_param_docs.py >> api.md | |
| # Copy _api.md after PARAMSKEY: | |
| cat _api.md | sed -n '/PARAMSKEY/,$p' | sed '1d' >>api.md | |