楼主:
qrtt1 (有些事,有时候。。。)
2016-05-21 01:19:12※ 引述《mnbhjk123 (iEvan)》之铭言:
: 各位大大好:
: 最近要为了自己写的系统写一份Document,
: 参考到Spring Framework的Reference Document,
: http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#websocket-server-handler
: 想请大家这种文件是用那种软件写的阿??
: 因为我想写的Document也是需要大量的simple code做为背景
看它的 source code 里的 build.gradle 是这么写的:
https://github.com/spring-projects/spring-framework/
blob/master/build.gradle#L1145
(http://bit.ly/1qz5x1D)
configure(rootProject) {
description = "Spring Framework"
apply plugin: "org.asciidoctor.convert"
apply plugin: "docbook-reference"
apply plugin: "groovy"
// apply plugin: "detect-split-packages"
apply from: "${gradleScriptDir}/jdiff.gradle"
asciidoctor {
sourceDir project.file('src/asciidoc')
separateOutputDirs = false
backends = ['docbook']
options doctype: 'book', eruby: 'erubis'
attributes 'spring-version': project.version,
'revnumber': project.version, 'docinfo': ""
}
reference {
sourceDir = asciidoctor.outputDir
pdfFilename = "spring-framework-reference.pdf"
epubFilename = "spring-framework-reference.epub"
expandPlaceholders = ""
}
afterEvaluate {
tasks.findAll { it.name.startsWith("reference") }
.each{ it.dependsOn.add("asciidoctor") }
}
======================================================================
可以知道它有用 asciidoctor 配合 docbook 使用。
档案来源是来自 src/asciidoc 路径
https://github.com/spring-projects/spring-framework/
tree/master/src/asciidoc
(http://bit.ly/1qz6hDL)
有了这些资讯,你就能用关键字去 google 一下了