From 210ad2702845f92aa527b4346a0a6eb97a926a5c Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Sat, 11 May 2024 16:45:36 -0500 Subject: [PATCH] build pipeline --- BuildAndPublish.sh | 15 +++++++++++++++ book.toml | 42 +++++++++++++++++++++--------------------- 2 files changed, 36 insertions(+), 21 deletions(-) create mode 100644 BuildAndPublish.sh diff --git a/BuildAndPublish.sh b/BuildAndPublish.sh new file mode 100644 index 0000000..99e68ac --- /dev/null +++ b/BuildAndPublish.sh @@ -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 .. \ No newline at end of file diff --git a/book.toml b/book.toml index b423b57..230c28c 100644 --- a/book.toml +++ b/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 = "

" -footer-template = "

/

" -prefer-css-page-size = true +#header-template = "

" +#footer-template = "

/

" +#prefer-css-page-size = true -[output.pdf-outline] -like-wkhtmltopdf = false -optional = true \ No newline at end of file +#[output.pdf-outline] +#like-wkhtmltopdf = false +#optional = true \ No newline at end of file