-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: docs building #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great!
@@ -1,6 +1,6 @@ | |||
# Quick Start | |||
|
|||
TODO: Description | |||
A script that uses sphinx to develop documentation for ApeWorX plugins. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactor idea: We can make this less of a script and more of a package / sphinx plugin (at some point).
Something like:
from ape_plugins_docs import build_docs
(btw not saying we really need to publish this to pypi, only talking about the usage)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems acceptable as a first pass! We have some great ideas for how to improve the experience, but this solves the main problem of getting the docs build process in a central spot for all to share. Nice work!
README.md
Outdated
|
||
```bash | ||
pip install docs-build | ||
``` | ||
- name: Clone ape-docs-build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idea: Perhaps we should make a custom github actions so users can do:
uses: ApeWorX/ape-docs-build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried working on making it a custom github action but I think I would have to rework some of it because of how I currently have it setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try to help
f.write(REDIRECT_HTML.format(redirect)) | ||
|
||
|
||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another idea: it may be nice to make this a click
script instead.
we need to keep in mind developers wanting to build and run the docs locally to test changes to their plugins.
if the script is only available in CI/CD, they won't be able to do that!
Also, if we make it a click script, it'd be easy to eventually add it to the ape plugins docs
commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to do I just realized:
- Describe in the README how to build docs for a plugin locally as a developer
- Improve the dev-ex of building and serving docs locally
Part 2 can come in waves or in a later PR. Stuff like making it a CLI / click-script or adding it to ape plugins docs
command or both..
In any case, developers are going to want to build docs locally
What I did
Build plugin docs using sphinx.
fixes: #APE-243
How I did it
How to verify it
This is how the docs looks when it builds the repo through github actions: https://dtdang.github.io/ape-vyper/latest/
Checklist