-
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 fbb36df
Showing
72 changed files
with
3,288 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,12 @@ | ||
on: push | ||
jobs: | ||
git-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: git-sync | ||
uses: wei/git-sync@v3 | ||
with: | ||
source_repo: "Ancient-China-Books/shangshu" | ||
source_branch: "master" | ||
destination_repo: "https://${{ secrets.GITLAB_USERNAME }}:${{ secrets.GITLAB_TOKEN }}@gitlab.com/ancient-china-books/shangshu.git" | ||
destination_branch: "master" |
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,54 @@ | ||
name: make-epub | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install zip | ||
run: sudo apt-get install -y zip | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build | ||
run: | | ||
zip -r shangshu-vst.epub META-INF mimetype OEBPS | ||
sed -i 's/vertical-rl/horizontal-tb/g' OEBPS/Styles/*.css | ||
sed -i 's/page-progression-direction="rtl"/page-progression-direction="ltr"/g' OEBPS/content.opf | ||
zip -r shangshu.epub META-INF mimetype OEBPS | ||
- name: Sync to Google drive | ||
uses: wei/rclone@v1 | ||
env: | ||
RCLONE_CONF: ${{ secrets.RCLONE_CONF }} | ||
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} | ||
with: | ||
args: copyto shangshu.epub gdrive:/古籍共享电子书计划/尚書.epub | ||
- name: Sync vst to Google drive | ||
uses: wei/rclone@v1 | ||
env: | ||
RCLONE_CONF: ${{ secrets.RCLONE_CONF }} | ||
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} | ||
with: | ||
args: copyto shangshu-vst.epub gdrive:/古籍共享电子书计划/尚書-豎排.epub | ||
- name: Sync to Onedrive | ||
uses: wei/rclone@v1 | ||
env: | ||
RCLONE_CONF: ${{ secrets.RCLONE_CONF }} | ||
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} | ||
with: | ||
args: copyto --ignore-errors shangshu.epub onedrive:/古籍共享电子书计划/尚書.epub | ||
- name: Sync vst to Onedrive | ||
uses: wei/rclone@v1 | ||
env: | ||
RCLONE_CONF: ${{ secrets.RCLONE_CONF }} | ||
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} | ||
with: | ||
args: copyto --ignore-errors shangshu-vst.epub onedrive:/古籍共享电子书计划/尚書-豎排.epub | ||
|
||
|
Empty file.
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,6 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0"> | ||
<rootfiles> | ||
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/> | ||
</rootfiles> | ||
</container> |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,97 @@ | ||
@font-face { | ||
src: url(../NotoSerifSC-Medium.otf); | ||
font-family: "Noto Serif SC Medium"; | ||
font-weight: normal; | ||
font-style: normal; | ||
font-stretch: normal; | ||
} | ||
@font-face { | ||
src: url(../FSung-2.ttf); | ||
font-family: "FSung-2"; | ||
font-weight: normal; | ||
font-style: normal; | ||
font-stretch: normal; | ||
} | ||
@font-face { | ||
src: url(../FSung-F.ttf); | ||
font-family: "FSung-F"; | ||
font-weight: normal; | ||
font-style: normal; | ||
font-stretch: normal; | ||
} | ||
|
||
/* | ||
Dreamweaver 流變格線屬性 | ||
---------------------------------- | ||
dw-num-cols-mobile: 5; | ||
dw-num-cols-tablet: 8; | ||
dw-num-cols-desktop: 10; | ||
dw-gutter-percentage: 25; | ||
靈感來自於 Ethan Marcotte 的「具回應功能的網頁設計」 | ||
http://www.alistapart.com/articles/responsive-web-design | ||
以及 Joni Korpi 的「黃金格線系統」 | ||
http://goldengridsystem.com/ | ||
*/ | ||
/* 行動版面: 480px 以下。 */ | ||
.gridContainer { | ||
margin-left: auto; | ||
margin-right: auto; | ||
width: 87.36%; | ||
padding-left: 1.82%; | ||
padding-right: 1.82%; | ||
} | ||
#Main { | ||
clear: both; | ||
float: left; | ||
margin-left: 0; | ||
width: 100%; | ||
display: block; | ||
} | ||
.main { | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
-webkit-overflow-scrolling: touch; | ||
/*padding: 2em 5% ; | ||
border-top-left-radius: 0.5em; | ||
border-top-right-radius: 0.5em; | ||
box-shadow: 0 0 15px rgba(0,0,0, .4); | ||
bottom: 0; | ||
float: left; | ||
width: 100%; | ||
margin:15px 0; | ||
background:#fdfdfd;*/ | ||
} | ||
/* 表格版面: 481px 到 768px。樣式繼承自: 行動版面。 */ | ||
/* 桌面版面: 769px 到最大 1232px。樣式繼承自: 行動版面和表格版面。 */ | ||
@media only screen and (min-width: 769px) { | ||
.gridContainer { | ||
width: 100%; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
#Main { | ||
clear: both; | ||
float: left; | ||
margin-left: 0; | ||
width: 100%; | ||
display: block; | ||
} | ||
.main { | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
-webkit-overflow-scrolling: touch; | ||
/*padding: 1.5em 3.5% 2.5em 3.5%; | ||
border-top-left-radius: 0.5em; | ||
border-top-right-radius: 0.5em; | ||
box-shadow: 0 0 15px rgba(0,0,0, .4); | ||
bottom: 0; | ||
float: left; | ||
width: 80%; | ||
margin:15px 10%; | ||
background:#fdfdfd;*/ | ||
} | ||
} |
Oops, something went wrong.