generated from huidetang/XiandaiFenshuTemplate
-
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.
- Loading branch information
0 parents
commit 9679b7b
Showing
55 changed files
with
24,011 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 @@ | ||
FROM huideyeren/review |
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,53 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.191.0/containers/debian | ||
{ | ||
"name": "Re:VIEW", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
}, | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"editor.renderWhitespace": "all", | ||
"editor.renderControlCharacters": true, | ||
"git.suggestSmartCommit": true, | ||
"textlint.languages": [ | ||
"review" | ||
] | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"atsushieno.language-review", | ||
"taichi.vscode-textlint", | ||
"coenraads.bracket-pair-colorizer-2", | ||
"8amjp.charactercount", | ||
"mhutchie.git-graph", | ||
"donjayamanne.githistory", | ||
"felipecaputo.git-project-manager", | ||
"github.vscode-pull-request-github", | ||
"eamodio.gitlens", | ||
"ms-ceintl.vscode-language-pack-ja", | ||
"yzhang.markdown-all-in-one", | ||
"bierner.markdown-mermaid", | ||
"darkriszty.markdown-table-prettify", | ||
"bpruitt-goddard.mermaid-markdown-syntax-highlighting", | ||
"yzane.markdown-pdf", | ||
"christian-kohler.path-intellisense", | ||
"cssho.vscode-svgviewer", | ||
"takanotume24.pdf", | ||
"kisstkondoros.vscode-gutter-preview" | ||
], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker. | ||
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], | ||
|
||
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust | ||
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
|
||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
// "remoteUser": "vscode" | ||
} |
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,105 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Build books. | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
reviewdog-github-check: | ||
name: reviewdog (github-check) | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
#reviewdogのアクション | ||
- uses: reviewdog/action-setup@v1 | ||
with: | ||
reviewdog_version: latest | ||
|
||
#textlintを動かすためのnodeアクション | ||
- uses: actions/setup-node@v2 | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: cache-node-modules | ||
#stepsが失敗(文章の乱れ)した場合でもcacheを取得するようにする | ||
uses: pat-s/[email protected] | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
node- | ||
- name: Install textlint | ||
run: 'npm install --save-dev textlint textlint-rule-preset-smarthr textlint-rule-prh textlint-plugin-review' | ||
|
||
- name: Install dependent module | ||
run: npm install | ||
|
||
- name: Execute textlint | ||
run: | | ||
npx textlint -f checkstyle chapter/*.re wiki/*.md README.md >> .textlint.log | ||
- name: Run reviewdog | ||
# textlintで文章上のミスがあった場合のみ、reviewdogを実行させるようにする | ||
if: failure() | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cat .textlint.log | tee | reviewdog -f=checkstyle -name="textlint" -reporter="github-check" | ||
pdf: | ||
needs: reviewdog-github-check | ||
name: Make PDF | ||
runs-on: ubuntu-latest | ||
container: | ||
image: huideyeren/review | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Install gems. | ||
run: bundle install | ||
- name: Rotate images. | ||
run: pwd | python3 rotate.py >> .rotate.log | ||
- name: Show .rotate.log | ||
run: cat .rotate.log | ||
- name: Build PDF. | ||
run: bundle exec rake clean pdf | ||
- name: Upload artifact. | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: book.pdf | ||
path: book.pdf | ||
epub: | ||
needs: reviewdog-github-check | ||
name: Make EPUB | ||
runs-on: ubuntu-latest | ||
container: | ||
image: huideyeren/review | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Install gems. | ||
run: bundle install | ||
- name: Build EPUB. | ||
run: bundle exec rake clean epub | ||
- name: Upload artifact. | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: book.epub | ||
path: book.epub |
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,158 @@ | ||
/*.epub | ||
/*.html | ||
/webroot | ||
/*-epub | ||
/*-text | ||
/*-idgxml | ||
|
||
/vendor | ||
/.bundle | ||
|
||
# Created by https://www.gitignore.io/api/vim,linux,macos,emacs,windows | ||
# Edit at https://www.gitignore.io/?templates=vim,linux,macos,emacs,windows | ||
|
||
### Emacs ### | ||
# -*- mode: gitignore; -*- | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
*.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
|
||
# Org-mode | ||
.org-id-locations | ||
*_archive | ||
|
||
# flymake-mode | ||
*_flymake.* | ||
|
||
# eshell files | ||
/eshell/history | ||
/eshell/lastdir | ||
|
||
# elpa packages | ||
/elpa/ | ||
|
||
# reftex files | ||
*.rel | ||
|
||
# AUCTeX auto folder | ||
/auto/ | ||
|
||
# cask packages | ||
.cask/ | ||
dist/ | ||
|
||
# Flycheck | ||
flycheck_*.el | ||
|
||
# server auth directory | ||
/server/ | ||
|
||
# projectiles files | ||
.projectile | ||
|
||
# directory configuration | ||
.dir-locals.el | ||
|
||
# network security | ||
/network-security.data | ||
|
||
|
||
### Linux ### | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
### macOS ### | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### Vim ### | ||
# Swap | ||
[._]*.s[a-v][a-z] | ||
[._]*.sw[a-p] | ||
[._]s[a-rt-v][a-z] | ||
[._]ss[a-gi-z] | ||
[._]sw[a-p] | ||
|
||
# Session | ||
Session.vim | ||
Sessionx.vim | ||
|
||
# Temporary | ||
.netrwhist | ||
# Auto-generated tag files | ||
tags | ||
# Persistent undo | ||
[._]*.un~ | ||
|
||
### Windows ### | ||
# Windows thumbnail cache files | ||
Thumbs.db | ||
Thumbs.db:encryptable | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# End of https://www.gitignore.io/api/vim,linux,macos,emacs,windows | ||
|
||
/node_modules | ||
|
||
sty/old/ |
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 @@ | ||
[submodule "wiki"] | ||
path = wiki | ||
url = [email protected]:huidetang/XiandaiFenshuVol5.wiki.git |
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,27 @@ | ||
{ | ||
"rules": { | ||
"preset-smarthr":{ | ||
"no-mixed-zenkaku-and-hankaku-alphabet": false, | ||
"sentence-length": false | ||
}, | ||
"prh": { | ||
"rulePaths": [ | ||
"dict/smarthr-prh-basic.yml", | ||
"dict/smarthr-prh-tech-word.yml" | ||
] | ||
} | ||
}, | ||
"plugins": [ | ||
"review" | ||
], | ||
"filters": { | ||
"comments": { | ||
// enable comment directive | ||
// if comment has the value, then enable textlint rule | ||
"enablingComment": "textlint-enable", | ||
// disable comment directive | ||
// if comment has the value, then disable textlint rule | ||
"disablingComment": "textlint-disable" | ||
} | ||
} | ||
} |
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 @@ | ||
{ | ||
"recommendations": [ | ||
"atsushieno.language-review", | ||
"taichi.vscode-textlint", | ||
"coenraads.bracket-pair-colorizer-2", | ||
"8amjp.charactercount", | ||
"mhutchie.git-graph", | ||
"donjayamanne.githistory", | ||
"felipecaputo.git-project-manager", | ||
"github.vscode-pull-request-github", | ||
"eamodio.gitlens", | ||
"ms-ceintl.vscode-language-pack-ja", | ||
"yzhang.markdown-all-in-one", | ||
"bierner.markdown-mermaid", | ||
"darkriszty.markdown-table-prettify", | ||
"bpruitt-goddard.mermaid-markdown-syntax-highlighting", | ||
"yzane.markdown-pdf", | ||
"christian-kohler.path-intellisense", | ||
"cssho.vscode-svgviewer", | ||
"takanotume24.pdf", | ||
"kisstkondoros.vscode-gutter-preview" | ||
] | ||
} |
Oops, something went wrong.