Closed shravanngoswamii closed 18 hours ago
Preview the changes: https://turinglang.org/docs/pr-previews/478, Please avoid using the search feature and navigation bar in PR previews!
Update: Changelog and Versions will be added to sidebar of docs and tutorials https://github.com/TuringLang/turinglang.github.io/pull/74 — this will be closed with it!
For the listing, only minor versions will be there now! In our gh-pages, should we have only minor versions or all? If all, then this PR is good to go!
Should we have Changelog inside versions dropdown? Currently, it's like this:
Thanks @shravanngoswamii. Let's create a qmd
file for versions, too, and link to it from the left menu, instead of maintaining a list in the quarto config file.
For the listing, only minor versions will be there now! In our gh-pages, should we have only minor versions or all? If all, then this PR is good to go!
We only list minor versions, but they should point to the most recent bugfix release, e.g. v0.33
should always point to v0.33.most_recent_release
.
Ok, got it! I will update it soon!
link to it from the left menu, instead of maintaining a list in the quarto config file.
Updated the script!
We only list minor versions, but they should point to the most recent bugfix release, e.g. v0.33 should always point to v0.33.most_recent_release.
In latest version: latest bug fix version will appear In Stable version: latest minor version will appear In Previous Versions: all versions excluding latest, stable and those which have docs in our old site! In Archived Versions: all our versions that are in our old website.
I need some suggestions:
Have a look at versions file now: https://turinglang.org/docs/pr-previews/478/versions.html
I was adding the deprecation note in our old docs but I am having some issues understanding that site!
Each html file in our old docs have links to css file like these /v0.31/some/folder
, even if site is of version v0.28.2
then also html files in that version have link like v0.28/some/file
and these folders(v0.28
, v0.31
) do not even exist so how is the site getting styles?
update: I searched a bit and found out that its using symbolic links!
please also review the deprecation note in this: https://turing.shravangoswami.com/ui/v0.31.1/
Thanks @shravanngoswamii -- it looks nice.
Latest version also have link to Changelog, so should we keep Change log link in left sidebar or not?
Let's remove the link to change the log elsewhere except the one in versions.qmd
.
Should we have a version's dropdown in nav bar or not (I think it's not necessary requirement!)
That would be nice if possible.
I am testing this in various cases, I will let you know when I am done!
@yebai I tried many things for suggesting the changes to VERSION
if it contains old version but no one is working as expected, or maybe I used them in wrong way! I tried https://github.com/parkerbxyz/suggest-changes and https://github.com/reviewdog/action-suggester, but both are not working the way I want them too!
So I used normal comments!
Currently, we have these: publish.yml: check the VERSION file, push site to versioned and root folder vcheck.yml: check that the VERSION file have the latest version or not, if not then it comments in PR to update it to latest
I tried almost everything that I could, and I was not able to figure out what was the issue! Then suddenly I saw the issues of this workflow and found out that it does not support diffs that change single line, we can use it after this PR is merged!
@yebai This PR is good to go, that suggest changes workflow PR is merged — https://github.com/parkerbxyz/suggest-changes/pull/31, and it's working fine now! You can see the example here: https://github.com/shravanngoswamii/docs/pull/46
Still I have one more question, when we update any previous release then docs will be pushed to that particular version along with the root folder. So should I put the if
condition for pushing to root folder for latest version, I mean after these docs will only be pushed to root folder when VERSION is latest! But even if we do this, then what about the case where we need the changes of previous release in latest!
Still I have one more question, when we update any previous release then docs will be pushed to that particular version along with the root folder. So should I put the if condition for pushing to root folder for latest version, I mean after these docs will only be pushed to root folder when VERSION is latest!
Let's do it.
But even if we do this, then what about the case where we need the changes of previous release in latest!
One should always refer to explicitly versioned docs for previous releases.
Let's do it.
Done!
Now we have to make some changes in Turing.jl's workflow for triggering this workflow on new releases! Its not necessary because this will automatically update it when new commit will be made in this repo after version changes!