Skip to content

Commit ebaf1ef

Browse files
author
Chris
committed
add page
1 parent 2b96a75 commit ebaf1ef

File tree

110 files changed

+17410
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+17410
-0
lines changed

.github/workflows/deployhugo.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# Default to bash
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.108.0
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v3
38+
with:
39+
submodules: recursive
40+
- name: Setup Go
41+
uses: actions/setup-go@v4
42+
with:
43+
go-version: stable
44+
45+
- name: install hugo-obsidian
46+
run: |
47+
go install github.com/breadchris/hugo-obsidian@latest
48+
49+
- name: run hugo-obsidian
50+
run: |
51+
hugo-obsidian -input=site/content/wiki -output=site/assets/indices -index -root=site
52+
53+
- name: Install Hugo CLI
54+
run: |
55+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
56+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
57+
- name: Install Dart Sass Embedded
58+
run: sudo snap install dart-sass-embedded
59+
- name: Setup Pages
60+
id: pages
61+
uses: actions/configure-pages@v3
62+
- name: Install Node.js dependencies
63+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
64+
working-directory: site
65+
66+
- name: Build with Hugo
67+
env:
68+
# For maximum backward compatibility with Hugo modules
69+
HUGO_ENVIRONMENT: production
70+
HUGO_ENV: production
71+
run: |
72+
npm run build
73+
working-directory: site
74+
- name: Upload artifact
75+
uses: actions/upload-pages-artifact@v1
76+
if: success() && github.ref == 'refs/heads/main'
77+
with:
78+
path: ./site/public
79+
80+
# Deployment job
81+
deploy:
82+
if: github.ref == 'refs/heads/main'
83+
environment:
84+
name: github-pages
85+
url: ${{ steps.deployment.outputs.page_url }}
86+
runs-on: ubuntu-latest
87+
needs: build
88+
steps:
89+
- name: Deploy to GitHub Pages
90+
id: deployment
91+
uses: actions/deploy-pages@v2

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
xctf.io

site/.DS_Store

6 KB
Binary file not shown.

site/.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

site/.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
assets/js/index.js
2+
assets/js/katex.js
3+
assets/js/vendor
4+
node_modules

site/.eslintrc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"extends": "eslint:recommended",
9+
"globals": {
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
12+
},
13+
"parserOptions": {
14+
"ecmaVersion": 2018,
15+
"sourceType": "module"
16+
},
17+
"rules": {
18+
"no-console": 0,
19+
"quotes": ["error", "single"],
20+
"comma-dangle": [
21+
"error",
22+
{
23+
"arrays": "always-multiline",
24+
"objects": "always-multiline",
25+
"imports": "always-multiline",
26+
"exports": "always-multiline",
27+
"functions": "ignore"
28+
}
29+
]
30+
}
31+
}

site/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
public
3+
resources
4+
.netlify
5+
.hugo_build.lock

site/.markdownlint-cli2.jsonc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"config": {
3+
"default": true,
4+
"MD013": false,
5+
"MD024": false,
6+
"MD026": false,
7+
"MD033": false,
8+
"MD034": false
9+
},
10+
"ignores": ["node_modules", "CHANGELOG.md", "README.md"]
11+
}

site/.stylelintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
assets/scss/components/_syntax.scss
2+
assets/scss/vendor
3+
node_modules

site/.stylelintrc.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"extends": "stylelint-config-standard-scss",
3+
"rules": {
4+
"no-empty-source": null,
5+
"string-quotes": "double",
6+
"scss/comment-no-empty": null,
7+
"max-line-length": null,
8+
"scss/at-extend-no-missing-placeholder": null,
9+
"scss/dollar-variable-colon-space-after": null,
10+
"scss/dollar-variable-empty-line-before": null,
11+
"color-function-notation": null,
12+
"alpha-value-notation": null,
13+
"selector-id-pattern": null,
14+
"selector-class-pattern": null,
15+
"scss/no-global-function-names": null,
16+
"number-max-precision": null,
17+
"hue-degree-notation": null,
18+
"value-no-vendor-prefix": null,
19+
"property-no-vendor-prefix": null,
20+
"at-rule-no-unknown": [
21+
true,
22+
{
23+
"ignoreAtRules": [
24+
"extend",
25+
"at-root",
26+
"debug",
27+
"warn",
28+
"error",
29+
"if",
30+
"else",
31+
"for",
32+
"each",
33+
"while",
34+
"mixin",
35+
"include",
36+
"content",
37+
"return",
38+
"function",
39+
"tailwind",
40+
"apply",
41+
"responsive",
42+
"variants",
43+
"screen"
44+
]
45+
}
46+
]
47+
}
48+
}

0 commit comments

Comments
 (0)