-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5af330
commit 57e9295
Showing
10 changed files
with
393 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Check that all links are valid, i.e. not broken | ||
name: Check links | ||
|
||
# Check links on the 21st day of the month. | ||
# 21st as the first letter of this repo is the 21st letter in the alphabet. | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 21 * *" | ||
|
||
|
||
jobs: | ||
check-links: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# The link checker will only work if mlc_config.json is a valid JSON | ||
- name: Validate JSON | ||
uses: docker://orrosenblatt/validate-json-action:latest | ||
env: | ||
INPUT_SCHEMA: .github/workflows/valid_json_schema.json | ||
INPUT_JSONS: mlc_config.json | ||
|
||
# These are status code that cannot be ignored. | ||
# | ||
# If there is a valid external link that fails, | ||
# add it to mlc_config.json | ||
- name: External links must be checked, do not allow '0' in the 'aliveStatusCodes' of mlc_config.json | ||
run: if [[ $(grep --regexp "[^0-9]0[^0-9]" mlc_config.json | wc --lines) == "1" ]]; then echo "FOUND"; exit 42; fi | ||
|
||
- name: Internal links must checked, do not allow '400' in the 'aliveStatusCodes' of mlc_config.json | ||
run: if [[ $(grep --regexp "[^0-9]400[^0-9]" mlc_config.json | wc --lines) == "1" ]]; then echo "FOUND"; exit 42; fi | ||
|
||
|
||
# For an indented block, a link to a broken image is ignored, as the link checker assumes it to be code. | ||
# In our case, it is not: for us, it is usually an admonition (i.e. a 'question' or 'info' block) | ||
# Here all indented text is unindented | ||
# https://github.com/UPPMAX/UPPMAX-documentation/issues/114 | ||
- name: unindent text | ||
run: ./scripts/unindent_text.sh | ||
|
||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
config-file: 'mlc_config.json' | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'no' | ||
|
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,44 @@ | ||
# Check that there is correct markdown in all files | ||
name: Check markdown | ||
|
||
# Check spelling on the 21st day of the month. | ||
# 21st as the first letter of this repo is the 21st letter in the alphabet. | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 21 * *" | ||
|
||
jobs: | ||
check_markdown: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
|
||
- name: Set up Git repository | ||
uses: actions/checkout@v4 | ||
|
||
# Indented blocks are ignored, as the linter assumes it to be code. | ||
# In our case, it is not: for us, it is usually an admonition (i.e. a 'question' or 'info' block) | ||
# Here all indented text is unindented | ||
# https://github.com/UPPMAX/UPPMAX-documentation/issues/114 | ||
- name: unindent text | ||
run: ./scripts/unindent_text.sh | ||
|
||
- uses: articulate/actions-markdownlint@v1 | ||
with: | ||
config: .markdownlint.jsonc | ||
ignore: .markdownlintignore | ||
|
||
# There are many linters with the same name, | ||
# this is the linter whose documentation to look into :-) | ||
- name: CLI to the linter is at https://github.com/igorshubovych/markdownlint-cli | ||
run: echo "CLI to the linter is at https://github.com/igorshubovych/markdownlint-cli" | ||
|
||
# There are many linters with the same name, | ||
# this is the linter whose documentation to look into :-) | ||
- name: Linter is at https://github.com/DavidAnson/markdownlint | ||
run: echo "Linter is at https://github.com/DavidAnson/markdownlint" | ||
|
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,30 @@ | ||
# Check that there is correct spelling in all files | ||
name: Check spelling | ||
|
||
# Check spelling on the 21st day of the month. | ||
# 21st as the first letter of this repo is the 21st letter in the alphabet. | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 21 * *" | ||
|
||
|
||
jobs: | ||
check_spelling: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
|
||
- name: Set up Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Do not check raw evaluation results | ||
run: rm evaluations/20240827/survey_feedback.md | ||
|
||
- uses: igsekor/[email protected] | ||
|
||
|
||
|
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,6 @@ | ||
{ | ||
"properties": { | ||
"foo": { "type": "string" }, | ||
"bar": { "type": "number" } | ||
} | ||
} |
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,43 @@ | ||
// Example markdownlint configuration with all properties set to their default value | ||
{ | ||
|
||
// Default state for all rules | ||
"default": true, | ||
|
||
// MkDocs assumes 4 spaces for indentation. | ||
// Markdown assumes 4 spaces for indentation. | ||
// That markdownlint has a different default is the error of markdownlint | ||
"MD007": { "indent": 4 }, | ||
|
||
// Standard markdown does not allow for two correct consecutive blank lines | ||
// i an admonitions (a.o. the 'question' admonition): | ||
// | ||
// ???- question "A question" | ||
// | ||
// ``` | ||
// echo "indented code here :-) | ||
// ```` | ||
// [blank line 1 here] | ||
// [blank line 2 here] | ||
// | ||
// Hence we allow 2 consecutive blank lines | ||
// | ||
"MD012": { | ||
// Consecutive blank lines, CHANGED FROM 1 | ||
"maximum": 2 | ||
}, | ||
|
||
// Standard markdown does not allow for valid indent code like this: | ||
// | ||
// ???- question "A question" | ||
// | ||
// ``` | ||
// echo "indented code here :-) | ||
// ```` | ||
// | ||
// Hence we allow valid indented code. | ||
// | ||
// MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md046.md | ||
"MD046": false | ||
|
||
} |
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,3 @@ | ||
docs/index.md | ||
docs/software/software-table.md | ||
evaluations/**/*_feedback.md |
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,45 @@ | ||
matrix: | ||
- name: markdown | ||
dictionary: | ||
wordlists: | ||
- .wordlist.txt | ||
output: wordlist.dic | ||
encoding: utf-8 | ||
pipeline: | ||
- pyspelling.filters.markdown: | ||
markdown_extensions: | ||
- markdown.extensions.extra: | ||
- pyspelling.filters.html: | ||
comments: true | ||
attributes: | ||
- alt | ||
ignores: | ||
- ':matches(code, pre)' | ||
- 'code' | ||
- 'pre' | ||
- 'blockquote' | ||
sources: | ||
- '**/*.md' | ||
default_encoding: utf-8 | ||
- name: Quarto markdown | ||
dictionary: | ||
wordlists: | ||
- .wordlist.txt | ||
output: wordlist.dic | ||
encoding: utf-8 | ||
pipeline: | ||
- pyspelling.filters.markdown: | ||
markdown_extensions: | ||
- markdown.extensions.extra: | ||
- pyspelling.filters.html: | ||
comments: true | ||
attributes: | ||
- alt | ||
ignores: | ||
- ':matches(code, pre)' | ||
- 'code' | ||
- 'pre' | ||
- 'blockquote' | ||
sources: | ||
- '**/*.md' | ||
default_encoding: utf-8 |
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,124 @@ | ||
Richel | ||
Richèl | ||
UPPMAX | ||
config | ||
Dardel | ||
github | ||
html | ||
https | ||
json | ||
jsonc | ||
linter | ||
markdownlint | ||
markdownlintignore | ||
mlc | ||
Servicedesk | ||
txt | ||
uppmax | ||
Uppsala | ||
UU | ||
wordlist | ||
yml | ||
Awk | ||
bianca | ||
bilderbeek | ||
Bioinformatics | ||
BSc | ||
CentOS | ||
Centre | ||
clustername | ||
Codecademy | ||
CodeRefinery | ||
Conda | ||
CPUs | ||
dataset | ||
emacs | ||
ENCCS | ||
EuroCC | ||
faq | ||
FileZilla | ||
formalisms | ||
GDPR | ||
gedit | ||
genomic | ||
GPUs | ||
gvim | ||
HPC | ||
icm | ||
MSc | ||
NAISS | ||
naiss | ||
nano | ||
NGI | ||
personuppgifter | ||
Rackham | ||
RedHat | ||
richel | ||
scp | ||
se | ||
sexualized | ||
Skydd | ||
Slurm | ||
SNIC | ||
snic | ||
socio | ||
Sunet | ||
SUNET | ||
SUPR | ||
supr | ||
Swegen | ||
ThinLinc | ||
Transfering | ||
uu | ||
VPN | ||
www | ||
Bourne | ||
cd | ||
chmod | ||
Crex | ||
Deamons | ||
docx | ||
Domus | ||
Lutra | ||
MacOS | ||
Miarka | ||
Nvidia | ||
rackham | ||
Richèl's | ||
subdirectories | ||
tmp | ||
Vulpes | ||
connectivist | ||
cowsay | ||
distros | ||
Easybuild | ||
et | ||
filesystem | ||
hdd | ||
linuxjourney | ||
macbook | ||
marcusl | ||
multiuser | ||
Nextflow | ||
pre | ||
Rackham's | ||
reproducibility | ||
RStudio | ||
Spack | ||
tcsh | ||
Thunar | ||
VSCode | ||
VSCodium | ||
webbrowser | ||
wikipedia | ||
IDEs | ||
slurm | ||
bioinformaticians | ||
filezilla | ||
ide | ||
mins | ||
|
||
|
||
|
||
|
||
|
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
Oops, something went wrong.