Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
rake_jekyll_asciidoctor_pdf
Advanced tools
= Jekyll Pages + Asciidoctor => PDF :gem-name: rake_jekyll_asciidoctor_pdf :gh-name: ggenzone/{gem-name} :gh-branch: master :badge-style: flat
image:https://img.shields.io/gem/v/{gem-name}.svg?style={badge-style}[Gem Version, link="https://rubygems.org/gems/{gem-name}"]
toc::[]
== Overview
The basic idea is to be able to generate PDFs files for each page in Jekyll, and also to generate one complete PDF with the whole site using the sidebar structure as starting point.
== Constraints
= Sample Page :url-asciidoctor: http://asciidoctor.org
This is a sample page composed in AsciiDoc. Jekyll converts it to HTML using {url-asciidoctor}[Asciidoctor].
entries:
== Process . Generate PDF files for each page .. Copy all files and remove the front matter information .. Execute asciidoctor-pdf in each new file
. Generate a fullsite.adoc using the sidebar.yml structure .. Copy all files, remove front matter information and rename it with the permalink as name .. Load sidebar.yml into a tree like structure .. Generate the whole content using recursion over the tree .. Execute asciidoctor-pdf in the new file
== Installation
Add this line to your application’s Gemfile:
gem 'rake_jekyll_asciidoctor_pdf'
and then execute:
$ bundle
== Tasks
=== BuildTask
This task builds the full
==== Usage
The most simple usage is
require 'rake_jekyll_asciidoctor_pdf'
This listing introduces all the configurable options with their default values:
require 'rake_jekyll_asciidoctor_pdf'
RakeJekyllAsciidoctorPdf::BuildTask.new(:build) do |t|
t.description = 'Generate PDFs files' t.config_pdf_file = 'pdf-theme.yml' t.sidebar_file = 'data/sidebar.yml' t.data_path = 'data'
== Example
$ rake buildAll
Or
$ rake SOURCE_PATH='<PATH_LIKE_DATA_EXAMPLE>'
If you want to use a diferent SOURCE_PATH you should know the structure of the data folder.
media sidebar.yml *.adoc
== Known Limitations
== ToDo List ==
FAQs
Unknown package
We found that rake_jekyll_asciidoctor_pdf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.