build pipeline
This commit is contained in:
parent
2996bb6356
commit
210ad27028
15
BuildAndPublish.sh
Normal file
15
BuildAndPublish.sh
Normal file
@ -0,0 +1,15 @@
|
||||
# Build the book
|
||||
mdbook build
|
||||
|
||||
#Copy assets into place
|
||||
rsync -av book/* ../publish-TSGHandbook
|
||||
|
||||
# Commit the generated assets
|
||||
cd ../publish-TSGHandbook
|
||||
git add -A
|
||||
git commit -m 'deploy new website version'
|
||||
|
||||
# Push the assets to the github page target.
|
||||
git push page master
|
||||
|
||||
cd ..
|
42
book.toml
42
book.toml
@ -7,7 +7,7 @@ title = "TSYS Group Member Handbook"
|
||||
|
||||
[output.html]
|
||||
|
||||
[output.pdf]
|
||||
#[output.pdf]
|
||||
## Set for auto-retrying if failed to generate PDF.
|
||||
# trying-times = 1
|
||||
|
||||
@ -17,31 +17,31 @@ title = "TSYS Group Member Handbook"
|
||||
# browser-binary-path = ""
|
||||
|
||||
## Assign the static hosting site url so that relative links outside the book can be fixed.
|
||||
static_site_url = "https://handbook.turnsys.com"
|
||||
#static_site_url = "https://handbook.turnsys.com"
|
||||
|
||||
## Set the theme to be applied for the generated PDF.
|
||||
theme = "ayu"
|
||||
#theme = "ayu"
|
||||
|
||||
## Check Chrome Devtools Protocol Docs for the explanation of the following params:
|
||||
## https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF
|
||||
|
||||
landscape = false
|
||||
display-header-footer = true
|
||||
print-background = true
|
||||
scale = 0.7
|
||||
paper-width = 8
|
||||
paper-height = 10
|
||||
margin-top = 0.5
|
||||
margin-bottom = 0.5
|
||||
margin-left = 0.5
|
||||
margin-right = 0.5
|
||||
page-ranges = ""
|
||||
ignore-invalid-page-ranges = false
|
||||
#landscape = false
|
||||
#display-header-footer = true
|
||||
#print-background = true
|
||||
#scale = 0.7
|
||||
#paper-width = 8
|
||||
##paper-height = 10
|
||||
#margin-top = 0.5
|
||||
##margin-bottom = 0.5
|
||||
##margin-left = 0.5
|
||||
##margin-right = 0.5
|
||||
#page-ranges = ""
|
||||
#ignore-invalid-page-ranges = false
|
||||
|
||||
header-template = "<h3 style='font-size:8px; margin-left: 48%' class='title'></h3>"
|
||||
footer-template = "<p style='font-size:10px; margin-left: 48%'><span class='pageNumber'></span> / <span class='totalPages'></span></p>"
|
||||
prefer-css-page-size = true
|
||||
#header-template = "<h3 style='font-size:8px; margin-left: 48%' class='title'></h3>"
|
||||
#footer-template = "<p style='font-size:10px; margin-left: 48%'><span class='pageNumber'></span> / <span class='totalPages'></span></p>"
|
||||
#prefer-css-page-size = true
|
||||
|
||||
[output.pdf-outline]
|
||||
like-wkhtmltopdf = false
|
||||
optional = true
|
||||
#[output.pdf-outline]
|
||||
#like-wkhtmltopdf = false
|
||||
#optional = true
|
Loading…
Reference in New Issue
Block a user