stared / livelossplot

Live training loss plot in Jupyter Notebook for Keras, PyTorch and others
https://p.migdal.pl/livelossplot
MIT License
1.29k stars 143 forks source link

docs generation script #117

Closed Bartolo1024 closed 4 years ago

Bartolo1024 commented 4 years ago

I had some issues because in separated gh-branch option, files have to be in main directory and I don't know how to distinguish it from other non-git files in directory stage it automatically. Now script only delete specified outputs, inputs directories and HTML files and stage new versions after that.

I have set up it with this tutorial.

Before generation you have to make empty gh-actions branch:

git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
git add .
git commit -a -m "First pages commit"
git push origin gh-pages

There you can watch generated docs from my forked repo: my-results

stared commented 4 years ago

The result looks nice (except for processing docstrings - maybe there is some preferred style for params?).

For pushing dir, in JavaScript, there is https://www.npmjs.com/package/push-dir, which I use a lot.

For our current setup, search for "deploy Python documentation to GitHub pages" - I am sure there are some examples (it might be great to delegate it to GitHub Actions, instead of doing it manually).

stared commented 4 years ago

See: