Module: Avm::EacAsciidoctorBase0::Instances::Build::Document::BodyTarget
- Defined in:
- lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb
Constant Summary collapse
- BODY_TARGET_BASENAME =
'index.html'
Instance Method Summary collapse
-
#body_target_path ⇒ Pathname
Absolute path to the output of Asciidoctor’s source file.
- #body_target_write ⇒ Asciidoctor::Document
Instance Method Details
#body_target_path ⇒ Pathname
Absolute path to the output of Asciidoctor’s source file.
20 21 22 |
# File 'lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb', line 20 def body_target_path build.target_directory.join(source_document.subpath).join(BODY_TARGET_BASENAME) end |
#body_target_write ⇒ Asciidoctor::Document
25 26 27 28 29 30 31 |
# File 'lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb', line 25 def body_target_write ::Asciidoctor.convert( pre_processed_body_source_content, base_dir: convert_base_dir, to_file: body_target_path.to_path, safe: :unsafe, mkdirs: true ) end |