Skip to content

Commit bc14826

Browse files
committed
[DOC] Downloadable PDF Developer Guides
Signed-off-by: Arya Soni <[email protected]>
1 parent a612d05 commit bc14826

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/jekyll-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: ruby/setup-ruby@v1
12-
with:
13-
ruby-version: '3.4.5'
14-
bundler-cache: true
15-
- run: |
16-
JEKYLL_FATAL_LINK_CHECKER=internal bundle exec jekyll build --future
10+
- uses: actions/checkout@v3
11+
- uses: ruby/setup-ruby@v1
12+
with:
13+
ruby-version: "3.4.5"
14+
bundler-cache: true
15+
- run: |
16+
JEKYLL_FATAL_LINK_CHECKER=internal bundle exec jekyll build --future

Gemfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ gem 'typhoeus'
4747
gem 'activesupport', '~> 7'
4848
gem 'mustache', '~> 1'
4949

50-
# PDF Generator
51-
gem 'grover', '~> 1.3'
50+
# PDF Generator (optional - requires Node.js)
51+
# Install with: ENABLE_PDF_GENERATION=true bundle install
52+
if ENV['ENABLE_PDF_GENERATION'] == 'true'
53+
gem 'grover', '~> 1.3'
54+
end
5255

5356
group :development, :test do
5457
gem 'rspec'

_pdf_generator/pdf_generator.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,5 +570,4 @@ def escape_html(text)
570570

571571
generator.send(:generate_pdf_for_documents, pdf_job[:title], pdf_job[:documents], pdf_job[:filename])
572572
end
573-
end
574-
573+
end

0 commit comments

Comments
 (0)