aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/parser.rb
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-11-20 22:36:04 +0900
committernsfisis <nsfisis@gmail.com>2022-11-20 22:49:35 +0900
commitaf8b61cf2816ea330ee35b1e3fcb3d2b24a0f05d (patch)
tree2037bdf4345e58071dcb30be0d972b5ab09bae2c /lib/parser.rb
parent75402b673c0f630b620904ce3153f8645d89d700 (diff)
downloadblog.nsfisis.dev-af8b61cf2816ea330ee35b1e3fcb3d2b24a0f05d.tar.gz
blog.nsfisis.dev-af8b61cf2816ea330ee35b1e3fcb3d2b24a0f05d.tar.zst
blog.nsfisis.dev-af8b61cf2816ea330ee35b1e3fcb3d2b24a0f05d.zip
refactor: organize template files
Diffstat (limited to 'lib/parser.rb')
-rw-r--r--lib/parser.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/parser.rb b/lib/parser.rb
index e644dc6..f241c4d 100644
--- a/lib/parser.rb
+++ b/lib/parser.rb
@@ -17,9 +17,12 @@ module NulDoc
template_engine: 'erb',
template_engine_options: { erb: { trim: '<>' } },
attributes: @common_attributes.merge({
+ 'document-type' => document_type,
'source-file-path' => file_path,
'href' => file_path.sub(@content_dir, '').sub('.adoc', '/'),
- 'document-type' => document_type,
+ 'source-highlighter' => 'rouge',
+ 'reproducible' => true,
+ 'sectids' => false,
}),
extension_registry: Asciidoctor::Extensions.create do
tree_processor Nuldoc::Extensions::RevisionHistoryProcessor