Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何从ascidoc文件构建网站?_Html_Converter_Asciidoc - Fatal编程技术网

Html 如何从ascidoc文件构建网站?

Html 如何从ascidoc文件构建网站?,html,converter,asciidoc,Html,Converter,Asciidoc,有没有一个简单的方法来生成一个网站与菜单,。。。从ascidoc文件 假设我有两个ASCII文档文件: chapter-1.asciidoc chapter-2.asciidoc chapter-3.asciidoc chapter-4.asciidoc 我还有一个网站框架,它包含除文件“主要内容”之外的所有内容 <html> <head> </head> <body> <a href="chapter-1.asciidoc"> &l

有没有一个简单的方法来生成一个网站与菜单,。。。从ascidoc文件

假设我有两个ASCII文档文件:

chapter-1.asciidoc
chapter-2.asciidoc
chapter-3.asciidoc
chapter-4.asciidoc
我还有一个网站框架,它包含除文件“主要内容”之外的所有内容

<html>
<head>
</head>
<body>
<a href="chapter-1.asciidoc">
<a href="chapter-2.asciidoc">
<a href="chapter-3.asciidoc">
<a href="chapter-4.asciidoc">

CONTENT SHOULD GO HERE

</body>
</html>

内容应该放在这里
现在,我想生成4个html文件,其中包含呈现的html命令,并将其放入网站框架的副本中(此处替换

内容应放在此处


有没有这样的工具?

您最好使用Middleman、awestruct、jekyll等工具。ascidoc(python impl)和ascidoctor(ruby或javascript impls或java包装器ascidoctorj)都不能开箱即用。另一种方法是使用上述实现之一并调用API来呈现asciidoc文档,然后吐出呈现的内容