You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2021/02/04 18:07:44 UTC

[httpcomponents-website] 02/02: prepare generated documentation integration: LATEST staging+releases

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-website.git

commit f8a1aca473b298e7715c2cd3528be3133087d59e
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Fri Jan 29 08:48:45 2021 +0100

    prepare generated documentation integration: LATEST staging+releases
---
 pom.xml                                            | 30 +++++++++++++++++++++-
 .../documentation.links                            |  3 +++
 .../httpcomponents-core-5.1.x/documentation.links  |  3 +++
 3 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 1bd38a5..d2e9a18 100644
--- a/pom.xml
+++ b/pom.xml
@@ -98,8 +98,8 @@
         <configuration>
           <content>${project.reporting.outputDirectory}</content><!-- no need for site:stage, use target/site -->
           <ignorePathsToDelete><!-- don't delete content until site svnpubsub location refactoring done -->
+            <ignorePathsToDelete>components</ignorePathsToDelete>
             <ignorePathsToDelete>*.html</ignorePathsToDelete>
-            <ignorePathsToDelete>doc</ignorePathsToDelete>
             <ignorePathsToDelete>apidocs</ignorePathsToDelete>
             <ignorePathsToDelete>xref</ignorePathsToDelete>
             <ignorePathsToDelete>xref-test</ignorePathsToDelete>
@@ -126,6 +126,34 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.ant</groupId>
+            <artifactId>ant</artifactId>
+            <version>1.10.9</version>
+          </dependency>
+        </dependencies>
+        <executions>
+          <execution>
+            <id>link-components</id>
+            <phase>site</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <target>
+                <!-- links to components directories containing documentation generated from code -->
+                <symlink action="recreate" overwrite="true">
+                  <fileset dir="${project.reporting.outputDirectory}" includes="**/documentation.links"/>  
+                </symlink>
+              </target>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>
diff --git a/src/site/resources/httpcomponents-client-5.0.x/documentation.links b/src/site/resources/httpcomponents-client-5.0.x/documentation.links
new file mode 100644
index 0000000..28d8f1b
--- /dev/null
+++ b/src/site/resources/httpcomponents-client-5.0.x/documentation.links
@@ -0,0 +1,3 @@
+# links property file for Ant's symlink task in pom.xml:
+# links to components in http://hc.apache.org/components/
+LATEST   ../components/httpcomponents-client-5.0.x/LATEST
diff --git a/src/site/resources/httpcomponents-core-5.1.x/documentation.links b/src/site/resources/httpcomponents-core-5.1.x/documentation.links
new file mode 100644
index 0000000..6a5bed1
--- /dev/null
+++ b/src/site/resources/httpcomponents-core-5.1.x/documentation.links
@@ -0,0 +1,3 @@
+# links property file for Ant's symlink task in pom.xml:
+# links to components in http://hc.apache.org/components/
+LATEST   ../components/httpcomponents-core-5.1.x/LATEST