-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation page using mkdocs #75
Conversation
Sorry for delay, this looks amazing! Some comments:
Can we keep current format of code in docstrings? Like """
>>> 1 + 2
3
""" Because this way it gets tested. |
Hey, I added the https://cgarciae.github.io/einops/api/rearrange/ I left some white spaces between groups of code for readability, should I remove them? |
Voila! Will try to find some time during weekend to get better formatting for the website |
@cgarciae kudos for showing mkdocs and setting it up! |
Awesome! Check out Mkdocs Material which is doing most of the heavy lifting for the aesthetics. |
Hey, I've been using Einops, loving it.
I thought it would be cool for the project to have a Reference API page so I ported some
mkdocs
boilerplate files from a Jax library I maintain. Its very basic, you can improve upon it. Check a preview of the site here.Features
mkdocs-jupyter
.The only change to the core code I made is converting the docs from Numpy-style to Google-style + markdown since that is what
mkdocs
supports.Local serving
You can test the site locally via:
Deployment
You can deploy the docs to the github.io site with:
Dev Dependencies
For this I used:
I can add the files for a
poetry
project I used if you wish.