Docs Authoring Workflow
This page defines where new docs and new runnable examples should live.
Where New Docs Go
- add end-user guides to
docs/src/enanddocs/src/ar - keep the same information architecture in both trees
- put migration material under
docs/src/*/migration - keep API-signature detail in
rustdoc, not in long guide prose
Where New Runnable Examples Go
- if you add or restore a runnable example, put it in the crate that owns the feature
- if a facade-level integrated demo returns, root
examples/is still the intended home - update the examples index in both languages when availability changes
- add a short source comment back-link to the related guide when the example is canonical
Adding Mirrored Pages
- create the English page
- create the Arabic counterpart in the matching path
- add both to
docs/src/SUMMARY.md - add or update the language switch target if the page is mirrored from an existing chapter
Adding Public rustdoc
When a new public API surface is added:
- add or extend crate-level/module-level docs if the new surface changes discovery
- document the public type or plugin at the declaration site
- prefer short
no_runexamples - hide internal helpers if they would pollute the generated docs story
When To Update README And Changelog
- update
README.mdandREADME_AR.mdwhen the landing story changes - update
changelog.mdfor notable docs/example/API surface changes - use Naming Conventions when adding or renaming maintainer-facing modules