build pipeline

This commit is contained in:
Charles N Wyble 2024-05-11 16:45:36 -05:00
parent 2996bb6356
commit 210ad27028
2 changed files with 36 additions and 21 deletions

15
BuildAndPublish.sh Normal file
View 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 ..

View File

@ -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