Class: Ucode::Commands::SiteCommand
- Inherits:
-
Object
- Object
- Ucode::Commands::SiteCommand
- Defined in:
- lib/ucode/commands/site.rb
Overview
‘ucode site` — init the Vitepress scaffold + build config/pages from the current `output/` tree. Two subactions.
Instance Method Summary collapse
-
#build(output_root:, site_root:, **_unused) ⇒ Hash
The Generator’s build tally.
-
#init(site_root:) ⇒ Hash
{ files_copied: }.
Instance Method Details
#build(output_root:, site_root:, **_unused) ⇒ Hash
Returns the Generator’s build tally.
24 25 26 27 28 29 30 |
# File 'lib/ucode/commands/site.rb', line 24 def build(output_root:, site_root:, **_unused) gen = Site::Generator.new( output_root: Pathname.new(output_root), site_root: Pathname.new(site_root), ) gen.build end |