mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-21 20:30:39 +00:00
use list style synatx and cleanup (#752)
This commit is contained in:
parent
cf6c227026
commit
8322ac05dd
@ -6,31 +6,29 @@ when:
|
|||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
assets:
|
- name: assets
|
||||||
image: docker.io/library/node:lts
|
image: docker.io/library/node:lts
|
||||||
commands:
|
commands:
|
||||||
- git fetch --depth=2147483647
|
- git fetch --depth=2147483647
|
||||||
- npm install > /dev/null
|
- npm install --quiet --no-progress
|
||||||
- npm run build
|
- npm run build
|
||||||
- cat VERSION
|
- cat VERSION
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: "true"
|
FORCE_COLOR: "true"
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
|
|
||||||
package:
|
- name: package
|
||||||
image: docker.io/library/node:lts
|
image: docker.io/library/node:lts
|
||||||
commands:
|
commands:
|
||||||
- npm run pack
|
- npm run pack
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: "true"
|
FORCE_COLOR: "true"
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
|
|
||||||
checksum:
|
- name: checksum
|
||||||
image: quay.io/thegeeklab/alpine-tools
|
image: quay.io/thegeeklab/alpine-tools
|
||||||
commands:
|
commands:
|
||||||
- cd dist/ && sha256sum * > ../sha256sum.txt
|
- cd dist/ && sha256sum * > ../sha256sum.txt
|
||||||
|
|
||||||
changelog:
|
- name: changelog
|
||||||
image: quay.io/thegeeklab/git-sv
|
image: quay.io/thegeeklab/git-sv
|
||||||
commands:
|
commands:
|
||||||
- git fetch --depth=2147483647
|
- git fetch --depth=2147483647
|
||||||
@ -38,7 +36,7 @@ steps:
|
|||||||
- git sv release-notes -t ${CI_COMMIT_TAG:-next} -o CHANGELOG.md
|
- git sv release-notes -t ${CI_COMMIT_TAG:-next} -o CHANGELOG.md
|
||||||
- cat CHANGELOG.md
|
- cat CHANGELOG.md
|
||||||
|
|
||||||
publish-github:
|
- name: publish-github
|
||||||
image: docker.io/plugins/github-release
|
image: docker.io/plugins/github-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
|
@ -6,23 +6,22 @@ when:
|
|||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
markdownlint:
|
- name: markdownlint
|
||||||
image: quay.io/thegeeklab/markdownlint-cli
|
image: quay.io/thegeeklab/markdownlint-cli
|
||||||
commands:
|
commands:
|
||||||
- markdownlint 'exampleSite/content/**/*.md' 'README.md' 'CONTRIBUTING.md'
|
- markdownlint 'exampleSite/content/**/*.md' 'README.md' 'CONTRIBUTING.md'
|
||||||
|
|
||||||
spellcheck:
|
- name: spellcheck
|
||||||
image: quay.io/thegeeklab/alpine-tools
|
image: quay.io/thegeeklab/alpine-tools
|
||||||
commands:
|
commands:
|
||||||
- spellchecker --files 'exampleSite/content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title
|
- spellchecker --files 'exampleSite/content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: "true"
|
FORCE_COLOR: "true"
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
|
|
||||||
assets:
|
- name: assets
|
||||||
image: docker.io/library/node:lts
|
image: docker.io/library/node:lts
|
||||||
commands:
|
commands:
|
||||||
- npm install > /dev/null
|
- npm install --quiet --no-progress
|
||||||
- npm run svg-sprite-list
|
- npm run svg-sprite-list
|
||||||
- mkdir -p exampleSite/themes/${CI_REPO_NAME}
|
- mkdir -p exampleSite/themes/${CI_REPO_NAME}
|
||||||
- curl -sSL https://github.com/${CI_REPO}/releases/latest/download/${CI_REPO_NAME}.tar.gz | tar -xz -C exampleSite/themes/${CI_REPO_NAME}/ --strip-components=1
|
- curl -sSL https://github.com/${CI_REPO}/releases/latest/download/${CI_REPO_NAME}.tar.gz | tar -xz -C exampleSite/themes/${CI_REPO_NAME}/ --strip-components=1
|
||||||
@ -32,33 +31,34 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
assets-main:
|
- name: assets-main
|
||||||
image: docker.io/library/node:lts
|
image: docker.io/library/node:lts
|
||||||
commands:
|
commands:
|
||||||
- npm install > /dev/null
|
- npm install --quiet --no-progress
|
||||||
- npm run build
|
- npm run build
|
||||||
- npm run svg-sprite-list
|
- npm run svg-sprite-list
|
||||||
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/${CI_REPO_NAME}
|
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/${CI_REPO_NAME}
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: "true"
|
FORCE_COLOR: "true"
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
when:
|
when:
|
||||||
- event: [pull_request]
|
- event: [pull_request]
|
||||||
|
|
||||||
build:
|
- name: build
|
||||||
image: quay.io/thegeeklab/hugo:0.115.2
|
image: quay.io/thegeeklab/hugo:0.115.2
|
||||||
commands:
|
commands:
|
||||||
|
# Fetch is used to get the full git history.
|
||||||
|
# Required for Hugos git metadata integration.
|
||||||
|
- git fetch --depth=2147483647
|
||||||
- hugo --panicOnWarning -s exampleSite/
|
- hugo --panicOnWarning -s exampleSite/
|
||||||
|
|
||||||
beautify:
|
- name: beautify
|
||||||
image: quay.io/thegeeklab/alpine-tools
|
image: quay.io/thegeeklab/alpine-tools
|
||||||
commands:
|
commands:
|
||||||
- html-beautify -r -f 'exampleSite/public/**/*.html'
|
- html-beautify -r -f 'exampleSite/public/**/*.html'
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: "true"
|
FORCE_COLOR: "true"
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
|
|
||||||
publish:
|
- name: publish
|
||||||
image: quay.io/thegeeklab/wp-s3-action
|
image: quay.io/thegeeklab/wp-s3-action
|
||||||
settings:
|
settings:
|
||||||
access_key:
|
access_key:
|
||||||
@ -77,6 +77,7 @@ steps:
|
|||||||
- event: [push, manual]
|
- event: [push, manual]
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
status: [success, failure]
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-package
|
- build-package
|
||||||
|
@ -8,7 +8,7 @@ when:
|
|||||||
runs_on: [success, failure]
|
runs_on: [success, failure]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
matrix:
|
- name: matrix
|
||||||
image: quay.io/thegeeklab/wp-matrix
|
image: quay.io/thegeeklab/wp-matrix
|
||||||
settings:
|
settings:
|
||||||
homeserver:
|
homeserver:
|
||||||
|
@ -6,43 +6,41 @@ when:
|
|||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
eslint:
|
- name: eslint
|
||||||
image: docker.io/library/node:lts
|
image: docker.io/library/node:lts
|
||||||
commands:
|
commands:
|
||||||
- npm install > /dev/null
|
- npm install --quiet --no-progress
|
||||||
- npm run lint
|
- npm run lint
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: "true"
|
FORCE_COLOR: "true"
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
|
|
||||||
assets:
|
- name: assets
|
||||||
image: docker.io/library/node:lts
|
image: docker.io/library/node:lts
|
||||||
commands:
|
commands:
|
||||||
- npm install > /dev/null
|
- npm install --quiet --no-progress
|
||||||
- npm run build
|
- npm run build
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: "true"
|
FORCE_COLOR: "true"
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
|
|
||||||
testbuild:
|
- name: testbuild
|
||||||
image: quay.io/thegeeklab/hugo:0.115.2
|
image: quay.io/thegeeklab/hugo:0.115.2
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/${CI_REPO_NAME}
|
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/${CI_REPO_NAME}
|
||||||
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
|
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
|
||||||
|
|
||||||
html-validation:
|
- name: html-validation
|
||||||
image: quay.io/thegeeklab/vnu
|
image: quay.io/thegeeklab/vnu
|
||||||
group: test
|
group: test
|
||||||
commands:
|
commands:
|
||||||
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
|
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
|
||||||
|
|
||||||
link-validation:
|
- name: link-validation
|
||||||
image: docker.io/lycheeverse/lychee
|
image: docker.io/lycheeverse/lychee
|
||||||
group: test
|
group: test
|
||||||
commands:
|
commands:
|
||||||
- lychee --no-progress --format detailed exampleSite/content/ README.md
|
- lychee --no-progress --format detailed exampleSite/content/ README.md
|
||||||
|
|
||||||
page-validation:
|
- name: page-validation
|
||||||
image: quay.io/thegeeklab/lhci:0.12
|
image: quay.io/thegeeklab/lhci:0.12
|
||||||
group: test
|
group: test
|
||||||
commands:
|
commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user