This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Full demo of all Ezdoc features
|
||||
# Full demo of all Notare features
|
||||
# Run with: bundle exec ruby examples/full_demo.rb
|
||||
|
||||
require_relative "../lib/ezdoc"
|
||||
require_relative "../lib/notare"
|
||||
|
||||
OUTPUT_FILE = File.expand_path("../example.docx", __dir__)
|
||||
FIXTURES_DIR = File.expand_path("../test/fixtures", __dir__)
|
||||
|
||||
Ezdoc::Document.create(OUTPUT_FILE) do |doc|
|
||||
Notare::Document.create(OUTPUT_FILE) do |doc|
|
||||
# ============================================================================
|
||||
# Custom Styles
|
||||
# ============================================================================
|
||||
@@ -20,7 +20,7 @@ Ezdoc::Document.create(OUTPUT_FILE) do |doc|
|
||||
# ============================================================================
|
||||
# Title and Introduction
|
||||
# ============================================================================
|
||||
doc.h1 "Ezdoc Feature Demo"
|
||||
doc.h1 "Notare Feature Demo"
|
||||
doc.p "A comprehensive example of all supported features", style: :subtitle
|
||||
|
||||
# ============================================================================
|
||||
@@ -173,7 +173,7 @@ Ezdoc::Document.create(OUTPUT_FILE) do |doc|
|
||||
doc.i { doc.text "formatting" }
|
||||
doc.text " options with "
|
||||
doc.text "custom styles", style: :highlight
|
||||
doc.text " to demonstrate the full power of Ezdoc."
|
||||
doc.text " to demonstrate the full power of Notare."
|
||||
end
|
||||
|
||||
doc.p "End of demo document.", style: :centered_large
|
||||
|
||||
Reference in New Issue
Block a user