【问题标题】:AsciiDoc to html5 external cssAsciiDoc 到 html5 外部 css
【发布时间】:2016-04-09 08:47:52
【问题描述】:

我正在尝试使用以下命令将我的 AsciiDoc 转换为 html5:

asciidoc -b html5 -a icons -a toc2 -a stylesheet=article.css myPost.adoc

它没有找到我的 css 文件,因为它看起来位置不对: asciidoc: WARNING: myPost.adoc: line 1: include file not found: /usr/local/Cellar/asciidoc/8.6.9/etc/asciidoc/article.css

另外,ascii 在生成的 html 文件中放置了一些 css,所以我怎样才能删除它(或将其传递给外部文件),因为我有多个文件要转换并且不想复制它。

【问题讨论】:

    标签: css html ascii asciidoc


    【解决方案1】:

    asciidoc 还有一个选项stylesdir=...

    看你的报错信息,不知道你是不是把article.css改成/usr/local/Cellar/asciidoc/8.6.9/etc/asciidoc了?

    也许article.css 位于其他地方?

    如果是这样,这样称呼它:

    asciidoc -b html5 -a icons -a toc2 -a stylesheet=article.css -a stylesdir=/path/to/article.css myPost.adoc


    the asciidoc docs 对此进行了解释。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-12-11
      • 2011-06-19
      • 1970-01-01
      • 2011-09-01
      • 2017-08-10
      • 2011-02-13
      • 1970-01-01
      相关资源
      最近更新 更多