Skip to content

Commit 52802a8

Browse files
committed
Use relative links for Javadoc in User Guide (#310)
1 parent aa08c07 commit 52802a8

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,8 @@ configure(rootProject) {
444444
}
445445
}
446446

447-
// docsVersion is also used in documentation.gradle.
448-
ext.docsVersion = project.version.contains('SNAPSHOT') ? 'snapshot' : project.version
449-
ext.docsDir = new File(buildDir, 'ghpages-docs')
447+
def docsVersion = project.version.contains('SNAPSHOT') ? 'snapshot' : project.version
448+
def docsDir = new File(buildDir, 'ghpages-docs')
450449

451450
task prepareDocsForUploadToGhPages(dependsOn: [aggregateJavadocs, ":documentation:asciidoctor"], type: Copy) {
452451
outputs.dir docsDir

documentation/documentation.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ asciidoctor {
3737
attributes 'jupiter-version': project.property('version'),
3838
'platform-version': project.property('platformVersion'),
3939
'vintage-version': project.property('vintageVersion'),
40-
'docs-version': project.property('docsVersion'),
4140
'release-branch': project.property('releaseBranch'),
4241
'revnumber' : project.version,
4342
'mainDir': project.sourceSets.main.java.srcDirs[0],

documentation/src/docs/asciidoc/index.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ Stefan Bechtold; Sam Brannen; Johannes Link; Matthias Merdes; Marc Philipp
44

55
:sectnums:
66

7-
:docs-root: http://junit.org/junit5/docs/{docs-version}
8-
:javadoc-root: {docs-root}/api
7+
:javadoc-root: link:../api
98

109
:snapshot-repo: https://oss.sonatype.org/content/repositories/snapshots
1110

0 commit comments

Comments
 (0)