Conversation
mbrukman
left a comment
There was a problem hiding this comment.
I would advocate for removing 0.2.0-SNAPSHOT since it wasn't an official release, and similarly suggest removing 0.3.0-SNAPSHOT (since once we release 0.3.0, we would want folks to read those docs, rather than the -SNAPSHOT version).
In general, I think of the *-SNAPSHOT docs as temporary while we don't have the release, but I don't want to hardcode it into any menus, just let folks access it if they know it's there.
Adding it here into the code means that the next version's docs will hard-code that version, and if we want to hide it, we have to rebuild the docs, which then violates the principle that the version is not modified after release without changing the version number...
Thoughts?
docs/doc-versions.adoc
Outdated
| [appendix] | ||
| == Other documentation versions | ||
| * link:../0.3.0-SNAPSHOT/index.html[Version 0.3.0-SNAPSHOT] | ||
| * link:../0.2.0-SNAPSHOT/index.html[Version 0.2.0-SNAPSHOT] |
There was a problem hiding this comment.
This was done before the 0.2.0 release, but I would remove it since it's unreleased, and there's an official 0.2.0 release.
There was a problem hiding this comment.
I totally agree about removing all the snapshot links and just wanted them for PoC. I actually find the SNAPSHOT folders to be misleading since they're not updated on the live site after the release. Initially I expected them to be a more current version of the docs rather than a different 6 month old copy.
Since the docbook is generated html I'll need to push these changes to every branch we want listed, otherwise you'll only be able to see the doc-versions page and the dropdown from the 0.3.0 folder. I'm thinking it will be 1.0,1.1,2.0,2.1, and 3.0. Should I start with 1.0 and merge commit my way up?
Separately I want to work on dynamically updating the docs site with CI. Right now we're applying fixes to the docs in the 0.2.0 and most of them are for items that are misleading or completely incorrect. I know I've run into issues more than once because I was following the online docs only to find out that a PR addressing the issue had already been merged. Are you open providing the most current documentation on the live site rather than preserve consistency with the release?
docs/xsl/common.xsl
Outdated
| <li class="header-item-right dropdown"><a href="doc-versions.html">Other Doc Versions</a> | ||
| <div class="dropdown-content"> | ||
| <a href="../0.3.0-SNAPSHOT/index.html">Version 0.3.0</a> | ||
| <a href="../0.2.0-SNAPSHOT/index.html">Version 0.2.1</a> |
ce62353 to
ddcad40
Compare
|
After some additional digging this is how I think this should be implemented.
@mbrukman thoughs? Also do you want me to submit a PR to docs.janusgraph.org with the proposed rebuild of 0.1.0, 0.1.1, and 0.2.0? |
docs/doc-versions.adoc
Outdated
| * link:../0.2.1/index.html[Version 0.2.1] | ||
| * link:../0.2.0/index.html[Version 0.2.0] | ||
| * link:../0.1.1/index.html[Version 0.1.1] | ||
| * link:../0.1.0/index.html[Version 0.1.0] |
There was a problem hiding this comment.
We currently package a zip file with the docs for every release. If a user has a local copy of the docs on their computer, none of these relative URLs would resolve. These should be linked to the docs website like https://docs.janusgraph.org/0.2.0/index.html
| <a href="../0.2.0/index.html">Version 0.2.0</a> | ||
| <a href="../0.1.1/index.html">Version 0.1.1</a> | ||
| <a href="../0.1.0/index.html">Version 0.1.0</a> | ||
| </div> |
There was a problem hiding this comment.
Same comment on the relative URLs as above.
The dropdown is nifty, but as more releases go out, the number of items must be limited otherwise the list will become way too long to fit the dropdown in the browser window. Perhaps not a concern for right now, but it will need to be handled at some point.
|
@pluradj links are hardcoded now. As for the dropdown if we want to keep it terse restricting it to the supported releases would be the easiest method. People could still use the Other Doc versions link to get to the old stuff. |
docs/doc-versions.adoc
Outdated
| [[doc-versions]] | ||
| [appendix] | ||
| == Other documentation versions | ||
| * http://docs.janusgraph.org/0.3.0/index.html[Version 0.3.0] |
There was a problem hiding this comment.
0.3.0 hasn't been released yet... also, will the docs versions only list past versions, or all future versions as well? How will we keep these up-to-date, given that we don't modify historical build artifacts (including docs)?
Should we have a separate page on docs.janusgraph.org that is not part of the docs build that lists all possible versions, and have all the docs link there, so that there's no need to rebuild prior versions and they stay intact?
There was a problem hiding this comment.
@mbrukman For 0.3.0 I figured this would get merged when we did the release, which I'm led to believe should be in the near future(hopefully).
I have a PR in the docs project JanusGraph/docs.janusgraph.org#27 where I checked out all the release tags and replaced the Other Versions link to the release page with a link to the versions page. That PR should get merged before this one.
I'm proposing we only have the dropdown on the most current supported versions and all the finalized releases will just have a link to doc-versions.html. When new releases are added the only thing that would need to be updated is the static doc-versions.html file in each release folder. Since the file will be identical across the releases it represents a trivial update that could easily be scripted in CI.
There was a problem hiding this comment.
This means we have to update doc-versions.html in every doc page, of every version; however, each page is built differently (i.e., the CSS/XML transforms are custom to every version), so if we change the CSS for some version (say, 0.4.0) we can't reuse that HTML verbatim back in 0.1.0 because then it will look wrong.
The correct thing to do in that case would be to run N new docs builds, one in each documentation directory, to ensure that it picks up the correct CSS/XML relevant for that version.
I would like to propose that we don't give ourselves this much work, and do the following:
-
"Other Doc Versions" always links to a static link:
/latest/doc-versions.html -
we keep updating the
doc-versions.adocfile to add all the new versions -
each doc build will only include prior versions, but that's fine: when the link is clicked via the top, users will find the complete set of versions, but in the doc they will only see earlier versions
-
thus, in the body of
doc-versions.adocit should also say something like:This page only lists versions released prior to ${version}; see complete list of docs versions for later versions."
Thoughts?
There was a problem hiding this comment.
I like the idea of just linking to /latest/doc-versions.html I just did a diff between versions and they are less congruent than I was expecting. I should be able to update this PR as well as JanusGraph/docs.janusgraph.org#27 tomorrow morning.
Thanks for the feedback.
There was a problem hiding this comment.
requested changes have been made. I'll setup a github pages preview once JanusGraph/docs.janusgraph.org#27 merges
docs/doc-versions.adoc
Outdated
| * http://docs.janusgraph.org/0.1.1/index.html[Version 0.1.1] | ||
| * http://docs.janusgraph.org/0.1.0/index.html[Version 0.1.0] | ||
|
|
||
| This page only lists versions ${version}; and prior. Please visit the latest version to https://docs.janusgraph.org/latest/doc-versions.html[see a complete list of docs versions]." |
There was a problem hiding this comment.
extraneous semicolon and quotation marks
There was a problem hiding this comment.
semicolon and quotation mark removed
|
@mbrukman Thinking more about ease of maintenance I added a link to latest as well since that link never changes. I think all the requested changes have been made. I humbly request the bestowment of a green check mark. |
|
@mbrukman will you be able to review/approve this PR this week? thanks. |
|
@mbrukman Can you add a note here if you'd like more time to review the updates or if it's okay to move forward with merge? |
All requested updates appear to have been addressed
Signed-off-by: Chris Hupman <chupman@us.ibm.com>
7b61549 to
1edc983
Compare
| * https://docs.janusgraph.org/0.1.1/index.html[Version 0.1.1] | ||
| * https://docs.janusgraph.org/0.1.0/index.html[Version 0.1.0] | ||
|
|
||
| This page only lists versions 0.3.0 and prior. Please visit the latest version to https://docs.janusgraph.org/latest/doc-versions.html[see a complete list of docs versions]. |
There was a problem hiding this comment.
I'm not sure here. Possibly I just don't know some grammar rules, but as for me it should be vice verse. I.e. something like:
Please visit the complete list of doc versions to see the latest version.
Maybe I'm wrong.
There was a problem hiding this comment.
This is a version the doc listings page. The issue is we don't plan to update the old ones so we wanted to provide a link to the latest version,https://docs.janusgraph.org/latest/doc-versions.html, which will always have a complete listing.
I'll be in the office tomorrow and I'll take a look at rewriting this sentence to make it easier to read.
There was a problem hiding this comment.
Sorry, my bad. I thought the link is pointing to all versions documentations. My mistake. Now I understand it.
Adding dropdown for versions
Adding dropdown for versions
Signed-off-by: Chris Hupman chupman@us.ibm.com
I created a page with links to all the available documentation folders and added it to the appendices. I also replaced the other versions link that pointed to the releases page with a dropdown to switch between doc versions. If you click on Other Doc Versions it will take you to the new Appendix E, Other documentation versions.
Open issue is in the docs repo
Preview available here
Currently the changes can only be seen from the 0.3.0-SNAPSHOT or latest url. The changes will need to be backported into all the branches we plan to host documentation for. Also right now the version links are hardcoded in doc-versions.adoc and common.xsl. It would be easy enough to store them as an array in the pom, but you'd still have to update the pom for each individual release branch so it wouldn't really save much, or any, time.
Thank you for contributing to JanusGraph!
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
master)?For code changes:
For documentation related changes:
[skip ci]tag to the first line of your commit message to avoid spending CPU cycles in
Travis CI when no code, tests, or build configuration are modified?
Note:
Please ensure that once the PR is submitted, you check Travis CI for build issues and submit an update to your PR as soon as possible.