You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to confirm the API reference plan for the Python launch. In #3658, you can see an example from @vikram-dagger that is hosting our own API docs.
Issues with hosting ourselves:
the format isn't great automatically, so we will still need to it
Linter doesn't work, so we'd need to update linter roles for it
hosting ourselves
Let's use this issue to come to an agreement on what the Python API reference plan should be. We need a final decision by Monday, November 7th if we want the launch to stay on track.
Option 2: Host the API reference externally eg. on readthedocs.org, similar to the approach for the Go SDK. readthedocs automatically rebuilds the docs every time we push a new version. However:
We will need to add some configuration to the Python project in our repo so that the docs are generated properly. I'll need @helderco 's help with this.
My recommendation is option 2, as it already includes the required automation, should require less time to set up, and also fits the pattern we established with the Go SDK.
@shykes we will need a final decision on this by Monday EOD at the latest, so we can stay on track. Let us know if you need additional information to make a decision. Thanks!
I'm going to experiment with it today. Been many years since I've used it and not in a monorepo. If it doesn't work out well I'll explore other solutions. Will close this when one is found.
By the way, we can host it ourselves but it doesn't have to be integrated with docusaurus. The core tool here is Sphinx. That's what readthedocs does, just publishes the html output from Sphinx. You can push that html wherever you can publish a static website. For example Netlify can also be automated to run a command (i.e. build docs) when a new release is pushed to git. Or we can do it in GHA when deploying a new release.
Back to RTD, I haven't confirmed if they still do it, but we used to be able use our own domain with that service if you guys are interested.
Finding that RTD is not "the" standard at this point. Some packages in PyPI don't have any docs linked and many popular packages are hosting their API docs on Vercel or Netlify or wherever.
I'm going to experiment with it today. Been many years since I've used it and not in a monorepo. If it doesn't work out well I'll explore other solutions. Will close this when one is found.
Activity
mircubed commentedon Nov 3, 2022
@helderco @shykes need your thoughts
shykes commentedon Nov 3, 2022
What are the options?
vikram-dagger commentedon Nov 4, 2022
Option 1: Build the API reference ourselves using a markdown generator like pdoc. I tried this and it works, although with some issues
Sample of this at https://deploy-preview-3658--devel-docs-dagger-io.netlify.app/ -> Python SDk -> Reference
Option 2: Host the API reference externally eg. on readthedocs.org, similar to the approach for the Go SDK. readthedocs automatically rebuilds the docs every time we push a new version. However:
My recommendation is option 2, as it already includes the required automation, should require less time to set up, and also fits the pattern we established with the Go SDK.
mircubed commentedon Nov 4, 2022
@shykes we will need a final decision on this by Monday EOD at the latest, so we can stay on track. Let us know if you need additional information to make a decision. Thanks!
mircubed commentedon Nov 7, 2022
@shykes @aluzzardi need a decision on this one to keep us on track. Thanks!
shykes commentedon Nov 7, 2022
Option 2 makes sense to me. Unless @helderco disagreed, let's do that.
aluzzardi commentedon Nov 7, 2022
Option 2 sounds good to me too -- I believe readthedocs is the standard way for Python reference documentation
helderco commentedon Nov 8, 2022
I'm going to experiment with it today. Been many years since I've used it and not in a monorepo. If it doesn't work out well I'll explore other solutions. Will close this when one is found.
By the way, we can host it ourselves but it doesn't have to be integrated with docusaurus. The core tool here is Sphinx. That's what readthedocs does, just publishes the html output from Sphinx. You can push that html wherever you can publish a static website. For example Netlify can also be automated to run a command (i.e. build docs) when a new release is pushed to git. Or we can do it in GHA when deploying a new release.
Back to RTD, I haven't confirmed if they still do it, but we used to be able use our own domain with that service if you guys are interested.
jpadams commentedon Nov 8, 2022
Finding that RTD is not "the" standard at this point. Some packages in PyPI don't have any docs linked and many popular packages are hosting their API docs on Vercel or Netlify or wherever.
So a mixture. No obvious benefit to hosting on RTD since we have to generate API docs (in Sphinx for them) anyway.
jpadams commentedon Nov 8, 2022
I'll try to experiment and will report back
jpadams commentedon Nov 9, 2022
Got API docs working! @helderco @vikram-dagger 😄
final conf.py
helderco commentedon Nov 10, 2022
Just a status update. My problem right now is for readthedocs to pick up the right version since tags aren't fully semver due to the sdk prefixes.
helderco commentedon Nov 10, 2022
Closing this and tracking remaining work in new issues: