style: eslint fix docs/

This commit is contained in:
harttle
2020-03-31 01:25:31 +08:00
parent bf23116ce5
commit c30766ffe1
18 changed files with 151 additions and 143 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ for file in $(find docs/source/api -name "*.md"); do
-e '1 s/</\&lt;/g' \
-e '1 s/>/\&gt;/g' \
-e '1 s/\*//g' \
-e '1 s/^# \(.*\)/---\ntitle: "\1"\n---/' \
-e '1 s/^# \(.*\)/---\ntitle: "\1"\nauto: true\n---/' \
$file
target=${file/\/_/\/}
if [ "$file" != "$target" ]; then
+2 -2
View File
@@ -9,9 +9,9 @@ npm run build
cp CNAME public/
cp ../CHANGELOG.md source/tutorials/changelog.md
sed -i '1i ---\ntitle: Changelog\n---\n' source/tutorials/changelog.md
sed -i '1i ---\ntitle: Changelog\nauto: true\n---\n' source/tutorials/changelog.md
cp ../CHANGELOG.md source/zh-cn/tutorials/changelog.md
sed -i '1i ---\ntitle: 更新日志\n---\n' source/zh-cn/tutorials/changelog.md
sed -i '1i ---\ntitle: 更新日志\nauto: true\n---\n' source/zh-cn/tutorials/changelog.md
if [ "$HEXO_ALGOLIA_INDEXING_KEY" != "" ]; then
npm run index