Skip to content
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

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

jmeridth
Copy link
Member

@jmeridth jmeridth commented Dec 14, 2023

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

Verification

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

Screenshot 2023-12-14 at 8 02 34 AM

But those versions have to have all of the changes in this PR or they will fail

Screenshot 2023-12-14 at 8 08 21 AM

So this idea of versioned docs may only apply going forward.

@jmeridth jmeridth force-pushed the jm-readthedocs branch 2 times, most recently from aa09491 to a9bdbf9 Compare December 14, 2023 15:42
jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Dec 14, 2023
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>
@jmeridth
Copy link
Member Author

make test passes locally. Gotta research why the UI and Codegen tests are failing in CI.

@terrytangyuan
Copy link
Member

-// Code generated by mockery v2.37.1. DO NOT EDIT.
+// Code generated by mockery v2.26.0. DO NOT EDIT.

The codegen failure is caused by an older version of mockery

@jmeridth
Copy link
Member Author

-// Code generated by mockery v2.37.1. DO NOT EDIT.
+// Code generated by mockery v2.26.0. DO NOT EDIT.

The codegen failure is caused by an older version of mockery

Yep. Missed one. 😄 Fixed and pushed.

@jmeridth jmeridth marked this pull request as ready for review December 18, 2023 14:47
Copy link
Member

@Joibel Joibel left a 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.

jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Dec 19, 2023
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>
@jmeridth
Copy link
Member Author

@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 docs-spellcheck isn't showing much to me except files to exclude.

@Joibel
Copy link
Member

Joibel commented Dec 20, 2023

@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 docs-spellcheck isn't showing much to me except files to exclude.

The spelling check checks all files regardless of modification, but has some specific ignored files listed. One of your additions is Ansible which is only in docs/README.md which should be being ignored, so somehow I think your process which has caused you to add stuff to .spelling is bypassing the -not -name bits of mdspell.

I attempted to reproduce why you'd had to add them but failed:

$ git checkout jm-readthedocs
$ git checkout origin/main .spelling
$ mdspell --ignore-numbers --ignore-acronyms --en-us --no-suggestions --report $(find docs -name '*.md' -not -name upgrading.md -not -name README.md -not -name fields.md -not -name upgrading.md -not -name swagger.md -not -name executor_swagger.md -not -path '*/cli/*')
>> 131 files are free from spelling errors

I'm all for taking out some of the exclusions from the spelling checker, and making README.md and probably upgrading.md be spellchecked, it seems reasonable. Especially as upgrading.md is in the exclusion list twice. I'm not bothered if it goes in like it is - really just curious.

jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Dec 20, 2023
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>
.spelling Outdated Show resolved Hide resolved
@agilgur5
Copy link
Member

agilgur5 commented Dec 20, 2023

But those versions have to have all of the changes in this PR or they will fail

They need to have the build changes, but not necessarily all of the other changes.

So this idea of versioned docs may only apply going forward.

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

I'm all for taking out some of the exclusions from the spelling checker, and making README.md and probably upgrading.md be spellchecked, it seems reasonable.

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

Copy link
Member

@agilgur5 agilgur5 left a 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

README.md Outdated Show resolved Hide resolved
docs/running-nix.md Outdated Show resolved Hide resolved
docs/walk-through/artifacts.md Outdated Show resolved Hide resolved
docs/offloading-large-workflows.md Outdated Show resolved Hide resolved
.spelling Outdated Show resolved Hide resolved
@agilgur5 agilgur5 added area/docs Incorrect, missing, or mistakes in docs area/build Build or GithubAction/CI issues labels Dec 20, 2023
jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Dec 20, 2023
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>
Copy link
Member

@agilgur5 agilgur5 left a 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

jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Dec 21, 2023
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>
Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@terrytangyuan terrytangyuan enabled auto-merge (squash) January 2, 2024 18:30
@terrytangyuan terrytangyuan merged commit e921056 into argoproj:main Jan 2, 2024
27 checks passed
@jmeridth
Copy link
Member Author

jmeridth commented Jan 2, 2024

It's alive. https://argo-workflows.readthedocs.io/en/latest/

Resyncing #12362 now and will open for merging.

@jmeridth jmeridth deleted the jm-readthedocs branch January 2, 2024 18:55
jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Jan 2, 2024
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>
jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Jan 2, 2024
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>
jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Jan 2, 2024
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>
jmeridth added a commit to jmeridth/argo-workflows that referenced this pull request Jan 2, 2024
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>
hittingray pushed a commit to atlassian-forks/argo-workflows that referenced this pull request Jan 3, 2024
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>
@agilgur5
Copy link
Member

agilgur5 commented Jan 4, 2024

Only thing I'm wondering about is if giscus will end up creating new GH Discussions for the new URLs and each version of the URLs? I don't think giscus is a huge deal either way, but I am wondering how that will work out

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

@agilgur5
Copy link
Member

agilgur5 commented Jan 4, 2024

Investigated Giscus, can see the mkdocs-material docs and the Giscus docs/setup, which is integrated on this line of code.

Unfortunately, Giscus can only use the full pathname, the full URL, the full title, or a hash, so it won't be able to match the old page discussions out-of-the-box.

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

jmeridth added a commit to jmeridth/argo-site that referenced this pull request Jan 26, 2024
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>
@agilgur5
Copy link
Member

agilgur5 commented Feb 29, 2024

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).

As I now have permissions (argoproj/argoproj#277), I did do this for a few discussions, but ran into a couple of issues:

  1. When a discussion is edited, it moves to the front page of the discussion as it was "recently updated"
  2. There are like 100 Giscus discussions. That's a lot to manually go through (although I could possibly write a script that uses the GH API for it), and editing all of them will clog up like 5 pages of discussions, per above

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

@agilgur5 agilgur5 added this to the v3.5.x patches milestone Apr 9, 2024
agilgur5 pushed a commit that referenced this pull request May 29, 2024
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)
@agilgur5
Copy link
Member

agilgur5 commented Jun 2, 2024

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

PR to remove Giscus and replace with links to search Discussions and Slack: #13138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues area/docs Incorrect, missing, or mistakes in docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Versioned documentation
4 participants