Open kpritam opened 6 years ago
Hi @kpritam,
Thank you for your contribution! We really value the time you've taken to put this together.
Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:
Signed Lightbend CLA
Is there any other better way to maintain versioning in ghpages published docs?
@kpritam This contribution looks great! Do you mind adding a test for it? (in the sbt-test directory)
@kpritam This contribution looks great! Do you mind adding a test for it? (in the sbt-test directory)
I have added test, do have a look and let me know if thats fine.
Another question is coming to my mind. I am still not sure whether maintaining multiple versions should be done at the sbt-site level or sbt-ghpages level… With your proposal, would it be possible and easy to publish a website for v1.0 of a lib, then publish for v2.0, and then for v1.1 but while still having the website for 2.0 by default?
With your proposal, would it be possible and easy to publish a website for v1.0 of a lib, then publish for v2.0, and then for v1.1 but while still having the website for 2.0 by default?
As per the current proposal, last published version is copied to root directory as it does not know about previously published versions.
Simplest way to achieve what you described could be setting ghpagesCopyLatestVersionAtRoot := false
while releasing v1.1
(consumer of ghpages responsibility)
Or We could somehow keep track of published version and then sort and decide what goes at top level Or We could peek into current gh-pages repo to see what versions are published.
Another question is coming to my mind. I am still not sure whether maintaining multiple versions should be done at the sbt-site level or sbt-ghpages level…
ghpages
plugin cleans repository at the time of every publish, hence this needs to be done in ghpages plugin.
ghpages
plugin cleans repository at the time of every publish, hence this needs to be done in ghpages plugin.
Alternatively, we could create a new folder for old versions each time we start a new major branch.
ghpages
plugin cleans repository at the time of every publish, hence this needs to be done in ghpages plugin.Alternatively, we could create a new folder for old versions each time we start a new major branch.
This will force keeping older versions. What if people do not want older versions like the way ghpages currently behaves?
Fixes #10