Skip to content

Commit

Permalink
fix pdf build
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrew committed Nov 6, 2024
1 parent 9e99726 commit 16c67d7
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 17 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'https://rubygems.org'

gem 'asciidoctor'
gem 'asciidoctor-pdf'
gem 'rouge'
gem 'ostruct'
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ PLATFORMS
x86_64-darwin-23

DEPENDENCIES
asciidoctor
asciidoctor-pdf
logger
ostruct
Expand Down
8 changes: 1 addition & 7 deletions antora-assembler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,5 @@ asciidoc:
source-highlighter: rouge
pdf-theme: ./resources/themes/threatx-base-theme.yml
pdf-fontsdir: ./resources/fonts
allow-uri-read: true
toc:
icons: font
outline: true
outlinelevels: 3
toclevels: 3
build:
command: bundle exec asciidoctor-pdf --trace -a allow-uri-read -a compress
command: bundle exec asciidoctor-pdf --trace -a allow-uri-read -a toc -a outline -a title-page -a doctype=book
62 changes: 53 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@docsearch/js": "^3.6.1",
"@fontsource/montserrat": "^5.0.20",
"asciidoctor-emoji": "^0.5.0",
"asciidoctor-opal-runtime": "^2.1.0",
"node-html-parser": "^6.1.13"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion resources/themes/threatx-base-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ header:
line-height: 1
recto:
center:
content: '(C) ThreatX, Inc. -- {revnumber}, {docdate}'
content: '(C) ThreatX, Inc. -- v{revnumber}, {docdate}'
verso:
center:
content: $header-recto-center-content
Expand Down

0 comments on commit 16c67d7

Please sign in to comment.