From af8b61cf2816ea330ee35b1e3fcb3d2b24a0f05d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 20 Nov 2022 22:36:04 +0900 Subject: refactor: organize template files --- lib/parser.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/parser.rb') 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 -- cgit v1.2.3-70-g09d2