-
For the packages we maintain internal to our org, we commit our handwritten doc files to version control, but we generate the API reference documentation (e.g. from docstrings) on-the-fly. As such, the edit links only work for the handwritten pages, and the edit links for the API pages result in a 404. It would be great to have a way not to render the edit links at all on those pages, to reduce confusion for those who stumble on a 404 and might assume the edit links are broken on all pages. We render our API reference to a html_theme_options = {
...,
"source_edit_link_exclude_paths": {
"docs/references/",
},
} Incidentally, also interested in how others manage generation and tracking of API reference documentation—particularly how you reduce the human error in forgetting to generate it, if you track it in version control. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Are these API pages rendered in-memory? If so, can they have page-level metadata (similar to hide-toc) applied to them? I think letting users hide this on a per-page basis might end up being a cleaner solution. |
Beta Was this translation helpful? Give feedback.
-
#620 filed for this. |
Beta Was this translation helpful? Give feedback.
-
we have added
at the top of the documents. this is then available in the template files, e.g. Then we can hide the edit button conditionally |
Beta Was this translation helpful? Give feedback.
#620 filed for this.