@@ -47,17 +47,14 @@ configure(rootProject) {
4747 group = ' documentation'
4848 description = ' Generate all documentation'
4949
50- dependsOn ' :solr:documentation:assemble '
50+ dependsOn ' :solr:documentation:documentation '
5151 }
52-
53- assemble. dependsOn documentation
5452}
5553
5654// docroot will point to Lucene and Solr relative directory for each sub-project.
5755configure(project(' :solr:documentation' )) {
5856 ext {
5957 docroot = file(" ${ buildDir} /site" )
60- docrootMinimal = file(" ${ buildDir} /minimalSite" )
6158
6259 markdownSrc = file(" src/markdown" )
6360 assets = file(" src/assets" )
@@ -80,62 +77,22 @@ configure(project(':solr:documentation')) {
8077 into project. docroot
8178 }
8279
83- assemble {
84- dependsOn documentation
85- }
86-
8780 configurations {
88- site
81+ // Not part of 'assemble': only built on demand (e.g. by the release process or the ref guide build).
82+ site {
83+ visible = false
84+ }
8985 }
9086
9187 artifacts {
9288 site project. docroot, {
9389 builtBy documentation
9490 }
9591 }
96-
97- task documentationMinimal() {
98- group = ' documentation'
99- description = " Generate stub Solr documentation pointing to web page (that's part of Solr TGZ)"
100- dependsOn ' copyMiniDocumentationAssets' ,
101- ' createMiniDocumentationIndex' ,
102- ' copyChangesToHtmlForMiniSite'
103- }
104-
105- task copyChangesToHtmlForMiniSite(type : Copy ) {
106- dependsOn ' copyDocumentationAssets'
107- dependsOn ' markdownToHtml'
108-
109- from project. docroot
110- into project. docrootMinimal
111- include ' changes/**'
112- dependsOn ' changesToHtml'
113- }
114-
115- task copyMiniDocumentationAssets(type : Copy ) {
116- includeEmptyDirs = false
117- from(' src/assets' )
118- into project. docrootMinimal
119- }
120-
121- assemble {
122- dependsOn documentationMinimal
123- }
124-
125- configurations {
126- minimalSite
127- }
128-
129- artifacts {
130- minimalSite project. docrootMinimal, {
131- builtBy documentationMinimal
132- }
133- }
13492}
13593
13694configure(project(" :solr" )) {
13795 ext {
13896 docroot = project(' documentation' ). docroot
139- docrootMinimal = project(' documentation' ). docrootMinimal
14097 }
14198}
0 commit comments