huggingface / huggingface/doc-builder

Usage and format questions

Open
#133 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
144
Forks
59
Avg merge
2d 5h
Merged PRs (30d)
13

Description

It seems we're migrating all repos to use this project. I have a few questions which I think would be nice to have answers to while we migrate (ideally I would have liked to have answers to them before we migrate):

Taken from https://github.com/huggingface/huggingface_hub/issues/759

By reading the ["how to write documentation"](https://github.com/huggingface/transformers/tree/master/docs#writing-source-documentation), it's clear how to write docstrings, but it's not clear how to write user guides and examples:

- I'm thinking something along the lines of having something resembling `sphinx-gallery` examples, and then referencing those examples from user guides.
- How does one reference other objects, classes, and methods from the current library and external libraries that are rendered with a hyperlink to the corresponding API doc?
- how to we reference other sections in the user guide from the API doc and the user guide itself?
- what is the workflow to add directives such as `versionadded, versionchanged`, etc?
- I see this in the docs:

> It helps to keep the old links working when renaming section header and/or moving sections from one document to another.

In `rst` you reference a tag, so renaming headers doesn't actually do anything to break existing links. How does `mdx` handle this?

I'm not familiar with `mdx`, so I'm not sure how to approach these issues.

cc @LysandreJik

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.