-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
12 changed files
with
82 additions
and
64 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,21 @@ | ||
name: Build and Deploy | ||
on: | ||
push: | ||
branches: [ master, action ] | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install and Build | ||
run: | | ||
npm install | ||
npm run preview | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: preview # The branch the action should deploy to. | ||
folder: dist # The folder the action should deploy. |
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
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 |
---|---|---|
@@ -1,7 +1 @@ | ||
[ | ||
{ | ||
"name": "第一条新闻", | ||
"time": 1628999604, | ||
"content": "new.md" | ||
} | ||
] | ||
[{"name": "\u7b2c\u4e00\u6761\u65b0\u95fb", "time": 1628956800.0, "content": "2021-08-15-\u7b2c\u4e00\u6761\u65b0\u95fb.md"}] |
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,20 @@ | ||
import re | ||
import json | ||
import os | ||
import datetime | ||
|
||
FILE_REG = re.compile(r'(\d{4})\-(\d{2})\-(\d{2})-(.+).md') | ||
|
||
if __name__ == '__main__': | ||
entries = [] | ||
for file in os.listdir(): | ||
if (m := FILE_REG.match(file)) != None: | ||
y, m, d, name = m.groups() | ||
date = datetime.datetime(int(y), int(m), int(d)) | ||
entries.append({ | ||
"name": name, | ||
"time": date.timestamp(), | ||
"content": file | ||
}) | ||
with open('index.json', 'w') as f: | ||
json.dump(entries, f) |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"locale": "English", | ||
"locale": "中文", | ||
"mirror": "NJU Open Source Mirror", | ||
"header": { | ||
"mirrors": "Mirrors", | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"locale": "中文", | ||
"locale": "English", | ||
"mirror": "南京大学开源镜像站", | ||
"header": { | ||
"mirrors": "镜像列表", | ||
|
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