Skip to content

Commit 12f1e7f

Browse files
committed
Complete Vale configuration
1 parent 989c7bd commit 12f1e7f

File tree

11 files changed

+93
-7638
lines changed

11 files changed

+93
-7638
lines changed

.github/workflows/linting.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1818
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
1919
- run: npm install --only=dev
20+
- name: Install custom mdx2vast for MDX directive vale support
21+
run: npm install -g https://github.com/edmundmiller/mdx2vast.git
2022
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
2123
vale:
2224
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ repos:
1313
rev: v3.7.1
1414
hooks:
1515
- id: vale
16-
args: ["--config=.vale.ini"]
17-
files: \.(md|mdx)$
16+
name: vale sync
17+
pass_filenames: false
18+
args: [sync]
19+
- id: vale
20+
args: [--output=line, --minAlertLevel=error]

.vale.ini

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ MinAlertLevel = warning
44
Packages = MDX, https://github.com/nf-core/vale/releases/latest/download/nf-core.zip
55
Vocab = Docs
66

7+
# Ignore API reference documentation (auto-generated)
8+
IgnoredPaths = sites/docs/src/content/api_reference/*, sites/main-site/src/content/events/*
9+
710
# Global settings for all Markdown and MDX files
811
[*.{md,mdx}]
912
BasedOnStyles = nf-core, Vale
@@ -20,16 +23,6 @@ nf-core.We = NO
2023
BasedOnStyles = nf-core, Vale
2124
Vale.Spelling = NO
2225

23-
# Events - more relaxed rules for community content
24-
[sites/main-site/src/content/events/**/*.md]
25-
BasedOnStyles = nf-core, Vale
26-
Vale.Spelling = NO
27-
nf-core.We = NO
28-
nf-core.SeqeraLabs = NO
29-
30-
# 2024 events - granular exception for historical content
31-
[sites/main-site/src/content/events/2024/**/*.md]
32-
nf-core.SeqeraLabs = YES
3326

3427
# Component and pipeline pages
3528
[sites/modules-subworkflows/src/content/**/*.{md,mdx}]
@@ -44,3 +37,14 @@ Vale.Spelling = NO
4437
[sites/configs/src/content/**/*.{md,mdx}]
4538
BasedOnStyles = nf-core, Vale
4639
Vale.Spelling = NO
40+
41+
# Events - more relaxed rules for community content
42+
[sites/main-site/src/content/events/**/*.md]
43+
BasedOnStyles = nf-core, Vale
44+
Vale.Spelling = NO
45+
nf-core.We = NO
46+
nf-core.SeqeraLabs = NO
47+
48+
# 2024 events - granular exception for historical content
49+
[sites/main-site/src/content/events/2024/**/*.md]
50+
nf-core.SeqeraLabs = YES

.vscode/extensions.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"recommendations": [
3+
// Documentation and linting
4+
"errata-ai.vale-server",
5+
"davidanson.vscode-markdownlint",
6+
"streetsidesoftware.code-spell-checker",
7+
8+
// Formatting and Prettier
9+
"esbenp.prettier-vscode",
10+
11+
// Astro and web development
12+
"astro-build.astro-vscode",
13+
"bradlc.vscode-tailwindcss",
14+
15+
// YAML and configuration files
16+
"redhat.vscode-yaml",
17+
18+
// Git and version control
19+
"eamodio.gitlens",
20+
21+
// Commitizen support
22+
"commitizen.git-conventional-commits",
23+
24+
// Link checking (if available)
25+
"tchayen.markdown-links"
26+
],
27+
"unwantedRecommendations": []
28+
}

.vscode/settings.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
{
22
"markdown.styles": [
33
"public/vscode_markdown.css"
4-
]
4+
],
5+
6+
"// Documentation linting and formatting": "",
7+
"vale.valeCLI.config": ".vale.ini",
8+
"vale.valeCLI.path": "vale",
9+
"vale.core.useCLI": true,
10+
11+
"[markdown]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode",
13+
"editor.formatOnSave": true,
14+
"editor.rulers": [120],
15+
"editor.wordWrap": "wordWrapColumn",
16+
"editor.wordWrapColumn": 120
17+
},
18+
19+
"// MDX settings": "",
20+
"[mdx]": {
21+
"editor.defaultFormatter": "esbenp.prettier-vscode",
22+
"editor.formatOnSave": true,
23+
"editor.rulers": [120],
24+
"editor.wordWrap": "wordWrapColumn",
25+
"editor.wordWrapColumn": 120
26+
},
27+
28+
"// YAML settings": "",
29+
"[yaml]": {
30+
"editor.defaultFormatter": "esbenp.prettier-vscode",
31+
"editor.formatOnSave": true,
32+
"editor.insertSpaces": true,
33+
"editor.tabSize": 2
34+
},
35+
36+
"// Astro settings": "",
37+
"[astro]": {
38+
"editor.defaultFormatter": "esbenp.prettier-vscode",
39+
"editor.formatOnSave": true
40+
},
41+
42+
"// File explorer": "",
43+
"files.exclude": {
44+
"**/node_modules": true,
45+
"**/dist": true,
46+
"**/.astro": true
47+
}
548
}

mdx2vast/README.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

mdx2vast/bin/cli.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

mdx2vast/bin/lib.js

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)