Skip to content

Commit fbb36df

Browse files
committed
Initial commit
0 parents  commit fbb36df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3288
-0
lines changed

.github/workflows/git-sync.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: push
2+
jobs:
3+
git-sync:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- name: git-sync
7+
uses: wei/git-sync@v3
8+
with:
9+
source_repo: "Ancient-China-Books/shangshu"
10+
source_branch: "master"
11+
destination_repo: "https://${{ secrets.GITLAB_USERNAME }}:${{ secrets.GITLAB_TOKEN }}@gitlab.com/ancient-china-books/shangshu.git"
12+
destination_branch: "master"

.github/workflows/make-epub.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: make-epub
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Install zip
15+
run: sudo apt-get install -y zip
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Build
19+
run: |
20+
zip -r shangshu-vst.epub META-INF mimetype OEBPS
21+
sed -i 's/vertical-rl/horizontal-tb/g' OEBPS/Styles/*.css
22+
sed -i 's/page-progression-direction="rtl"/page-progression-direction="ltr"/g' OEBPS/content.opf
23+
zip -r shangshu.epub META-INF mimetype OEBPS
24+
25+
- name: Sync to Google drive
26+
uses: wei/rclone@v1
27+
env:
28+
RCLONE_CONF: ${{ secrets.RCLONE_CONF }}
29+
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
30+
with:
31+
args: copyto shangshu.epub gdrive:/古籍共享电子书计划/尚書.epub
32+
- name: Sync vst to Google drive
33+
uses: wei/rclone@v1
34+
env:
35+
RCLONE_CONF: ${{ secrets.RCLONE_CONF }}
36+
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
37+
with:
38+
args: copyto shangshu-vst.epub gdrive:/古籍共享电子书计划/尚書-豎排.epub
39+
- name: Sync to Onedrive
40+
uses: wei/rclone@v1
41+
env:
42+
RCLONE_CONF: ${{ secrets.RCLONE_CONF }}
43+
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
44+
with:
45+
args: copyto --ignore-errors shangshu.epub onedrive:/古籍共享电子书计划/尚書.epub
46+
- name: Sync vst to Onedrive
47+
uses: wei/rclone@v1
48+
env:
49+
RCLONE_CONF: ${{ secrets.RCLONE_CONF }}
50+
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
51+
with:
52+
args: copyto --ignore-errors shangshu-vst.epub onedrive:/古籍共享电子书计划/尚書-豎排.epub
53+
54+

META-INF/calibre_bookmarks.txt

Whitespace-only changes.

META-INF/container.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0">
3+
<rootfiles>
4+
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>
5+
</rootfiles>
6+
</container>

OEBPS/NotoSerifSC-Medium.otf

785 KB
Binary file not shown.

OEBPS/OEBPS/cover.jpg

161 KB
Loading

OEBPS/Styles/Layout01.css

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
@font-face {
2+
src: url(../NotoSerifSC-Medium.otf);
3+
font-family: "Noto Serif SC Medium";
4+
font-weight: normal;
5+
font-style: normal;
6+
font-stretch: normal;
7+
}
8+
@font-face {
9+
src: url(../FSung-2.ttf);
10+
font-family: "FSung-2";
11+
font-weight: normal;
12+
font-style: normal;
13+
font-stretch: normal;
14+
}
15+
@font-face {
16+
src: url(../FSung-F.ttf);
17+
font-family: "FSung-F";
18+
font-weight: normal;
19+
font-style: normal;
20+
font-stretch: normal;
21+
}
22+
23+
/*
24+
Dreamweaver 流變格線屬性
25+
----------------------------------
26+
dw-num-cols-mobile: 5;
27+
dw-num-cols-tablet: 8;
28+
dw-num-cols-desktop: 10;
29+
dw-gutter-percentage: 25;
30+
31+
靈感來自於 Ethan Marcotte 的「具回應功能的網頁設計」
32+
http://www.alistapart.com/articles/responsive-web-design
33+
34+
以及 Joni Korpi 的「黃金格線系統」
35+
http://goldengridsystem.com/
36+
*/
37+
/* 行動版面: 480px 以下。 */
38+
.gridContainer {
39+
margin-left: auto;
40+
margin-right: auto;
41+
width: 87.36%;
42+
padding-left: 1.82%;
43+
padding-right: 1.82%;
44+
}
45+
#Main {
46+
clear: both;
47+
float: left;
48+
margin-left: 0;
49+
width: 100%;
50+
display: block;
51+
}
52+
.main {
53+
-webkit-box-sizing: border-box;
54+
-moz-box-sizing: border-box;
55+
box-sizing: border-box;
56+
-webkit-overflow-scrolling: touch;
57+
/*padding: 2em 5% ;
58+
border-top-left-radius: 0.5em;
59+
border-top-right-radius: 0.5em;
60+
box-shadow: 0 0 15px rgba(0,0,0, .4);
61+
bottom: 0;
62+
float: left;
63+
width: 100%;
64+
margin:15px 0;
65+
background:#fdfdfd;*/
66+
}
67+
/* 表格版面: 481px 到 768px。樣式繼承自: 行動版面。 */
68+
/* 桌面版面: 769px 到最大 1232px。樣式繼承自: 行動版面和表格版面。 */
69+
@media only screen and (min-width: 769px) {
70+
.gridContainer {
71+
width: 100%;
72+
padding: 0;
73+
margin: 0;
74+
}
75+
#Main {
76+
clear: both;
77+
float: left;
78+
margin-left: 0;
79+
width: 100%;
80+
display: block;
81+
}
82+
.main {
83+
-webkit-box-sizing: border-box;
84+
-moz-box-sizing: border-box;
85+
box-sizing: border-box;
86+
-webkit-overflow-scrolling: touch;
87+
/*padding: 1.5em 3.5% 2.5em 3.5%;
88+
border-top-left-radius: 0.5em;
89+
border-top-right-radius: 0.5em;
90+
box-shadow: 0 0 15px rgba(0,0,0, .4);
91+
bottom: 0;
92+
float: left;
93+
width: 80%;
94+
margin:15px 10%;
95+
background:#fdfdfd;*/
96+
}
97+
}

0 commit comments

Comments
 (0)