ebu-tt-live-toolkit
ebu-tt-live-toolkit copied to clipboard
[DOCUMENTATION] Add back link to project home page from built docs
When you traverse from the project home page to the the documentation there are no links back. Add one, preferably in the blue panel in the top left.
Notes:
the home page looks URL is:
http://ebu.github.io/ebu-tt-live-toolkit/
the built documentation ends up at:
http://ebu.github.io/ebu-tt-live-toolkit/html/index.html
So the back link is effectively ../..
or ../index.html
though that backwards links always seem "dodgy" somehow, and I'm not sure how standard they are. It seems like bad practice to use them if avoidable.
It seems like the most likely way to be able to achieve this is to subclass the template as documented for Sphinx, but my initial attempts resulted in nothing happening, so nothing to commit after looking at this in various different ways for an hour or so. Probably won't come back to this for a while now, if anyone else wants to take a go.
It seems that links to any files in an ancestor folder are not possible. I tried myself (without success) and also found https://github.com/sphinx-doc/sphinx/issues/701.
Grr that's frustrating @spoeschel ! Thanks for looking.
It is a bit annoying that such links aren't possible. On the other hand, it is probably OK to not have a link back, as all the other (external) link targets the project homepage refers to don't have back links either.
I guess one easy but less elegant fix is to link to a non-relative URL and label it as the public built one, and describe where the locally built one will end up with a path string that isn't a link. What do you think @spoeschel ?
This sounds good.
describe where the locally built one will end up with a path string that isn't a link
Would this description be on a separate page, as part of the Sphinx documentation? If so, at least within that page it would be possible to (also) add a link that references the parent folder - only the toctree
directive is restricted in this aspect.
Or would it maybe be enough to just add the local link back to near the top of index.rst?