cosmocode / dokuwiki-plugin-farmer

Completely manages a DokuWiki farm setup
https://www.dokuwiki.org/plugin:farmer
GNU General Public License v2.0
11 stars 6 forks source link

less @import won't work in a farm animal #65

Open garu57 opened 5 years ago

garu57 commented 5 years ago

Transferred from issue #2808 as requested.


Dokuwiki Greebo windows 10 and 7

I have a number of css changes that I'd like to keep in separate files, but using @import within less files into conf dir of a farmer animal is not working.

For example using these two files into conf dir of a farmer the content of underlinehx.less is correctly embedded into the css sent to the browser.

/* userstyle.less */
@import "./underlinehx.less";
/* underlinehx.less */
 h1:after, h2:after {
    content: "";
    display: block;
    border-bottom: 1px solid #cccccc;
    overflow: hidden;
}

If the same files are put into the conf dir of a virtual host farm animal underlinehx.less content is not embedded and instead the @import with a mangled path is sent to browser.

 @import "/home/web/httpd/dokuwiki/farm/sandbox-wiki-devel/conf/./underlinehx.less";

Besides that the path would have no meaning for the browser, the @import is deeply nested into css and in any case it would be never executed.

auto-comment[bot] commented 5 years ago

Thank you for opening this issue. CosmoCode is a software company in Berlin providing services for wiki, app and web development. As such we can't guarantee quick responses for issues opened on our Open Source projects. If you require certain features or bugs fixed, you can always hire us. Feel free to contact us at dokuwiki@cosmocode.de for an offer.