-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: move documentation to readthedocs #12360
Conversation
aa09491
to
a9bdbf9
Compare
Relates to argoproj#12360 ### Motivation Change each github page to utilize meta tag to redirect to new location on readthedocs Since we don't host our previous documentation we can't do a real HTTP redirect. Meta tag is the next best thing https://www.w3.org/TR/WCAG20-TECHS/H76.html ### Modifications - [x] setup redirects to [readthedocs](https://argo-workflows.readthedocs.io/en/stable/) + previus page suffix Signed-off-by: jmeridth <jmeridth@gmail.com>
|
5ef59c3
to
4f84ad5
Compare
The codegen failure is caused by an older version of mockery |
4f84ad5
to
616231d
Compare
Yep. Missed one. 😄 Fixed and pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you manage to work out why all the .spelling
changes were needed? Or rather why they weren't needed before.
Relates to argoproj#12360 ### Motivation Change each github page to utilize meta tag to redirect to new location on readthedocs Since we don't host our previous documentation we can't do a real HTTP redirect. Meta tag is the next best thing https://www.w3.org/TR/WCAG20-TECHS/H76.html ### Modifications - [x] setup redirects to [readthedocs](https://argo-workflows.readthedocs.io/en/latest/) + previus page suffix Signed-off-by: jmeridth <jmeridth@gmail.com>
616231d
to
658c656
Compare
@Joibel no. My assumption, still needs verification, is that spelling was only validating modified files and due to the size of my changes, it included many files. I'm still trying to verify. The Makefile command |
The spelling check checks all files regardless of modification, but has some specific ignored files listed. One of your additions is I attempted to reproduce why you'd had to add them but failed:
I'm all for taking out some of the exclusions from the spelling checker, and making |
Relates to argoproj#12360 ### Motivation Change each github page to utilize meta tag to redirect to new location on readthedocs Since we don't host our previous documentation we can't do a real HTTP redirect. Meta tag is the next best thing https://www.w3.org/TR/WCAG20-TECHS/H76.html ### Modifications - [x] setup redirects to [readthedocs](https://argo-workflows.readthedocs.io/en/latest/) + previus page suffix Signed-off-by: jmeridth <jmeridth@gmail.com>
658c656
to
50574a6
Compare
They need to have the build changes, but not necessarily all of the other changes.
I think we should create a tracking issue for this and slowly backport changes for v3 at least. That was my plan to backport all docs fixes to older versioned docs as well. EDIT: See #12414
One of the contributors from the OSS Academy this summer did try to get everything lintable (c.f. #11787 (comment)), but it wasn't quite completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still need to review the build changes (including the .spelling
discrepancies pointed out above and in #12211 (comment)), but I reviewed all the content this look through, only a couple changes needed.
For other reviewers, note that the vast majority of this PR is automated changes to the SDKs which are one-liner comment changes to the new docs link. Can skip all the sdks/
paths as such
Relates to argoproj#12360 ### Motivation Change each github page to utilize meta tag to redirect to new location on readthedocs Since we don't host our previous documentation we can't do a real HTTP redirect. Meta tag is the next best thing https://www.w3.org/TR/WCAG20-TECHS/H76.html ### Modifications - [x] setup redirects to [readthedocs](https://argo-workflows.readthedocs.io/en/latest/) + previus page suffix Signed-off-by: jmeridth <jmeridth@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to remove the gh-pages
publish action in this PR so that #12362 isn't overwritten later
Relates to argoproj#12360 ### Motivation Change each github page to utilize meta tag to redirect to new location on readthedocs Since we don't host our previous documentation we can't do a real HTTP redirect. Meta tag is the next best thing https://www.w3.org/TR/WCAG20-TECHS/H76.html ### Modifications - [x] setup redirects to [readthedocs](https://argo-workflows.readthedocs.io/en/latest/) + previus page suffix - [x] use base styling for pages - Anton Signed-off-by: jmeridth <jmeridth@gmail.com> Co-authored-by: Anton Gilgur <agilgur5@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It's alive. https://argo-workflows.readthedocs.io/en/latest/ Resyncing #12362 now and will open for merging. |
Previously was argoproj#12212 and argoproj#12362 Relates to argoproj#12360 ### Motivation Change each GitHub page to utilize meta tag to redirect to new location on readthedocs Since we don't host our previous documentation we can't do a real HTTP redirect. Meta tag is the next best thing https://www.w3.org/TR/WCAG20-TECHS/H76.html ### Modifications - [x] setup redirects to [readthedocs](https://argo-workflows.readthedocs.io/en/latest/) + previus page suffix (once argoproj#12360 merges and builds) [Python script used to update the files](https://gist.github.com/jmeridth/94cd15d2b11d444fdf91913aa59f34ab) Signed-off-by: jmeridth <jmeridth@gmail.com>
Previously was argoproj#12212 and argoproj#12362 Relates to argoproj#12360 ### Motivation Change each GitHub page to utilize meta tag to redirect to new location on readthedocs Since we don't host our previous documentation we can't do a real HTTP redirect. Meta tag is the next best thing https://www.w3.org/TR/WCAG20-TECHS/H76.html ### Modifications - [x] setup redirects to [readthedocs](https://argo-workflows.readthedocs.io/en/latest/) + previus page suffix (once argoproj#12360 merges and builds) [Python script used to update the files](https://gist.github.com/jmeridth/94cd15d2b11d444fdf91913aa59f34ab) Signed-off-by: jmeridth <jmeridth@gmail.com>
Fixes argoproj#12444 Current links have prefix https://argo-workflows.readthedocs.io/en/stable/ (from argoproj#12360 merge) Expected: Link suffix should be https://argo-workflows.readthedocs.io/en/latest/ since that is what main branch is, it is latest and it is what we are redirecting all old GitHub pages to (from argoproj#12443 merge) Signed-off-by: jmeridth <jmeridth@gmail.com>
Fixes argoproj#12444 Current links have prefix https://argo-workflows.readthedocs.io/en/stable/ (from argoproj#12360 merge) Expected: Link suffix should be https://argo-workflows.readthedocs.io/en/latest/ since that is what main branch is, it is latest and it is what we are redirecting all old GitHub pages to (from argoproj#12443 merge) Signed-off-by: jmeridth <jmeridth@gmail.com>
Signed-off-by: jmeridth <jmeridth@gmail.com> Co-authored-by: Tim Collins <tim@thecollins.team> Co-authored-by: Anton Gilgur <4970083+agilgur5@users.noreply.github.com>
Giscus is indeed creating new URLs now, and seemingly for each version too 😕 See #12451 as an example of the first Giscus discussion created on RTD. I wonder if we can configure Giscus to use existing discussions or at least use the same name/version for all new ones instead of different ones per version. It currently seems to naively use the full URL path |
Investigated Giscus, can see the Unfortunately, Giscus can only use the full That being said, Giscus performs a search on the GH Discussions to match a page to a discussion, so we can modify the old discussions to have the new URLs in them, which should make the search work. Main problem with that is, well, I don't have permissions to edit Discussion titles or opening comments, as that's only granted with write permissions (c.f. argoproj/argoproj#243). If someone can grant me those permissions temporarily, I can manually edit all the existing page discussions to match up |
With argoproj/argo-workflows#12360 we have moved argo-workflows docs to readthedocs. We are redirecting from the previous github pages but this will ensure going straight to the docs Signed-off-by: jmeridth <jmeridth@gmail.com>
As I now have permissions (argoproj/argoproj#277), I did do this for a few discussions, but ran into a couple of issues:
Given that Giscus discussions are also not necessarily made for Q&A, as there are multiple Q&As in one, no "mark as answer" possible, and not easy to search since there can be dozens of comments, I am considering removing Giscus entirely. It is a source of interactivity for new users, but I don't think a very efficient one for getting questions answered. Pointing to people to search issues and discussions and open a new one if they don't see an answer would be more optimal, but not necessarily that simple UX-wise |
Signed-off-by: jmeridth <jmeridth@gmail.com> Co-authored-by: Tim Collins <tim@thecollins.team> Co-authored-by: Anton Gilgur <4970083+agilgur5@users.noreply.github.com> (cherry picked from commit e921056)
PR to remove Giscus and replace with links to search Discussions and Slack: #13138 |
Draft until I get the gh-pages PR updated with meta tags
Fixes #11390
Motivation
Moving to readthedocs so we can have versioned docs easily and standardize like argo-cd and other projects have already.
Modifications
make pre-commit -B
locallyVerification
https://jm-argo-workflows.readthedocs.io/en/latest/
Notes
For us to have other versions available we have to mark them as Active in the readthedocs UI
But those versions have to have all of the changes in this PR or they will fail
So this idea of versioned docs may only apply going forward.