Re: Asciidoc and dependency management
Posted by
mojavelinux on
Sep 26, 2015; 8:43pm
URL: https://discuss.asciidoctor.org/Asciidoc-and-dependency-management-tp3751p3757.html
Great insights Anders!
There's no question that tackling this challenge requires more experimentation. And it's still a problem we need to solve to get the documentation for the Asciidoctor family of projects streamlined on
asciidoctor.org (right now we're manually copying README files, which is about as far from ideal as you can get). (see
https://github.com/asciidoctor/asciidoctor.org/issues/366)
Using a dependency management system is certainly an excellent way to specify and manage the relationships. You build on top of a mature model that already handles concerns like artifact resolution, versioning and resource loading.
For me, the (only) drawback of the setup Anders outlines is that it relies heavily on the build, making it a more formal process. In an ideal world, it should be possible to preview the documents with or without the build (casually)...but that requires a lot more thought and planning to setup (and some AsciiDoc tricks).
Gradle's continuous build mode does have the potential to address this drawback because you can start the build (much like a server) and just keep it running. As a result, you see changes instantaneously in the output files when you make a change to a source file. But that setup may still break the ability to use an editor like Atom or Brackets to preview the documents in their original form. So I'll finish with...
More research is needed in this area :)