DocOps / liquidoc-gem

The canonical gem source for LiquiDoc, a ruby-based documentation parsing and rendering utility enabling advanced builds with Asciidoctor, Jekyll, Liquid, and semi-structured data files.
https://docs.docops.org/liquidoc-user-manual.html
MIT License
12 stars 5 forks source link

Enable mutli-file data ingest for parse actions #40

Closed briandominick closed 5 years ago

briandominick commented 6 years ago

Why restrict data ingest sources to just one file? Why not:

- action: parse
  data:
    - mydata.yml
    - otherdata.json
  build:
    - template: mystuff.liquid
      output: mystuff.html

In mystuff.liquid, we can access the data in scopes like mydata. and otherdata.. May need to address namespace collisions; perhaps we default to appending _<ext> so for mystuff.yml and mystuff.json, express as {{ mystuff_yml.contents }} and {{ mystuff_json.morestuff }}.

briandominick commented 5 years ago

Implemented in LD0.11.0 https://github.com/DocOps/liquidoc-gem/commit/c5b8e0702161cd2182fd5ace373edd83be967dcc