-
Notifications
You must be signed in to change notification settings - Fork 572
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
API reference using doc-builder
#759
Comments
There are a few things I'm missing here:
|
|
Cool, that sounds nice. Another question i have is that by reading the "how to write documentation" you provide, it's clear how to write docstrings, but it's not clear how to write user guides and examples:
In I'm not familiar with |
These are very good questions @adrinjalali 👍 Maybe it makes sense to move this discussion to an issue in https://github.com/huggingface/doc-builder since this will be relevant for other repos as well. (also that way we keep the discussion here relevant to the migration) |
Closing this (old) issue as we are using |
yay, thanks for the cleanup @Wauplin |
This issue documents the will to have a separate API reference using the doc-builder tool that was created initially for
transformers
, later adapted fordatasets
,optimum
, andaccelerate
.The resulting documentations can be found here:
The
optimum
andaccelerate
docs are currently being addressed, see huggingface/accelerate#271 and huggingface/optimum#86.Porting the
huggingface_hub
documentation to the huggingface.co website using this utility completes the work of having all documentation using the same backend/frontend, in an effort to have coherent documentation across all of our tools.The choice to not re-use Sphinx/reStructuredText can be (and has been) heavily debated, it eventually boils down to:
Here's a breakdown of what needs to be done:
docs/hub/index.mdx
as a landing page for the hub documentation (should be similar to the resulting README file)docs/hub/_toctree.yml
containing the sections and their title..mdx
files underdocs/hub
referencing the objects to be put in the documentation.doc-builder
for re-use.And, finally:
doc-builder
documentation so that it is simpler to write documentation (Documentation about usage and expected documentation doc-builder#132)The text was updated successfully, but these errors were encountered: