Skip to content

Commit 970af2b

Browse files
committed
feat: Add v0.1.0
1 parent 758bcad commit 970af2b

117 files changed

Lines changed: 12913 additions & 169 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@ indent_size = 2
77
indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
10-
11-
[*.md]
12-
indent_size = 4
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- 'README.md'
9+
schedule:
10+
- cron: "13 13 * * *"
11+
12+
jobs:
13+
skipci:
14+
runs-on: ubuntu-18.04
15+
steps:
16+
- run: echo "[Skip CI] ${{ contains(github.event.head_commit.message, '[skip ci]') }}"
17+
18+
deploy:
19+
runs-on: ubuntu-18.04
20+
if: contains(github.event.head_commit.message, '[skip ci]') == false
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Read .env
25+
id: hugo_version
26+
run: |
27+
. ./exampleSite/.env
28+
echo "::set-output name=hugo_version::${HUGO_VERSION}"
29+
30+
- name: Setup Hugo
31+
uses: peaceiris/actions-hugo@v2
32+
with:
33+
hugo-version: "${{ steps.hugo_version.outputs.hugo_version }}"
34+
extended: true
35+
36+
- name: Build
37+
working-directory: ./exampleSite
38+
run: |
39+
make data
40+
hugo --minify --themesDir ../ --layoutDir ../layouts
41+
42+
- name: Deploy (script mode)
43+
env:
44+
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
PUBLISH_BRANCH: gh-pages
47+
PUBLISH_DIR: ./exampleSite/public
48+
SCRIPT_MODE: true
49+
run: |
50+
wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2/entrypoint.sh
51+
bash ./entrypoint.sh
52+
53+
# - name: Deploy
54+
# # uses: peaceiris/actions-gh-pages@v2
55+
# uses: docker://peaceiris/gh-pages:v2
56+
# env:
57+
# # ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
58+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
# PUBLISH_BRANCH: master
60+
# PUBLISH_DIR: ./public
61+
# with:
62+
# emptyCommits: false
63+
# forceOrphan: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
22
*~
33
public
4+
resources
45
node_modules

