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.
18 19 20 |
# File 'lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb', line 18 def body_target_path build.target_directory.join(source_document.subpath).join(BODY_TARGET_BASENAME) end |
#body_target_write ⇒ Asciidoctor::Document
23 24 25 26 27 28 29 |
# File 'lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb', line 23 def body_target_write ::Asciidoctor.convert_file( pre_processed_body_source_path, base_dir: convert_base_dir, to_file: body_target_path.to_path, safe: :unsafe, mkdirs: true ) end |