-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a9e9371
Showing
154 changed files
with
5,602 additions
and
0 deletions.
There are no files selected for viewing
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,12 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[themes/**/*] | ||
insert_final_newline = false |
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,3 @@ | ||
# https://github.com/github/linguist/blob/master/docs/overrides.md | ||
content/**/* linguist-documentation | ||
themes/**/* linguist-vendored |
Validating CODEOWNERS rules …
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,5 @@ | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
* @project-trans/ftmwiki-editors | ||
|
||
/themes/ftmwiki/* @septs |
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,3 @@ | ||
addReviewers: true | ||
reviewers: [/editors, /mtfwiki-delegates] | ||
numberOfReviewers: 0 |
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,33 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
- uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: latest | ||
extended: true | ||
- run: npm ci | ||
- run: npx prettier --check . | ||
- run: npx markdownlint-cli "**/*.md" | ||
- run: hugo --minify | ||
- run: npx wrangler pages publish public --project-name ftmwiki --branch main | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | ||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} |
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,18 @@ | ||
/node_modules | ||
|
||
# Generated files by hugo | ||
**/public | ||
**/resources | ||
**/assets/jsconfig.json | ||
**/hugo_stats.json | ||
|
||
# Executable may be added to repository | ||
**/hugo.exe | ||
**/hugo.darwin | ||
**/hugo.linux | ||
|
||
# Temporary lock file while building | ||
**/.hugo_build.lock | ||
|
||
# macOS | ||
*.DS_Store |
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 @@ | ||
{ | ||
"line-length": false, | ||
"code-block-style": false | ||
} |
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,3 @@ | ||
/node_modules | ||
/public | ||
/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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public | ||
resources | ||
**/assets/jsconfig.json | ||
**/layouts | ||
|
||
*.min.css | ||
*.min.js |
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,7 @@ | ||
{ | ||
"quoteProps": "consistent", | ||
"singleQuote": true, | ||
"semi": false, | ||
"trailingComma": "all", | ||
"printWidth": 120 | ||
} |
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 @@ | ||
{ | ||
"recommendations": [ | ||
"EditorConfig.EditorConfig", | ||
"DavidAnson.vscode-markdownlint", | ||
"esbenp.prettier-vscode", | ||
"redhat.vscode-yaml" | ||
] | ||
} |
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,23 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"files.associations": { | ||
"**/LICENSE": "plaintext", | ||
"**/CODEOWNERS": "plaintext", | ||
"**/layouts/**/*": "plaintext", | ||
"**/public/**/*": "plaintext", | ||
"**/jsconfig.json": "plaintext", | ||
"_headers": "plaintext", | ||
"_redirects": "plaintext" | ||
}, | ||
"search.exclude": { | ||
"**/LICENSE": true, | ||
"**/public/**/*": true, | ||
"**/resources/**/*": true, | ||
"**/themes/ftmwiki/**/*": true, | ||
"**/*.svg": 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Serve", | ||
"group": "test", | ||
"type": "shell", | ||
"command": "hugo", | ||
"args": ["serve"], | ||
"isBackground": true | ||
}, | ||
{ | ||
"label": "Build", | ||
"group": "build", | ||
"type": "shell", | ||
"command": "hugo", | ||
"isBackground": false, | ||
"promptOnClose": 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 参与开发 | ||
|
||
这里默认您已经安装好 [Node.js](https://nodejs.org) 及 [Hugo](https://gohugo.io) 环境。 | ||
|
||
编辑器指定为 [Visual Studio Code](https://code.visualstudio.com) 下称 VSCode。 | ||
|
||
参与文档开发请使用 [content.code-workspace](content.code-workspace) 初始化 VSCode。 | ||
|
||
参与主题开发请使用 [theme.code-workspace](theme.code-workspace) 初始化 VSCode。 | ||
|
||
Install: | ||
|
||
```console | ||
$ npm ci | ||
|
||
added 2 packages, and audited 3 packages in 4s | ||
|
||
found 0 vulnerabilities | ||
``` | ||
|
||
Watch: | ||
|
||
```console | ||
$ hugo serve | ||
Start building sites … | ||
hugo v0.102.3+extended darwin/amd64 BuildDate=unknown | ||
``` | ||
|
||
Build: | ||
|
||
```console | ||
$ hugo | ||
Start building sites … | ||
hugo v0.102.3+extended darwin/amd64 BuildDate=unknown | ||
``` |
Oops, something went wrong.