Closed tomasz1986 closed 2 years ago
That was an open question I raised in the original PR: https://github.com/syncthing/docs/pull/729#issuecomment-1038443251
It's basically the way Sphinx treats the corresponding variables. I don't know if the template for the page title can be overridden to use the other variable or none at all. Probably so, and that would be a good solution I guess. Switching the content of the variables contrary to their documented purpose may have strange effects when the theme gets updated sometime.
I don't think hiding it based on which version you're browsing is worth the technical complexity, so either the shorter version string or none at all.
I don't think hiding it based on which version you're browsing is worth the technical complexity, so either the shorter version string or none at all.
If technically possible, I think it would be worth it to have it in the title if the URL itself contains a version string, and not to have it when the URL is clean. If that's too complex, then probably no version string at all would be preferred though…
These can be different in different builds. We used to just set it to v1
. We can still do that by default, and only populate the version
and release
variables when git describe
== git describe --abbrev=0
(that is, when we are building something that is precisely on a tag). The archived versions (selectable in the dropdown) will always be tagged builds. The "latest" version will generally not be.
The "latest" version will generally not be.
Not quite true in the period after tagging a docs release, but before the next docs commit is made. But I like the idea, so implemented a slight variation of it in #749.
That's what "generally" means. :)
Since the recent version picker and version string additions, version numbers seem to be always added to the website title. I don't think this is really desired when linking to the generic Docs URL, i.e. without any specific version added to it.
To make it clear what I mean here, below is the title as of right now.
I believe this will create complexity with search engines, e.g. Google, which will probably add these strings to the title there too, resulting in unnecessary noise. Also, the same thing has already been happening on the forums, where the software automatically grabs the current title and displays it as follows.
This is problematic, because a) the actual URL behind the link is just https://docs.syncthing.net/users/ignoring.html without any version string, and also, as far as I understand, b) the link on the forum is going to stay like that forever.
In sum, I'd propose to add the version string to the title only when we're actually browsing an older version of the Docs, and skip it when browsing the generic Docs URL or the
latest
version.