-
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.
Merge pull request #60 from 3mdeb/SEO_CI
SEO CI
- Loading branch information
Showing
102 changed files
with
1,127 additions
and
475 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,3 @@ | ||
[codespell] | ||
skip = *.svg,*.pl.md,themes/3mbed/assets/*.js | ||
ignore-words-list = "doubleclick" |
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,16 @@ | ||
--- | ||
policies: | ||
- type: commit | ||
spec: | ||
header: | ||
length: 80 | ||
imperative: false | ||
invalidLastCharacters: . | ||
body: | ||
required: false | ||
dco: true | ||
gpg: | ||
required: true | ||
spellcheck: | ||
locale: US | ||
maximumOfOneCommit: 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: GitHub Pages | ||
|
||
on: | ||
|
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,102 @@ | ||
--- | ||
name: SEO CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
linkChecker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Link Checker | ||
id: lychee | ||
uses: lycheeverse/[email protected] | ||
with: | ||
fail: true | ||
args: --max-redirects 10 -a 403,500,503 . | ||
|
||
seo_spy_orphan_pages: | ||
runs-on: ubuntu-latest | ||
name: Check orphan pages | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Checkout SEO Spy | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 3mdeb/seo-spy | ||
path: seo-spy | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r seo-spy/requirements.txt | ||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
extended: true | ||
|
||
- name: Serve site | ||
run: | | ||
npm install postcss-cli | ||
hugo | ||
hugo serve -b http://localhost:1313 --bind=0.0.0.0 & | ||
- name: Check orphan pages | ||
uses: 3mdeb/seo-spy-action@main | ||
with: | ||
domain: 'http://localhost:1313' | ||
|
||
seo_spy_canonical_links: | ||
runs-on: ubuntu-latest | ||
name: Check canonical links | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Checkout SEO Spy | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 3mdeb/seo-spy | ||
path: seo-spy | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r seo-spy/requirements.txt | ||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
extended: true | ||
|
||
- name: Serve site | ||
run: | | ||
npm install postcss-cli | ||
hugo | ||
hugo serve -b http://localhost:1313 --bind=0.0.0.0 & | ||
- name: Check canonical links | ||
uses: 3mdeb/seo-spy-action@main | ||
with: | ||
domain: 'http://localhost:1313' | ||
args: '-c' |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ resources | |
*.lock | ||
jsconfig.json | ||
hugo_stats.json | ||
go.sum | ||
go.sum |
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 @@ | ||
themes/3mbed/layouts/ | ||
http://localhost:1313/ | ||
https://www.embedded-world.de/en/all-about-the-exhibition | ||
.sales | ||
https://twitter.com/dwizzzleMSFT |
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,34 @@ | ||
--- | ||
# MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading | ||
MD041: | ||
# Heading level | ||
level: 1 | ||
# RegExp for matching title in front matter | ||
front_matter_title: "^\\s*title\\s*[:=]" | ||
|
||
# MD042/no-empty-links - No empty links | ||
MD042: true | ||
|
||
# MD046/code-block-style - Code block style | ||
# MD046: Rule temporarily disabled, it prevents new tabs from being formatted | ||
# correctly - eg. docs/unified/novacustom/overview.md:9 | ||
# Block style | ||
# style: "fenced" | ||
|
||
# MD047/single-trailing-newline - Files should end with a single newline character | ||
MD047: true | ||
|
||
# MD048/code-fence-style - Code fence style | ||
MD048: | ||
# Code fence style | ||
style: "backtick" | ||
|
||
# MD049/emphasis-style - Emphasis style should be consistent | ||
MD049: | ||
# Emphasis style should be consistent | ||
style: "underscore" | ||
|
||
# MD050/strong-style - Strong style should be consistent | ||
MD050: | ||
# Strong style should be consistent | ||
style: "asterisk" |
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,54 @@ | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
|
||
- repo: https://github.com/adrienverge/yamllint | ||
rev: v1.32.0 | ||
hooks: | ||
- id: yamllint | ||
args: [-c=.yamllint] | ||
|
||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.34.0 | ||
hooks: | ||
- id: markdownlint | ||
- id: markdownlint-fix | ||
|
||
- repo: https://github.com/talos-systems/conform | ||
rev: v0.1.0-alpha.27 | ||
hooks: | ||
- id: conform | ||
stages: | ||
- commit-msg | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell | ||
|
||
- repo: local | ||
hooks: | ||
- id: double_slashes_url_external | ||
name: Check double slashes in external URLs | ||
entry: https?:\/\/[^\s]*(?<!http:)((?<!https:)\/\/).* | ||
language: pygrep | ||
exclude: '^.*.(jpeg|jpg|png|pdf)$' | ||
- id: double_slashes_url_markdown | ||
name: Check double slashes in markdown URLs | ||
entry: (\:\s|\()[^\s]*(?<!http:)((?<!https:)\/\/) | ||
language: pygrep | ||
exclude: '^.*.(jpeg|jpg|png|pdf)$' | ||
|
||
ci: | ||
autoupdate_commit_msg: 'pre-commit: autoupdate hooks' | ||
autofix_prs: 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,16 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
comments: | ||
require-starting-space: true | ||
ignore-shebangs: true | ||
min-spaces-from-content: 2 | ||
document-start: | ||
present: true | ||
level: error | ||
indentation: | ||
spaces: 2 | ||
line-length: disable | ||
truthy: | ||
check-keys: 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -251,4 +251,4 @@ weight = 10 | |
[[footer]] | ||
name = "Contact Us" | ||
url = "/contact/" | ||
weight = 15 | ||
weight = 15 |
Oops, something went wrong.