File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 52
52
# run: pip install furo myst_parser sphinx-prompt sphinx_substitution_extensions sphinx_issues sphinx_inline_tabs pygments
53
53
run : pip install furo myst_parser sphinx_substitution_extensions sphinx_issues sphinx_inline_tabs pygments
54
54
- name : Build Sphinx documentation with Gradle
55
- run : FLOATING_TOC=false ./gradlew -DFLOATING_TOC=false gitChangelogTask renderRR xslt xmldoc sphinx
55
+ run : ./gradlew -DFLOATING_TOC=false gitChangelogTask renderRR xslt xmldoc sphinx
56
56
- name : Deploy Sphinx documentation
57
57
uses : actions/configure-pages@main
58
58
- name : Upload artifact
Original file line number Diff line number Diff line change @@ -206,15 +206,17 @@ tasks.register('xmldoc', Javadoc) {
206
206
title = " API $version "
207
207
208
208
options. addBooleanOption(" rst" , true )
209
- if (Boolean . parseBoolean(System . getenv() . getOrDefault( " FLOATING_TOC" , " false " ))) {
210
- options. addBooleanOption(" withFloatingToc" ," true" )
209
+ if (Boolean . parseBoolean(System . getProperty( " FLOATING_TOC" , " true " ))) {
210
+ options. addBooleanOption(" withFloatingToc" , true )
211
211
}
212
212
options. addStringOption(" basePackage" , " net.sf.jsqlparser" )
213
213
options. addStringOption(" filename" , outFile. getName())
214
214
215
- copy {
216
- from rstFile
217
- into layout. projectDirectory. dir(" src/site/sphinx/" ). asFile
215
+ doLast {
216
+ copy {
217
+ from rstFile
218
+ into layout. projectDirectory. dir(" src/site/sphinx/" ). asFile
219
+ }
218
220
}
219
221
}
220
222
@@ -481,7 +483,7 @@ tasks.register('xslt', SaxonXsltTask) {
481
483
stylesheet file(' src/main/resources/rr/xhtml2rst.xsl' )
482
484
483
485
parameters(
484
- " withFloatingToc" : System . getenv() . getOrDefault (" FLOATING_TOC" , " true" ),
486
+ " withFloatingToc" : System . getProperty (" FLOATING_TOC" , " true" ),
485
487
" isSnapshot" : Boolean . toString(version. endsWith(" -SNAPSHOT" ))
486
488
)
487
489
You can’t perform that action at this time.
0 commit comments