Skip to content

ci: use launchdarkly publish docs action #332

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

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Dec 12, 2023

Updates the publish docs workflow + action to use the launchdarkly shared action.

Copy link

This pull request has been linked to Shortcut Story #225790: Update publish docs workflow to use shared action.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review December 12, 2023 22:48
@cwaldren-ld cwaldren-ld requested review from a team and keelerm84 December 12, 2023 22:48
@cwaldren-ld cwaldren-ld force-pushed the cw/sc-225790/publish-docs-use-action branch from bfb9d1b to 4284d7d Compare December 13, 2023 16:13
@cwaldren-ld cwaldren-ld enabled auto-merge (squash) December 13, 2023 16:13
./scripts/publish-doc.sh $WORKSPACE
env:
WORKSPACE: ${{ inputs.workspace_path }}
docs_path: ${{ inputs.workspace_path }}
Copy link
Member

Choose a reason for hiding this comment

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

I am reasonably sure this should be in a subdirectory. ${{ inputs.workspace_path }}/docs

The output in the doxyfile contains docs and the old script used docs.

Copy link
Contributor Author

@cwaldren-ld cwaldren-ld Dec 13, 2023

Choose a reason for hiding this comment

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

I did that originally (first commit), and it then broke all existing docs links (like from README + LaunchDarkly public docs) when I ran the manual publish workflow.

It might be more correct to not have the docs subdir in the path, but that's what we currently have e.g.

https://launchdarkly.github.io/cpp-sdks/libs/server-sdk/docs/html/

Copy link
Member

Choose a reason for hiding this comment

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

Not including it means you are publishing all the source into docs which happens to include docs. If you want it in a sub-directory on the output, then put that into the output path as well.

Copy link
Member

Choose a reason for hiding this comment

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

image

Copy link
Member

@kinyoklion kinyoklion Dec 13, 2023

Choose a reason for hiding this comment

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

What it used to, and correctly, looked like:
image

Copy link
Member

Choose a reason for hiding this comment

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

So, before we took the $workspace/docs and put them into $workspace/docs.

Currently you are putting $workspace/ which happens to contain docs into $workspace/.

Copy link
Member

Choose a reason for hiding this comment

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

Is this what you tried?

docs_path: ${{ inputs.workspace_path }}/docs
output_path: ${{ inputs.workspace_path }}/docs

If it doesn't work, then we need to fix a bug in the action.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I had only added /docs to the docs_path. That was the problem. Updated both and all is working now (+ I've fixed up the gh-pages branch.)

@cwaldren-ld cwaldren-ld merged commit 0a311e9 into main Dec 13, 2023
@cwaldren-ld cwaldren-ld deleted the cw/sc-225790/publish-docs-use-action branch December 13, 2023 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants