-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #679 from ACCESS-NRI/davide/link_checker
Changed entire website to Markdown + new link checker
- Loading branch information
Showing
51 changed files
with
1,587 additions
and
1,780 deletions.
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.