Skip to content

Commit f5f4e04

Browse files
committed
chore: cleanup and improvements
removign content and adding linters Signed-off-by: Simon Schrottner <[email protected]>
1 parent f217b7b commit f5f4e04

File tree

245 files changed

+407
-10193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+407
-10193
lines changed

.github/workflows/htmltest.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: HtmlTest
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- '[0-9]+.[1-9][0-9]*.x'
8+
pull_request:
9+
branches:
10+
- 'main'
11+
- '[0-9]+.[1-9][0-9]*.x'
12+
13+
jobs:
14+
htmltest:
15+
# The type of runner that the job will run on
16+
runs-on: ubuntu-latest
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
- uses: actions/checkout@v3
22+
with:
23+
submodules: true
24+
25+
- name: Cache HTMLTest packages
26+
uses: actions/cache@v3
27+
with:
28+
path: |
29+
docs/tmp/.htmltest
30+
key: ${{ runner.os }}-htmltest
31+
32+
- name: Cache Hugo packages
33+
uses: actions/cache@v3
34+
with:
35+
path: |
36+
docs/tmp/.hugo
37+
key: ${{ runner.os }}-hugo
38+
39+
- name: Check HTML
40+
run: make htmltest

.github/workflows/hugo.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Markdown checks
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- '[0-9]+.[1-9][0-9]*.x'
8+
paths:
9+
- '**.md'
10+
pull_request:
11+
branches:
12+
- 'main'
13+
- '[0-9]+.[1-9][0-9]*.x'
14+
paths:
15+
- '**.md'
16+
17+
env:
18+
GO_VERSION: "~1.19"
19+
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
jobs:
25+
markdown-lint:
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- name: Check out code
29+
uses: actions/checkout@v3
30+
31+
- name: Run TOC generation
32+
run: |
33+
FILES=`find . -type f -name '*.md' -not -path './.github/*' -not -path './node_modules/*' | sort`
34+
for f in $FILES; do
35+
if grep -q '<!-- tocstop -->' $$f; then
36+
echo "Checking TOC for ${f}";
37+
npx markdown-toc --no-first-h1 --no-stripHeadingTags -i ${f} || exit 1;
38+
else
39+
echo Skipping ${f};
40+
fi;
41+
done
42+
43+
- name: Check TOC
44+
run: |
45+
git diff --exit-code '*.md' || (echo "Table of Contents is out of date. Please update the following files: $(git diff --name-status --exit-code)" && exit 1)
46+
47+
- name: Lint Markdown files
48+
run: make markdownlint

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/public/
33
/data/
44
/node_modules/
5+
/tmp

.htmltest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
CheckDoctype: false
3+
IgnoreDirs:
4+
- favicons
5+
IgnoreURLs:
6+
- "linkedin.com"
7+
- "localhost"
8+
StripQueryString: false

.markdownlint-cli2.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
config:
2+
line-length:
3+
line_length: 120
4+
tables: false
5+
code_blocks: false
6+
no-inline-html:
7+
allowed_elements:
8+
- details
9+
- summary
10+
github-admonition: true
11+
max-one-sentence-per-line: true
12+
13+
customRules:
14+
- "./rules/admonition.js"
15+
- "./rules/max-one-sentence-per-line.js"
16+
17+
ignores:
18+
- "CHANGELOG.md"
19+
- "node_modules"
20+
- "tmp"

0 commit comments

Comments
 (0)