Skip to content

Commit

Permalink
Merge pull request #1 from l10178/doks
Browse files Browse the repository at this point in the history
change hugo theme to doks
  • Loading branch information
l10178 authored Mar 9, 2024
2 parents 5d4ae70 + 0cb9be7 commit 6c497e8
Show file tree
Hide file tree
Showing 277 changed files with 8,414 additions and 2,461 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
assets/js/bootstrap.js
node_modules
31 changes: 31 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-console": 0,
"quotes": ["error", "single"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
]
}
}
55 changes: 0 additions & 55 deletions .github/workflows/docker-nightly.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/docker-release.yml

This file was deleted.

35 changes: 20 additions & 15 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,26 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Checkout
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.80.0'
- name: Install dependencies
run: npm install

- name: Build
run: hugo --minify --baseURL https://l10178.github.io/idaas-book/
- name: Run linters
run: npm run lint --if-present

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
- name: Build site
run: npm run build

- name: Deploy github pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: www.nxest.com
36 changes: 21 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
######################
## Hugo
#######################
public/
Thumbs.db
.DS_Store
.dist
.tmp
.lock
.sass-cache
.eslintcache
.stylelintcache
.netlify
.hugo_build.lock
# hugo_stats.json is necessary for doks
# hugo_stats.json
node_modules
public
resources
package-lock.json
# pnpm-lock.yaml

######################
## Intellij
#######################
.idea/
*.iml

#######################
## Visual Studio Code
#######################
.vscode/
.gradle/
.idea
.vscode
.impl
*.log
15 changes: 15 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"config": {
"default": true,
"MD013": false,
"MD022": false,
"MD024": false,
"MD025": false,
"MD026": false,
"MD032": false,
"MD033": false,
"MD034": false,
"MD036": false
},
"ignores": ["node_modules", "CHANGELOG.md", "README.md"]
}
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
enable-pre-post-scripts=true
auto-install-peers=true
node-linker=hoisted
prefer-symlinked-executables=false
17 changes: 0 additions & 17 deletions .prettierrc.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
assets/scss/common/_variables-custom.scss
assets/scss/common/_variables-docsearch.scss
node_modules
40 changes: 40 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"no-empty-source": null,
"scss/comment-no-empty": null,
"max-line-length": null,
"scss/at-extend-no-missing-placeholder": null,
"color-function-notation": "legacy",
"alpha-value-notation": "number",
"selector-class-pattern": null,
"media-feature-range-notation": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"extend",
"at-root",
"debug",
"warn",
"error",
"if",
"else",
"for",
"each",
"while",
"mixin",
"include",
"content",
"return",
"function",
"tailwind",
"apply",
"responsive",
"variants",
"screen"
]
}
]
}
}
2 changes: 0 additions & 2 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit 6c497e8

Please sign in to comment.