-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed markdownlint configuration. I did not manage to make it check…
… markdown files in GitLab Runner :-(
- Loading branch information
Showing
99 changed files
with
4,472 additions
and
3,711 deletions.
There are no files selected for viewing
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,4 @@ | ||
{ | ||
"parserOptions": { "ecmaVersion": 2017 }, | ||
"env": { "es6": true } | ||
} |
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,9 +1,3 @@ | ||
build/ | ||
.bundle | ||
.cache | ||
.DS_Store | ||
node_modules/ | ||
public/ | ||
.sass-cache | ||
.tmp/ | ||
tmp/ | ||
resources/ |
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,63 +1,81 @@ | ||
image: ruby:2.7.2 | ||
# .gitlab-ci.yml - See https://docs.gitlab.com/ee/ci/yaml | ||
|
||
variables: | ||
BUNDLE_DEPLOYMENT: "true" | ||
BUNDLE_FROZEN: "true" | ||
DEBIAN_FRONTEND: "noninteractive" | ||
NO_CONTRACTS: "true" | ||
RUBY_NODEJS_IMAGE: "${CI_REGISTRY_IMAGE}/ruby-nodejs:${CI_COMMIT_REF_SLUG}" | ||
GIT_DEPTH: "3" | ||
GIT_SUBMODULE_STRATEGY: "recursive" | ||
|
||
ruby_nodejs: | ||
stage: build | ||
stages: | ||
- build | ||
- lint | ||
- test | ||
- deploy | ||
|
||
.hugo: | ||
# Hugo container images in GitLab Container Registry: https://gitlab.com/pages/hugo/container_registry | ||
# image: registry.gitlab.com/pages/hugo:latest | ||
# Hugo container image including Node.js for the webpacker asset pipeline | ||
image: | ||
name: gcr.io/kaniko-project/executor:debug | ||
name: klakegg/hugo:ext-alpine | ||
entrypoint: [""] | ||
script: | ||
- mkdir -p /kaniko/.docker | ||
- printf '{"auths":{"%s":{"username":"%s","password":"%s"}}}\n' "${CI_REGISTRY}" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" > /kaniko/.docker/config.json | ||
- /kaniko/executor --cache --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${RUBY_NODEJS_IMAGE}" | ||
rules: | ||
- changes: | ||
- Dockerfile | ||
- .dockerignore | ||
|
||
.middleman: | ||
image: ${RUBY_NODEJS_IMAGE} | ||
before_script: | ||
- ruby --version | ||
- bundle --version | ||
- node --version | ||
- npm --version | ||
- ./bin/setup | ||
cache: | ||
paths: | ||
- node_modules | ||
- public | ||
- vendor | ||
- resources | ||
|
||
test_build: | ||
extends: .middleman | ||
build: | ||
extends: .hugo | ||
stage: build | ||
script: | ||
- npm install | ||
|
||
hugo: | ||
extends: .hugo | ||
stage: test | ||
script: | ||
- bundle exec middleman build --build-dir=build | ||
artifacts: | ||
paths: | ||
- build | ||
except: | ||
- main | ||
- master | ||
- hugo | ||
rules: | ||
- if: '"$${CI_DEFAULT_BRANCH}" != "${CI_COMMIT_BRANCH}"' | ||
|
||
pages: | ||
extends: .hugo | ||
stage: deploy | ||
extends: .middleman | ||
script: | ||
- bundle exec middleman build | ||
- hugo | ||
artifacts: | ||
paths: | ||
- public | ||
environment: | ||
name: pages | ||
url: https://quatauta.gitlab.io/ | ||
only: | ||
- main | ||
- master | ||
rules: | ||
- if: '"$${CI_DEFAULT_BRANCH}" == "${CI_COMMIT_BRANCH}"' | ||
|
||
eslint: | ||
stage: lint | ||
image: pipelinecomponents/eslint:latest | ||
before_script: | ||
- touch dummy.js | ||
script: | ||
- eslint $( [[ -e .eslintrc ]] || echo '--no-eslintrc' ) --color . | ||
|
||
markdownlint: | ||
stage: lint | ||
image: | ||
name: thegeeklab/markdownlint-cli:latest | ||
entrypoint: ["/bin/ash", "-c"] | ||
script: | ||
- markdownlint-cli . | ||
|
||
stylelint: | ||
stage: lint | ||
image: pipelinecomponents/stylelint:latest | ||
script: | ||
- stylelint --color '**/*.css' | ||
rules: | ||
- allow_failure: true | ||
|
||
yamllint: | ||
stage: lint | ||
image: | ||
name: cytopia/yamllint:latest | ||
entrypoint: ["/bin/ash", "-c"] | ||
script: | ||
- yamllint -f colored . |
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,4 @@ | ||
node_modules/ | ||
public/ | ||
resources/ | ||
themes/ |
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,4 @@ | ||
{ | ||
"default": true, | ||
"MD013": { "line_length": 1000 } | ||
} |
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,8 @@ | ||
# .stylelintrc.yml - See https://stylelint.io/user-guide/configure | ||
|
||
extends: stylelint-config-standard | ||
rules: | ||
color-hex-length: ~ | ||
at-rule-no-unknown: | ||
- true | ||
- { ignoreAtRules: ["screen"] } |
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,13 @@ | ||
# vim:syntax=yaml: | ||
|
||
extends: relaxed | ||
|
||
ignore: | | ||
node_modules/ | ||
public/ | ||
resources/ | ||
rules: | ||
line-length: | ||
max: 200 | ||
level: warning |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,37 +1,7 @@ | ||
# Static Site Editor Template for GitLab Pages | ||
# quatauta.gitlab.io - A hugo static site | ||
|
||
## How to publish the website | ||
This is the source of [quatauta.gitlab.io](https://quatauta.gitlab.io/). It is build with static site generator [Hugo](https://gohugo.io/). The site theme is [Bento](https://github.com/leonardofaria/bento), a minimalist theme for Hugo built with Tailwind CSS. | ||
|
||
1. Edit the [data/config.yml](/data/config.yml) file and update the repository URL by replacing `<username>` with your GitLab username and `<project-name>` with the name of the project you've created. Example: `http://gitlab.com/john/blog`. | ||
1. Commit and push the change to the repository. | ||
1. In GitLab, visit the CI / CD -> Pipelines page for your project (accessible from the left-hand menu). | ||
1. Click on the `Run pipeline` button, if there are no active pipelines running after pushing up your change. | ||
1. Once the the pipeline has successfully finished, open the following URL in your browser: `https://<username>.gitlab.io/<project-name>`. Note that it might take 10-15 minutes before the website becomes available after the first successful pipeline has finished. | ||
## Contributing | ||
|
||
|
||
## How to use the Static Site Editor feature | ||
|
||
1. Open `https://<username>.gitlab.io/<project-name>` link in your browser. | ||
1. Click on `Edit this page` button on the bottom of the website. | ||
1. Use the Static Site Editor to make changes to the content and save the changes by creating a merge request. | ||
1. Merge your merge request to main branch. | ||
1. GitLab CI will automatically apply changes to your website. | ||
|
||
## Local development | ||
|
||
1. Clone this project. | ||
1. Download dependencies: `bundle install`. If you see an error that bundler is missing, then try to run `gem install bundler`. | ||
1. Run the project: `bundle exec middleman`. | ||
1. Open http://localhost:4567 in your browser. | ||
|
||
|
||
## Useful information | ||
|
||
[GitLab Pages default domain names](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_one.html#gitlab-pages-default-domain-names) | ||
|
||
|
||
## Learning Middleman | ||
|
||
* Visit [Middleman website](https://middlemanapp.com) | ||
* Take a look at [the documentation](https://middlemanapp.com/basics/install) | ||
* Explore [the source code](https://github.com/middleman/middleman) | ||
Have you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://gitlab.com/quatauta/quatauta.gitlab.io/-/issues) to let me know. Or do a [pull/merge request](https://gitlab.com/quatauta/quatauta.gitlab.io/-/merge_requests) with your desired changes. |
Oops, something went wrong.