exampleSite/assets/css/syntax.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/* Background */ .chroma { color: #f8f8f2; background-color: #272822 }
2+
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
3+
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4+
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
5+
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
6+
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
7+
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
8+
/* Keyword */ .chroma .k { color: #66d9ef }
9+
/* KeywordConstant */ .chroma .kc { color: #66d9ef }
10+
/* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
11+
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
12+
/* KeywordPseudo */ .chroma .kp { color: #66d9ef }
13+
/* KeywordReserved */ .chroma .kr { color: #66d9ef }
14+
/* KeywordType */ .chroma .kt { color: #66d9ef }
15+
/* NameAttribute */ .chroma .na { color: #a6e22e }
16+
/* NameClass */ .chroma .nc { color: #a6e22e }
17+
/* NameConstant */ .chroma .no { color: #66d9ef }
18+
/* NameDecorator */ .chroma .nd { color: #a6e22e }
19+
/* NameException */ .chroma .ne { color: #a6e22e }
20+
/* NameFunction */ .chroma .nf { color: #a6e22e }
21+
/* NameOther */ .chroma .nx { color: #a6e22e }
22+
/* NameTag */ .chroma .nt { color: #f92672 }
23+
/* Literal */ .chroma .l { color: #ae81ff }
24+
/* LiteralDate */ .chroma .ld { color: #e6db74 }
25+
/* LiteralString */ .chroma .s { color: #e6db74 }
26+
/* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
27+
/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
28+
/* LiteralStringChar */ .chroma .sc { color: #e6db74 }
29+
/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
30+
/* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
31+
/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
32+
/* LiteralStringEscape */ .chroma .se { color: #ae81ff }
33+
/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
34+
/* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
35+
/* LiteralStringOther */ .chroma .sx { color: #e6db74 }
36+
/* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
37+
/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
38+
/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
39+
/* LiteralNumber */ .chroma .m { color: #ae81ff }
40+
/* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
41+
/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
42+
/* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
43+
/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
44+
/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
45+
/* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
46+
/* Operator */ .chroma .o { color: #f92672 }
47+
/* OperatorWord */ .chroma .ow { color: #f92672 }
48+
/* Comment */ .chroma .c { color: #75715e }
49+
/* CommentHashbang */ .chroma .ch { color: #75715e }
50+
/* CommentMultiline */ .chroma .cm { color: #75715e }
51+
/* CommentSingle */ .chroma .c1 { color: #75715e }
52+
/* CommentSpecial */ .chroma .cs { color: #75715e }
53+
/* CommentPreproc */ .chroma .cp { color: #75715e }
54+
/* CommentPreprocFile */ .chroma .cpf { color: #75715e }
55+
/* GenericDeleted */ .chroma .gd { color: #f92672 }
56+
/* GenericEmph */ .chroma .ge { font-style: italic }
57+
/* GenericInserted */ .chroma .gi { color: #a6e22e }
58+
/* GenericStrong */ .chroma .gs { font-weight: bold }
59+
/* GenericSubheading */ .chroma .gu { color: #75715e }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@charset "utf-8"
2+
3+
@import "minireset.sass"
4+
@import "generic.sass"
5+
@import "helpers.sass"
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
$body-background-color: $white !default
2+
$body-size: 16px !default
3+
$body-min-width: 300px !default
4+
$body-rendering: optimizeLegibility !default
5+
$body-family: $family-primary !default
6+
$body-overflow-x: hidden !default
7+
$body-overflow-y: scroll !default
8+
9+
$body-color: $text !default
10+
$body-font-size: 1em !default
11+
$body-weight: $weight-normal !default
12+
$body-line-height: 1.5 !default
13+
14+
$code-family: $family-code !default
15+
$code-padding: 0.25em 0.5em 0.25em !default
16+
$code-weight: normal !default
17+
$code-size: 0.875em !default
18+
19+
$small-font-size: 0.875em !default
20+
21+
$hr-background-color: $background !default
22+
$hr-height: 2px !default
23+
$hr-margin: 1.5rem 0 !default
24+
25+
$strong-color: $text-strong !default
26+
$strong-weight: $weight-bold !default
27+
28+
$pre-font-size: 0.875em !default
29+
$pre-padding: 1.25rem 1.5rem !default
30+
$pre-code-font-size: 1em !default
31+
32+
html
33+
background-color: $body-background-color
34+
font-size: $body-size
35+
-moz-osx-font-smoothing: grayscale
36+
-webkit-font-smoothing: antialiased
37+
min-width: $body-min-width
38+
overflow-x: $body-overflow-x
39+
overflow-y: $body-overflow-y
40+
text-rendering: $body-rendering
41+
text-size-adjust: 100%
42+
43+
article,
44+
aside,
45+
figure,
46+
footer,
47+
header,
48+
hgroup,
49+
section
50+
display: block
51+
52+
body,
53+
button,
54+
input,
55+
select,
56+
textarea
57+
font-family: $body-family
58+
59+
code,
60+
pre
61+
-moz-osx-font-smoothing: auto
62+
-webkit-font-smoothing: auto
63+
font-family: $code-family
64+
65+
body
66+
color: $body-color
67+
font-size: $body-font-size
68+
font-weight: $body-weight
69+
line-height: $body-line-height
70+
71+
// Inline
72+
73+
a
74+
color: $link
75+
cursor: pointer
76+
text-decoration: none
77+
strong
78+
color: currentColor
79+
&:hover
80+
color: $link-hover
81+
82+
code
83+
background-color: $code-background
84+
color: $code
85+
font-size: $code-size
86+
font-weight: $code-weight
87+
padding: $code-padding
88+
89+
hr
90+
background-color: $hr-background-color
91+
border: none
92+
display: block
93+
height: $hr-height
94+
margin: $hr-margin
95+
96+
img
97+
height: auto
98+
max-width: 100%
99+
100+
input[type="checkbox"],
101+
input[type="radio"]
102+
vertical-align: baseline
103+
104+
small
105+
font-size: $small-font-size
106+
107+
span
108+
font-style: inherit
109+
font-weight: inherit
110+
111+
strong
112+
color: $strong-color
113+
font-weight: $strong-weight
114+
115+
// Block
116+
117+
fieldset
118+
border: none
119+
120+
pre
121+
+overflow-touch
122+
background-color: $pre-background
123+
color: $pre
124+
font-size: $pre-font-size
125+
overflow-x: auto
126+
padding: $pre-padding
127+
white-space: pre
128+
word-wrap: normal
129+
code
130+
background-color: transparent
131+
color: currentColor
132+
font-size: $pre-code-font-size
133+
padding: 0
134+
135+
table
136+
td,
137+
th
138+
vertical-align: top
139+
&:not([align])
140+
text-align: left
141+
th
142+
color: $text-strong

0 commit comments

Comments
 (0)