Re: Single CSS for multiple, nested adoc files
Posted by
mojavelinux on
URL: https://discuss.asciidoctor.org/Single-CSS-for-multiple-nested-adoc-files-tp552p604.html
Christian,
I haven't thought through this issue thoroughly yet, but I want to contribute some information that should help advance things along in the meantime. Asciidoctor has a very robust, system-neutral path resolver built-in (named PathResolver). It can calculate absolute paths, jailed paths, relative paths and the like. It may need some enhancements to do direct relative calculations between two paths...the important point is that the foundation is there for chopping up and reassembling paths.
There are several utilities in Ruby for handling file path calculation, but in my experience they are all buggy in some way. That's why I wrote the PathResolver. So we're off to a good start there :)
-Dan