Skip to content

Commit

Permalink
改进中文排版 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
xijinping0 authored Aug 20, 2024
1 parent a766b3a commit 84372a6
Show file tree
Hide file tree
Showing 256 changed files with 9,919 additions and 9,751 deletions.
125 changes: 125 additions & 0 deletions .autocorrectrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# yaml-language-server: $schema=https://huacnlee.github.io/autocorrect/schema.json
rules:
# Default rules: https://github.com/huacnlee/autocorrect/raw/main/autocorrect/.autocorrectrc.default
spellcheck: 2
halfwidth-word: 0
# Enable or disable in special context
context:
# Enable or disable to format codeblock in Markdown or AsciiDoc etc.
codeblock: 1
textRules:
# Config some special rule for some texts
# For example, if we wants to let "Hello你好" just warning, and "Hi你好" to ignore
# "Hello你好": 2
# "Hi你好": 0
"〇": 0
fileTypes:
# Config the files associations, you config is higher priority than default.
# "rb": ruby
# "Rakefile": ruby
# "*.js": javascript
# ".mdx": markdown
spellcheck:
words:
# Please do not add a general English word (eg. apple, python) here.
# Users can add their special words to their .autocorrectrc file by their need.
- ActiveMQ
- AirPods
- Aliyun
- API
- App Store
- AppKit
- AppStore = App Store
- AWS
- CacheStorage
- CDN
- CentOS
- CloudFront
- CORS
- CPU
- DNS
- Elasticsearch
- ESLint
- Facebook
- GeForce
- GitHub
- Google
- GPU
- H5
- Hadoop
- HBase
- HDFS
- HKEX
- HTML
- HTTP
- HTTPS
- I10n
- I18n
- iMovie
- IndexedDB
- Intel
- iOS
- iPad
- iPadOS
- iPhone
- iTunes
- JavaScript
- jQuery
- JSON
- JWT
- Linux
- LocalStorage
- macOS
- Markdown
- Microsoft
- MongoDB
- Mozilla
- MVC
- MySQL
- Nasdaq
- Netflix
- NodeJS = Node.js
- NoSQL
- NVDIA
- NYSE
- OAuth
- Objective-C
- OLAP
- OSS
- P2P
- PaaS
- RabbitMQ
- Redis
- RESTful
- RSS
- RubyGem
- RubyGems
- SaaS
- Sass
- SDK
- Shopify
- SQL
- SQLite
- SQLServer
- SSL
- Tesla
- TikTok
- tvOS
- TypeScript
- Ubuntu
- UML
- URI
- URL
- VIM
- watchOS
- WebAssembly
- WebKit
- Webpack
- Wi-Fi
- Windows
- WWDC
- Xcode
- XML
- YAML
- YML
- YouTube
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ jobs:
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn lint:md
- name: Run autocorrect
uses: huacnlee/autocorrect-action@v2
with:
use_npm: true
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"postbuild": "next-sitemap",
"start": "next start",
"lint:md": "yarn markdownlint --config .markdownlint.config.yaml pages/**/*.md pages/**/*.mdx",
"lint:md:fix": "yarn lint:md -f"
"lint:md:fix": "yarn lint:md -f",
"lint:cn": "autocorrect --lint --quiet --config .autocorrectrc .",
"lint:cn:fix": "autocorrect --fix --quiet --config .autocorrectrc ."
},
"repository": {
"type": "git",
Expand All @@ -30,6 +32,7 @@
},
"devDependencies": {
"@types/node": "20.12.12",
"autocorrect-node": "^2.11.1",
"markdownlint-cli": "^0.41.0",
"next-sitemap": "^4.2.3",
"typescript": "^5.4.5"
Expand Down
12 changes: 6 additions & 6 deletions pages/clouds-of-history/_meta.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"index": "目录",
"ch01": "第一章 “肃AB团”事件的历史考察",
"ch02": "第二章 毛泽东与1937年的刘、洛之争",
"ch01": "第一章“肃 AB 团”事件的历史考察",
"ch02": "第二章 毛泽东与 1937 年的刘、洛之争",
"ch03": "第三章 在“道”与“势”之间",
"ch04": "第四章 中共从五四教育遗产中选择了什么?",
"ch04": "第四章 中共从五四教育遗产中选择了什么",
"ch05": "第五章 民族主义乎?国际主义乎?",
"ch06": "第六章 鞍钢宪法的历史真实与“政治正确性”",
"ch07": "第七章 大跃进运动与国家权力的扩张 以江苏省为例",
"ch08": "第八章 1960年“持续跃进”中的江苏省城市人民公社运动",
"ch08": "第八章 1960 年“持续跃进”中的江苏省城市人民公社运动",
"ch09": "第九章 北京政争与地方——释读《江渭清回忆录》",
"ch10": "第十章 大灾荒与四清运动的起源",
"ch11": "第十一章 人有病,天知否?",
"ch12": "第十二章 初读《杨尚昆日记》",
"ch13": "第十三章 论孙科革新国民党的努力及其失败",
"ch14": "第十四章 关于南京十年(1928-1937)国民政府的若干问题",
"ch14": "第十四章 关于南京十年 (1928-1937) 国民政府的若干问题",
"ch15": "第十五章 近代中国社会转型的历史教训",
"ch16": "第十六章 当代中国史史料的若干问题",
"ch17": "第十七章 在史料的从林中——读陈永发新著《中国共产革命七十年》",
"ch18": "第十八章 叙事视角的多样性与当代史研究——以50年代历史研究为例",
"ch18": "第十八章 叙事视角的多样性与当代史研究——以 50 年代历史研究为例",
"ch19": "第十九章 清华历史上的校长更迭风波",
"ch20": "第二十章 明年能发现另一个张学良?"
}
Loading

0 comments on commit 84372a6

Please sign in to comment.