opendylan icon indicating copy to clipboard operation
opendylan copied to clipboard

Need a way to organize multiple documentation "projects"

Open cgay opened this issue 6 years ago • 4 comments

We need a good way to provide links between the Library Reference, Hacker Guide, Getting Started, and others, each of which is a separate Sphinx "project".

InterSphinx might be a good way to do this.

Long term, I picture the Library Reference being broken apart into individual projects for each library, and documenting those alongside documentation from all projects in the pacman catalog.

cgay avatar Oct 08 '19 21:10 cgay

I posted https://groups.google.com/g/sphinx-users/c/CcnnXV2LOoY but got no response.

cgay avatar Sep 20 '20 21:09 cgay

The answer to my question turned out to be pretty darned simple but the intersphinx docs don't make it very clear. If we have

intersphinx_mappings = {
    'http': ('https://opendylan.org/documentation/http/', None)
}

Then a link to the add-resource function in the HTTP docs looks like this

:func:`http:add-resource`

And there was much rejoicing.

cgay avatar Apr 17 '21 16:04 cgay

See the above commit for a start, but there are some issues remaining to work out, as mentioned in that PR. Also on sphinx-users they said (if I understood correctly) that both of these should work, barring multiple definitions with the same name in different libraries:

:func:`library-reference:foo`
:func:`foo`

So that needs testing.

cgay avatar May 03 '21 22:05 cgay

Also also, we need to be able to test the intersphinx_mapping locally before publishing doc changes. There's a mechanism for this but I decided to leave it for a later time.

cgay avatar May 03 '21 22:05 cgay

This has all been fixed by the recent website revamp. Everything is built as a unit and references are just Sphinx :doc:... references.

cgay avatar Jul 19 '23 15:07 cgay