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

Docs: enable readthedocs rendering (for PRs) #256

Merged
merged 2 commits into from
Oct 10, 2023
Merged

Conversation

wmamills
Copy link
Contributor

@wmamills wmamills commented Oct 7, 2023

The Readthedocs pull-request integration is nice to have for PR review. Run the whole OpenAMP-docs build but use the PR's commit

This also requires a ReadTheDocs project to install its integration for this repo. The project should enable "Build pull request for this project". It is currently in the Advanced Settings panel.

The project will also run for the main branch but that should be ignored and only the main project URL should be shown outside of PRs.

To this end the sub-module project names will use "-prs" in the name.

The Readthedocs pull-request integration is nice to have for PR review.
Run the whole OpenAMP-docs build but use the PR's commit

This also requires a ReadTheDocs project to install its integration for
this repo. The project should enable "Build pull request for this project".
It is currently in the Advanced Settings panel.

The project will also run for the main branch but that should be
ignored and only the main project URL should be shown outside of PRs.

To this end the sub-module project names will use "-prs" in the name.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
@wmamills
Copy link
Contributor Author

wmamills commented Oct 7, 2023

This is now working on my libmetal fork.
I sent myself a PR to test it which you can see here:
wmamills#2

The read the docs project is already created and the webhook is already installed for this repo.
However, the RTDS check will fail until this PR is accepted.

After we are satisfied with libmetal, it is easy to setup for the other submodules of openamp-docs.

Detect when we are a submodule of OpenAMP-docs.
If so use the top level's Doxyfile overrides on top of our Doxyfile.
If not, no change.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
@wmamills
Copy link
Contributor Author

@arnopo any objection to accepting this now so we can start using it and stop getting false CI failures?

@arnopo
Copy link
Contributor

arnopo commented Oct 10, 2023

@arnopo any objection to accepting this now so we can start using it and stop getting false CI failures?

Indeed, it is better to integrate it quickly.

@arnopo arnopo merged commit d7c605c into OpenAMP:main Oct 10, 2023
3 of 4 checks passed
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