-
Notifications
You must be signed in to change notification settings - Fork 622
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
CONSOLE-3169: Publish console dynamic plugin extension and api docs #11633
Conversation
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.
@TheRealJon If we check in the generated doc files, we should add something to CI that makes sure they're updated when things changed (similar to what we do with yarn.lock).
Can we remove the |
Yeah, definitely. I was going to look into this next
I opted to move the docs out of the generated folder since those are the only files we need to check in. The other artifacts in the |
/label tide/merge-method-squash |
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
/hold There seems to be an issue with the generation script. It's generating different source code links in CI and local environments. |
/hold cancel I fixed the issue with the link generation logic. |
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
frontend/packages/console-dynamic-plugin-sdk/scripts/generate-doc.ts
Outdated
Show resolved
Hide resolved
frontend/packages/console-dynamic-plugin-sdk/scripts/generate-doc.ts
Outdated
Show resolved
Hide resolved
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.
My original issues were around how we could end up with multiple doc versions. a 4.11 pointing at master
would be a bad thing. But it's just the latest docs.
This is a bit of an oddity... GitHub pages is a single version -- the latest. So any link to master
, as long as we keep it up to date, will work.
However anyone looking at the READMEs in previous version, they will get an undesired link reference.
I think we should go with this, and start thinking on how we can get the docs to be more future proof.
QE Approver Docs Approver: PX Approver: @spadgett @andrewballantyne I've updated all of the github links to the release-4.11 branch. This will need another lgtm. |
/label px-approved |
/label docs-approved |
da550d7
to
a447687
Compare
@yapei I've updated per your comment |
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
/retest |
/lgtm |
Looks like it had an issue with hosting the cluster for e2e -- then crashed frontend with it. Retrying. /retest |
`README.md` Update root README to provide easier navigation to package docs. `frontend/packages/console-dynamic-plugin-sdk/README.md` Update console dynamic plugin SDK README to provide easier navigation to API and Console Extension docs. `frontend/packages/console-dynamic-plugin-sdk/docs` Generate dynamic plugin docs in this dir so that they are not ignored by git and /generated/ is not included in the GitHub Pages URL path. `frontend/packages/console-dynamic-plugin-sdk/scripts/generate-doc.ts` Refactor and simplify GitHub link generation logic `frontend/packages/console-dynamic-plugin-sdk/scripts/package-definitions.ts` Update location of generated docs so that they are copied into dist `test-frontend.sh` Reorder the checks in this file so that the least time-consuming and compute-intensive steps come first, meaning we will fail faster.
/lgtm |
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.
/label qe-approved
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, spadgett, TheRealJon, yapei, zherman0 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@TheRealJon: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Manually publish dynamic plugin SDK API docs and add CI checks to ensure generated files stay up to date.
README.md
Update root README to provide easier navigation to package docs.
frontend/packages/console-dynamic-plugin-sdk/README.md
Update console dynamic plugin SDK README to provide easier navigation to API and Console Extension docs.
frontend/packages/console-dynamic-plugin-sdk/docs
Generate dynamic plugin docs in this dir so that they are not ignored by git and
/generated/
is not included in the GitHub Pages URL path.frontend/packages/console-dynamic-plugin-sdk/scripts/generate-doc.ts
Refactor and simplify GitHub link generation logic
frontend/packages/console-dynamic-plugin-sdk/scripts/package-definitions.ts
Update location of generated docs so that they are copied into dist
test-frontend.sh
Reorder the checks in this file so that the least time-consuming and compute-intensive steps come first, meaning we will fail faster.
https://issues.redhat.com/browse/CONSOLE-3169