-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
Expand plugins documentation to multiple pages #687
Comments
Current plugin docs: https://datasette.readthedocs.io/en/0.37/plugins.html |
Suggested pages:
|
The tutorial should start by taking about development environments - how to get a new fresh copy of Datasette that you can start hacking plugins for, in a fresh virtual environment. It should then explain the Does Then it should demonstrate a more complex plugin that uses the It should promote the next page which lists the plugin hooks. The hooks page should include links next to each hook to examples of plugins that use them. The packaging page can explain It should also show how to use |
Eventually I can also document what to do if your plugin needs to include its own CLI tool. I'm goong it show how to ship a CLI tool with the same name as the plugin using Click and |
The tutorial can start by showing how to use the new cookiecutter template from #642. |
I think I want the "Plugin hooks" page to be top-level, parallel to "Plugins" and "Internals for Plugins". It's the page of documentation refer to most often so I don't want to have to click down a hierarchy from the side navigation to find it. |
So the new plan is NOT to have a
|
I'm going to break out the plugin hooks first in a single commit to make for a cleaner commit history (since that way git can hopefully detect that the content moved). |
Maybe add this to the plugins.rst page near the top:
|
Now split into four pages:
Still need to add the "Testing plugins" page, then I can close this issue. I should also do #855, documenting the new |
I think the plugins docs need to extend beyond a single page now. I want to add a whole section on writing tests for plugins, showing how
httpx
can be used as seen in simonw/datasette-atom#3 and suchlike.The text was updated successfully, but these errors were encountered: