Re: [問題] Spring Reference Document是用什麼寫的?
※ 引述《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 一下了
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.227.19.140
※ 文章網址: https://www.ptt.cc/bbs/java/M.1463764758.A.890.html
推
05/21 10:18, , 1F
05/21 10:18, 1F
→
05/21 19:38, , 2F
05/21 19:38, 2F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
java 近期熱門文章
PTT數位生活區 即時熱門文章