forked from keptn-sandbox/lifecycle-toolkit-docs
-
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.
removign content and adding linters Signed-off-by: Simon Schrottner <[email protected]>
- Loading branch information
Showing
245 changed files
with
407 additions
and
10,193 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: HtmlTest | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- '[0-9]+.[1-9][0-9]*.x' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- '[0-9]+.[1-9][0-9]*.x' | ||
|
||
jobs: | ||
htmltest: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Cache HTMLTest packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
docs/tmp/.htmltest | ||
key: ${{ runner.os }}-htmltest | ||
|
||
- name: Cache Hugo packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
docs/tmp/.hugo | ||
key: ${{ runner.os }}-hugo | ||
|
||
- name: Check HTML | ||
run: make htmltest |
This file was deleted.
Oops, something went wrong.
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,48 @@ | ||
name: Markdown checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- '[0-9]+.[1-9][0-9]*.x' | ||
paths: | ||
- '**.md' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- '[0-9]+.[1-9][0-9]*.x' | ||
paths: | ||
- '**.md' | ||
|
||
env: | ||
GO_VERSION: "~1.19" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
markdown-lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run TOC generation | ||
run: | | ||
FILES=`find . -type f -name '*.md' -not -path './.github/*' -not -path './node_modules/*' | sort` | ||
for f in $FILES; do | ||
if grep -q '<!-- tocstop -->' $$f; then | ||
echo "Checking TOC for ${f}"; | ||
npx markdown-toc --no-first-h1 --no-stripHeadingTags -i ${f} || exit 1; | ||
else | ||
echo Skipping ${f}; | ||
fi; | ||
done | ||
- name: Check TOC | ||
run: | | ||
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) | ||
- name: Lint Markdown files | ||
run: make 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/public/ | ||
/data/ | ||
/node_modules/ | ||
/tmp |
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,8 @@ | ||
--- | ||
CheckDoctype: false | ||
IgnoreDirs: | ||
- favicons | ||
IgnoreURLs: | ||
- "linkedin.com" | ||
- "localhost" | ||
StripQueryString: 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,20 @@ | ||
config: | ||
line-length: | ||
line_length: 120 | ||
tables: false | ||
code_blocks: false | ||
no-inline-html: | ||
allowed_elements: | ||
- details | ||
- summary | ||
github-admonition: true | ||
max-one-sentence-per-line: true | ||
|
||
customRules: | ||
- "./rules/admonition.js" | ||
- "./rules/max-one-sentence-per-line.js" | ||
|
||
ignores: | ||
- "CHANGELOG.md" | ||
- "node_modules" | ||
- "tmp" |
Oops, something went wrong.