forked from ACCESS-NRI/mkdoc-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Added RTD setup and link checker #8
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # =========== IMPORTANT!! READ THIS!! ============ # | ||
| # This file is used to check links and can be copied to be used for documentation websites. | ||
|
|
||
| # When you copy this file, make sure to check and modify the fields | ||
| # that here are marked with `MODIFY`. | ||
| # ============================================== # | ||
|
|
||
| name: Check links | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| check-links: | ||
| uses: access-nri/documentation-infra/.github/workflows/check_links_workflow.yml@0.2 | ||
| with: | ||
| repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} | ||
| commit: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| rtd_project: 'decoding-access-om3' # MODIFY: change this to the Read the Docs project | ||
| # readthedocs_yaml: # MODIFY: Uncomment to add .readthedocs.yaml path. If not included, '.readthedocs.yaml' is used. | ||
| # lychee_config: '/path/to/lychee_config.toml' # MODIFY: Uncomment to add lychee config path. If not included, the one from the ACCESS-NRI/documentation-infra repo gets used. | ||
| # secrets: # MODIFY: Uncomment the lines below if the repo is private. You also need to create a secret named REPO_READ_TOKEN with a token that has repo read permissions. | ||
| # repo_read_token: ${{ secrets.REPO_READ_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # =========== IMPORTANT!! READ THIS!! ============ # | ||
| # This file can be copied to be used for websites deployments with RTD. | ||
| # When you copy this file, make sure to check and modify the fields | ||
| # that here are marked with `MODIFY`. | ||
| # ============================================== # | ||
|
|
||
|
|
||
| # Read the Docs configuration file | ||
| # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
|
||
| # ReadtheDocs config version | ||
| version: 2 | ||
|
|
||
| # Set the ReadtheDocs Docker image OS, Python version, and other tools you might need | ||
| build: | ||
| os: ubuntu-24.04 | ||
| tools: | ||
| python: "3.13" | ||
| # jobs: # MODIFY: uncomment lines below to cancel the RTD build (e.g., for specific branches) | ||
| # post_checkout: | ||
| # - exit 183 | ||
|
|
||
| # Build documentation with Mkdocs | ||
| mkdocs: | ||
| configuration: documentation/mkdocs.yml # MODIFY: path to mkdocs.yml | ||
|
|
||
| # Python requirements to build your documentation | ||
| # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
| python: | ||
| install: | ||
| - requirements: documentation/requirements.txt # MODIFY: path to requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 guess we won't know this till later?
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.
In the other instance it seems to be known?
i.e. https://access-om3-idealised-configs.readthedocs.io/
Uh oh!
There was an error while loading. Please reload this page.
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.
Not sure what you mean here. The
website-urlis known, if you see at line 1 of the updated README[website-url]: https://decoding-access-om3.readthedocs.io/is defined.