-
Notifications
You must be signed in to change notification settings - Fork 11
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
Changed entire website to Markdown + new link checker #679
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b842f17
Testing link checker action
atteggiani 618b55f
Changed markdown + links in /docs/contribute
atteggiani 6f6ff70
Changed markdown + links in /docs/user_support
atteggiani fc592b9
Changed markdown + links in /docs/about
atteggiani d004051
Changed markdown + links in /docs/community_resources, with exception…
atteggiani 4341b6b
Changed markdown + links in /docs/getting_started. Created custom-ref…
atteggiani 259fc78
Changed markdown + links in /docs/tutorials.
atteggiani 1e1237e
Changed markdown + links in /docs/models/configurations
atteggiani 2eed73d
Changed markdown + links in /docs/models/run-a-model/run-access-esm. …
atteggiani ccdbae2
Changed markdown + links in /docs/models/run-a-model/run-access-cm.
atteggiani 7018f38
Fixed issues with some links (with exception of docs/model_evaluation…
atteggiani 9fed9a4
Added link checker badge in README
atteggiani 308f14e
Renamed link check workflow
atteggiani 6925445
Deleted useless file
atteggiani fd9297e
Added linkedin to excluded URLs
atteggiani bd9bbca
Updated README
atteggiani 227d97e
Updated custom tags. Added function to automatically add simulation t…
atteggiani d69be88
Updated README
atteggiani 5b044ce
Adding Heidi's reviews
atteggiani 04b470a
Perform link check only when a PR is (re)opened or synchronized. Adde…
atteggiani 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 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 |
---|---|---|
@@ -1,38 +1,26 @@ | ||
name: Check Markdown links | ||
name: Check links | ||
|
||
on: | ||
push: | ||
schedule: | ||
# Run at 03:07 every Sunday | ||
- cron: "7 3 * * SUN" | ||
pull_request: #Action fires anytime a PR is (re)opened or synchronized | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
schedule: | ||
# Run every Sunday at 03:07 (AEDT) | ||
# AEDT is UTC+10 --> Sunday at 03:07 AEDT is Saturday at 17:07 UTC | ||
- cron: "7 17 * * SAT" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
markdown-link-check: | ||
if: ${{ github.event_name != 'schedule' }} | ||
link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
- name: Checkout repo | ||
uses: actions/checkout@master | ||
|
||
- name: Link checker | ||
uses: lycheeverse/[email protected] | ||
with: | ||
config-file: '.github/workflows/mlc_config.json' | ||
folder-path: 'docs' | ||
# Only check links in modified files to reduce false positives | ||
check-modified-files-only: 'yes' | ||
use-quiet-mode: 'no' | ||
use-verbose-mode: 'yes' | ||
base-branch: 'main' | ||
|
||
scheduled-markdown-link-check: | ||
if: ${{ github.event_name == 'schedule' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-quiet-mode: 'no' | ||
use-verbose-mode: 'yes' | ||
config-file: '.github/workflows/mlc_config.json' | ||
folder-path: 'docs' | ||
base-branch: 'main' | ||
|
||
fail: true | ||
args: --config .github/workflows/lychee-config.toml './docs/**/*.md' './docs/**/*.html' |
This file contains 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,39 @@ | ||
# Configuration file for lychee link-checker (https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml) | ||
|
||
# Exclude URLs and mail addresses from checking (supports regex). | ||
exclude = [ | ||
'^https://code\.metoffice\.gov\.uk', | ||
'^https://web\.archive\.org/web/', | ||
'^http://127\.0\.0\.1:8000', | ||
'^https://www.linkedin.com/', | ||
] | ||
|
||
# Exclude these filesystem paths from getting checked. | ||
exclude_path = [ | ||
"./docs/fontello", | ||
"./docs/fontawesome*", | ||
] | ||
|
||
# Set verbose level | ||
verbose = "info" | ||
|
||
# Don't show interactive progress bar while checking links. | ||
no_progress = true | ||
|
||
# Enable link caching. This can be helpful to avoid checking the same links on | ||
# multiple runs. | ||
cache = true | ||
|
||
# Discard all cached requests older than this duration. | ||
max_cache_age = "3d" | ||
|
||
# Base URL or website root directory to check relative URLs. | ||
base = "https://access-hive.org.au/" | ||
|
||
# Check links inside `<code>` and `<pre>` blocks as well as Markdown code | ||
# blocks. | ||
include_verbatim = true | ||
|
||
# Check mail addresses | ||
include_mail = true | ||
|
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# Contact | ||
|
||
<img src = "/assets/contact-img.jpg" class="intro-img img-cover with-border" loading="lazy"/> | ||
![Contact](/assets/contact-img.jpg){: class="intro-img img-cover with-border" loading="lazy"} | ||
|
||
ACCESS-Hive is an initiative of the <a href="https://www.access-nri.org.au/about/what-is-access-nri/" target="_blank">Australian Earth-System Simulator (ACCESS-NRI)</a>. | ||
ACCESS-Hive is an initiative of the [Australian Earth-System Simulator (ACCESS-NRI)](https://www.access-nri.org.au/about/what-is-access-nri). | ||
|
||
If you encounter problems/bugs about the content of ACCESS-Hive or you want to contribute, check <a href="/about/contribute">how to contribute</a>. | ||
If you encounter problems/bugs about the content of ACCESS-Hive, or you want to contribute, refer to [how to contribute](/about/contribute). | ||
|
||
Check the <a href="/about/user_support">User Support page</a> if you need help, and for information on what is supported and by whom. | ||
Check the [User Support page](/about/user_support) if you need help, and for information on what is supported and by whom. | ||
|
||
Join the <a href="https://forum.access-hive.org.au/" target="_blank">ACCESS-Hive Community Forum</a> and find previous related discussions about the hive or the resources listed here, or start your own and make contacts with your community. | ||
Join the [ACCESS-Hive Community Forum](https://forum.access-hive.org.au/) and find related discussions about the resources listed here, or start your own and make contacts with your community. | ||
|
||
## Places where you can find the ACCESS-NRI team | ||
|
||
:fontawesome-brands-discourse:{ .forum } <a href="https://forum.access-hive.org.au/" target="_blank">ACCESS-Hive Community Forum</a> | ||
:fontawesome-brands-discourse: [ACCESS-Hive Community Forum](https://forum.access-hive.org.au/) | ||
|
||
:fontawesome-brands-github:{ .github } <a href="https://github.com/ACCESS-NRI/" target="_blank">ACCESS-NRI Github</a> | ||
:fontawesome-brands-github: [ACCESS-NRI GitHub](https://github.com/ACCESS-NRI/) | ||
|
||
:fontawesome-brands-twitter:{ .twitter } <a href="https://twitter.com/ACCESS_NRI" target="_blank">ACCESS-NRI Twitter</a> | ||
:fontawesome-brands-twitter: [ACCESS-NRI Twitter](https://twitter.com/ACCESS_NRI) | ||
|
||
:fontawesome-brands-linkedin:{ .linkedin} <a href="https://www.linkedin.com/in/access-nri" target="_blank">ACCESS-NRI LinkedIn</a> | ||
:fontawesome-brands-linkedin: [ACCESS-NRI LinkedIn](https://www.linkedin.com/in/access-nri) | ||
|
||
:fontawesome-brands-slack:{ .slack} <a href="https://access-nri.slack.com" target="_blank">ACCESS-NRI Slack channel</a> | ||
:fontawesome-brands-slack: [ACCESS-NRI Slack channel](https://access-nri.slack.com) | ||
|
||
[^1]: _"Contact" image source_: <a href="https://www.freepik.com/free-vector/contact-concept-landing-page_5155590.htm#page=5&query=contact%20cartoon&position=6&from_view=search&track=ais">Image by pch.vector</a> on Freepik | ||
[^1]: _"Contact" image source_: [Image by pch.vector](https://www.freepik.com/free-vector/contact-concept-landing-page_5155590.htm#page=5&query=contact%20cartoon&position=6&from_view=search&track=ais) on Freepik |
Oops, something went wrong.
Oops, something went wrong.
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.
has the slack channel become internal? so just part of onboarding and maybe not needed here
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.
This is an interesting question.
Not sure, but probably it is. I would also not include it here.
@KAUR1984 @heidinett any thoughts?