mirror of
https://github.com/corda/corda.git
synced 2025-04-19 08:36:39 +00:00
disable dependency on pdf docs for building enterprise
This commit is contained in:
parent
fec566fab6
commit
957537547f
@ -21,7 +21,7 @@ def internalPackagePrefixes(sourceDirs) {
|
||||
ext {
|
||||
// TODO: Add '../client/jfx/src/main/kotlin' and '../client/mock/src/main/kotlin' if we decide to make them into public API
|
||||
dokkaSourceDirs = files('../core/src/main/kotlin', '../client/rpc/src/main/kotlin', '../finance/src/main/kotlin', '../client/jackson/src/main/kotlin',
|
||||
'../testing/test-utils/src/main/kotlin', '../testing/node-driver/src/main/kotlin')
|
||||
'../testing/test-utils/src/main/kotlin', '../testing/node-driver/src/main/kotlin')
|
||||
internalPackagePrefixes = internalPackagePrefixes(dokkaSourceDirs)
|
||||
}
|
||||
|
||||
@ -62,10 +62,16 @@ task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
|
||||
task buildDocs(dependsOn: ['apidocs', 'makeDocs'])
|
||||
task apidocs(dependsOn: ['dokka', 'dokkaJavadoc'])
|
||||
|
||||
task makeDocs(type: Exec, dependsOn: ['installDocsiteRequirements']) {
|
||||
// TODO: Non-msys Windows script
|
||||
commandLine 'cmd', '/c', 'bash make-docsite.sh' // Windows
|
||||
commandLine 'bash', './make-docsite.sh' // Linux
|
||||
task makeDocs(dependsOn: ['installDocsiteRequirements', 'makeHtmlDocs', 'makePdfDocs'])
|
||||
|
||||
task makeHtmlDocs(type: Exec, dependsOn: ['installDocsiteRequirements']) {
|
||||
commandLine 'cmd', '/c', 'bash make-docsite-html.sh' // Windows
|
||||
commandLine 'bash', './make-docsite-html.sh' // Linux
|
||||
}
|
||||
|
||||
task makePdfDocs(type: Exec, dependsOn: ['installDocsiteRequirements']) {
|
||||
commandLine 'cmd', '/c', 'bash make-docsite-pdf.sh' // Windows
|
||||
commandLine 'bash', './make-docsite-pdf.sh' // Linux
|
||||
}
|
||||
|
||||
task installDocsiteRequirements(type: Exec) {
|
||||
|
17
docs/make-docsite-html.sh
Executable file
17
docs/make-docsite-html.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# The purpose of this file is to make the docsite in a python virtualenv
|
||||
# You can call it manually if running make manually, otherwise gradle will run it for you
|
||||
|
||||
# Activate the virtualenv
|
||||
if [ -d "virtualenv/bin" ]
|
||||
then
|
||||
# it's a Unix system
|
||||
source virtualenv/bin/activate
|
||||
else
|
||||
source virtualenv/Scripts/activate
|
||||
fi
|
||||
|
||||
|
||||
echo "Generating HTML pages ..."
|
||||
make html
|
||||
|
@ -14,8 +14,5 @@ fi
|
||||
echo "Generating PDF document ..."
|
||||
make latexpdf
|
||||
|
||||
echo "Generating HTML pages ..."
|
||||
make html
|
||||
|
||||
echo "Moving PDF file from $(eval echo $PWD/build/pdf/corda-developer-site.pdf) to $(eval echo $PWD/build/html/_static/corda-developer-site.pdf)"
|
||||
mv $PWD/build/latex/corda-developer-site.pdf $PWD/build/html/_static/corda-developer-site.pdf
|
2
node/dist/build.gradle
vendored
2
node/dist/build.gradle
vendored
@ -133,7 +133,7 @@ if (Os.isFamily(Os.FAMILY_UNIX)) {
|
||||
}
|
||||
}
|
||||
|
||||
task buildNode(type: Copy, dependsOn: [buildLauncher, project(':docs').tasks['makeDocs'], project(':node').tasks['jar']]) {
|
||||
task buildNode(type: Copy, dependsOn: [buildLauncher, project(':docs').tasks['makeHtmlDocs'], project(':node').tasks['jar']]) {
|
||||
description 'Build stand-alone Corda Node distribution'
|
||||
|
||||
def dir = file("$outputDir/corda-enterprise")
|
||||
|
Loading…
x
Reference in New Issue
Block a user