-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add single_version config to fix URLs. #16
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.
Looks good to me. I'd use a boolean variable instead of a string, tho, unless there is a specific reason that I'm not seeing.
preview/README.md
Outdated
@@ -56,3 +56,4 @@ These are all the parameters this action supports: | |||
* `message-template` (_optional_): Text message to be injected by the action in the Pull Request description. It supports the following placeholders to be replaced: | |||
* `{docs-pr-index-url}`: URL to the root of the documentation for the Pull Request preview. | |||
* `platform` (_optional_): Read the Docs Community (`community`) or Read the Docs for Business (`business`). (default: `community`) | |||
* `single_version` (_optional_): Set this to `'true'` if your project is single version, so we can link to the correct URL. (default: `false`) |
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.
* `single_version` (_optional_): Set this to `'true'` if your project is single version, so we can link to the correct URL. (default: `false`) | |
* `single_version` (_optional_): Set this to `true` if your project is single version, so we can link to the correct URL. (default: `false`) |
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.
* `single_version` (_optional_): Set this to `'true'` if your project is single version, so we can link to the correct URL. (default: `false`) | |
* `single_version` (_optional_): Set this to `'true'` (note it's a _string_) if your project is single version, so we can link to the correct URL. (default: `'false'`) |
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 updated my comments after research a little more about this. It seems it's a problem on GHA and there is no good solution. It's just a string, unfortunately 👎🏼
I'm suggesting to update a little the docs of the single_version
and use single-version
for consistency. Also, the variable needs to be defined before used.
preview/README.md
Outdated
@@ -56,3 +56,4 @@ These are all the parameters this action supports: | |||
* `message-template` (_optional_): Text message to be injected by the action in the Pull Request description. It supports the following placeholders to be replaced: | |||
* `{docs-pr-index-url}`: URL to the root of the documentation for the Pull Request preview. | |||
* `platform` (_optional_): Read the Docs Community (`community`) or Read the Docs for Business (`business`). (default: `community`) | |||
* `single_version` (_optional_): Set this to `'true'` if your project is single version, so we can link to the correct URL. (default: `false`) |
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.
* `single_version` (_optional_): Set this to `'true'` if your project is single version, so we can link to the correct URL. (default: `false`) | |
* `single_version` (_optional_): Set this to `'true'` (note it's a _string_) if your project is single version, so we can link to the correct URL. (default: `'false'`) |
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
@humitos should be ready 👍 |
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
* Add single_version config to fix URLs. Fixes #14 * Fix logic * Use var properly * Set RTD_SINGLE_VERSION * Apply suggestions from code review Co-authored-by: Manuel Kaufmann <humitos@gmail.com> * Update preview/README.md Co-authored-by: Manuel Kaufmann <humitos@gmail.com> Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
Use the new feature of our own preview action. See readthedocs/actions#16
* Make the GHA "preview" single version Use the new feature of our own preview action. See readthedocs/actions#16 * Update .github/workflows/documentation-links.yaml Co-authored-by: Eric Holscher <25510+ericholscher@users.noreply.github.com> --------- Co-authored-by: Eric Holscher <25510+ericholscher@users.noreply.github.com>
Fixes #14
📚 Documentation preview 📚: https://readthedocs-preview--16.org.readthedocs.build/en/16/