diff --git a/changelog/unreleased/PR#4641-remove_docs_distro.yml b/changelog/unreleased/PR#4641-remove_docs_distro.yml new file mode 100644 index 000000000000..a95b65ec1756 --- /dev/null +++ b/changelog/unreleased/PR#4641-remove_docs_distro.yml @@ -0,0 +1,8 @@ +title: > + Remove docs/ from the Solr binary distribution. Add online links to such in README.txt +type: other +authors: + - name: David Smiley +links: + - name: PR#4641 + url: https://github.com/apache/solr/pull/4641 diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py index cd997b220b03..24a9e395e243 100755 --- a/dev-tools/scripts/smokeTestRelease.py +++ b/dev-tools/scripts/smokeTestRelease.py @@ -679,9 +679,9 @@ def verifyBinaryUnpacked(java, artifact, unpackPath, version, gitRevision): is_in_list(in_root_folder, ['LICENSE.txt', 'NOTICE.txt', 'README.txt', 'CHANGELOG.md']) if isSlim: - is_in_list(in_root_folder, ['bin', 'docker', 'docs', 'example', 'licenses', 'server', 'lib']) + is_in_list(in_root_folder, ['bin', 'docker', 'example', 'licenses', 'server', 'lib']) else: - is_in_list(in_root_folder, ['bin', 'modules', 'cross-dc-manager', 'docker', 'docs', 'example', 'licenses', 'server', 'lib']) + is_in_list(in_root_folder, ['bin', 'modules', 'cross-dc-manager', 'docker', 'example', 'licenses', 'server', 'lib']) if len(in_root_folder) > 0: raise RuntimeError('solr: unexpected files/dirs in artifact %s: %s' % (artifact, in_root_folder)) diff --git a/gradle/documentation/documentation.gradle b/gradle/documentation/documentation.gradle index 8aa3f4a0bb01..700116ea13d1 100644 --- a/gradle/documentation/documentation.gradle +++ b/gradle/documentation/documentation.gradle @@ -47,17 +47,14 @@ configure(rootProject) { group = 'documentation' description = 'Generate all documentation' - dependsOn ':solr:documentation:assemble' + dependsOn ':solr:documentation:documentation' } - - assemble.dependsOn documentation } // docroot will point to Lucene and Solr relative directory for each sub-project. configure(project(':solr:documentation')) { ext { docroot = file("${buildDir}/site") - docrootMinimal = file("${buildDir}/minimalSite") markdownSrc = file("src/markdown") assets = file("src/assets") @@ -80,12 +77,11 @@ configure(project(':solr:documentation')) { into project.docroot } - assemble { - dependsOn documentation - } - configurations { - site + // Not part of 'assemble': only built on demand (e.g. by the release process or the ref guide build). + site { + visible = false + } } artifacts { @@ -93,49 +89,10 @@ configure(project(':solr:documentation')) { builtBy documentation } } - - task documentationMinimal() { - group = 'documentation' - description = "Generate stub Solr documentation pointing to web page (that's part of Solr TGZ)" - dependsOn 'copyMiniDocumentationAssets', - 'createMiniDocumentationIndex', - 'copyChangesToHtmlForMiniSite' - } - - task copyChangesToHtmlForMiniSite(type: Copy) { - dependsOn 'copyDocumentationAssets' - dependsOn 'markdownToHtml' - - from project.docroot - into project.docrootMinimal - include 'changes/**' - dependsOn 'changesToHtml' - } - - task copyMiniDocumentationAssets(type: Copy) { - includeEmptyDirs = false - from('src/assets') - into project.docrootMinimal - } - - assemble { - dependsOn documentationMinimal - } - - configurations { - minimalSite - } - - artifacts { - minimalSite project.docrootMinimal, { - builtBy documentationMinimal - } - } } configure(project(":solr")) { ext { docroot = project('documentation').docroot - docrootMinimal = project('documentation').docrootMinimal } } diff --git a/gradle/documentation/markdown.gradle b/gradle/documentation/markdown.gradle index 0506badfe8f3..eb9458bdb9cb 100644 --- a/gradle/documentation/markdown.gradle +++ b/gradle/documentation/markdown.gradle @@ -73,15 +73,6 @@ configure(project(':solr:documentation')) { withProjectList() } - - task createMiniDocumentationIndex(type: MarkdownTemplateTask) { - outputFile = file("${project.docrootMinimal}/index.html") - templateFile = file("${project.markdownSrc}/online-link.template.md") - - // list all properties used by the template here to allow uptodate checks to be correct: - inputs.property('version', project.version) - inputs.property('solrDocUrl', project.solrDocUrl).optional(true) - } } // filter that can be used with the "copy" task of Gradle that transforms Markdown files diff --git a/solr/documentation/src/markdown/online-link.template.md b/solr/documentation/src/markdown/online-link.template.md deleted file mode 100644 index 64f208719c9f..000000000000 --- a/solr/documentation/src/markdown/online-link.template.md +++ /dev/null @@ -1,21 +0,0 @@ -