Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Latest for Cloud-RAD #199

Merged
merged 2 commits into from Oct 20, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
92 changes: 72 additions & 20 deletions pom.xml
@@ -1,5 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-shared-config</artifactId>
Expand All @@ -26,7 +28,8 @@
</organization>
<scm>
<connection>scm:git:git@github.com:googleapis/java-shared-config.git</connection>
<developerConnection>scm:git:git@github.com:googleapis/java-shared-config.git</developerConnection>
<developerConnection>scm:git:git@github.com:googleapis/java-shared-config.git
</developerConnection>
<url>https://github.com/googleapis/java-shared-config</url>
<tag>HEAD</tag>
</scm>
Expand Down Expand Up @@ -195,7 +198,8 @@
<version>3.1.2</version>
<configuration>
<ignoredUnusedDeclaredDependencies>
<ignoredUnusedDeclaredDependency>javax.annotation:javax.annotation-api</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>javax.annotation:javax.annotation-api
</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</plugin>
Expand All @@ -221,7 +225,7 @@
<dependency>
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format</artifactId>
<version>1.7</version>
<version>1.9</version>
lesv marked this conversation as resolved.
Show resolved Hide resolved
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -640,12 +644,59 @@
</plugins>
</build>
</profile>

<profile>
<id>enable-integration-tests</id>
<properties>
<skipITs>false</skipITs>
</properties>
</profile>

<profile>
<!-- NOTE - this profile is still in progress and needs work -->
<id>docFX</id>
<activation>
<property>
<name>docFX</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<phase>site</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
<configuration>
<doclet>com.microsoft.doclet.DocFxDoclet</doclet>
<docletArtifact>
<groupId>com.microsoft</groupId>
<artifactId>docfx-doclet</artifactId>
<version>1.0-SNAPSHOT</version>
lesv marked this conversation as resolved.
Show resolved Hide resolved
</docletArtifact>
<additionalDependencies>
<additionalDependency>
<groupId>com.google.j2objc</groupId>
<artifactId>j2objc-annotations</artifactId>
<version>1.3</version>
</additionalDependency>
</additionalDependencies>
<useStandardDocletOptions>false</useStandardDocletOptions>
<additionalOptions>-outputpath ${project.build.directory}/docfx/</additionalOptions>
<!-- Add additional options here when needed -->
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>devsite-apidocs</id>
<activation>
Expand All @@ -656,6 +707,8 @@
</activation>
<build>
<plugins>
<!-- WARNING - JavaDoc / DocLava must be run using Java 8 and nothing higher
AntRun version must be the correct version or the syntax below is incorrect! -->
<plugin>
<!-- Generate API docs using Doclava for the developer site. -->
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down Expand Up @@ -693,13 +746,13 @@
<additionalOption>/java/_project.yaml</additionalOption>
<additionalOption>-hdf</additionalOption>
<additionalOption>devsite.path</additionalOption>
<additionalOption>${docRoot}</additionalOption>
<additionalOption>${docRoot}${env.NAME}/latest/</additionalOption>
<additionalOption>-d</additionalOption>
<additionalOption>${project.build.directory}/devsite</additionalOption>
<additionalOption>-templatedir</additionalOption>
<additionalOption>${devsite.template}</additionalOption>
<additionalOption>-toroot</additionalOption>
<additionalOption>${docRoot}</additionalOption>
<additionalOption>${docRoot}${env.NAME}/latest/</additionalOption>
<additionalOption>-yaml</additionalOption>
<additionalOption>_toc.yaml</additionalOption>
<additionalOption>-warning</additionalOption>
Expand All @@ -711,7 +764,7 @@
<plugin>
<!-- Clean up some references and files. -->
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<version>3.0.0</version>
<executions>
<execution>
<phase>site</phase>
Expand All @@ -720,19 +773,18 @@
</goals>
<configuration>
<target>
<echo message="Updating relative links in API docs" />
<!-- TODO: What is the right behavior for io* and google*? -->
<replace dir="${project.build.directory}/devsite" token="href=&quot;com" value="href=&quot;${docRoot}com" />
<replace dir="${project.build.directory}/devsite" token="href=&quot;io" value="href=&quot;${docRoot}io" />
<replace dir="${project.build.directory}/devsite" token="href=&quot;google" value="href=&quot;${docRoot}google" />
<copy file="${project.build.directory}/devsite/assets/_toc.yaml" todir="${project.build.directory}/devsite/reference" />
<echo message="Removing files not needed by Devsite" />
<delete file="${project.build.directory}/devsite/reference/classes.html" />
<delete file="${project.build.directory}/devsite/reference/hierarchy.html" />
<delete file="${project.build.directory}/devsite/reference/index.html" />
<delete file="${project.build.directory}/devsite/reference/lists.js" />
<delete file="${project.build.directory}/devsite/reference/packages.html" />
<delete file="${project.build.directory}/devsite/reference/current.xml" />
<echo message="Removing files not needed by CloudSite / DevSite"/>
<delete file="${project.build.directory}/devsite/reference/classes.html"/>
<delete file="${project.build.directory}/devsite/reference/index.html"/>
<delete file="${project.build.directory}/devsite/reference/packages.html"/>
<delete file="${project.build.directory}/devsite/reference/hierarchy.html"/>
<delete file="${project.build.directory}/devsite/reference/lists.js"/>
<delete file="${project.build.directory}/devsite/reference/current.xml"/>

<echo message="duplicating _toc.yaml" />
<copy
file="${project.build.directory}/devsite/assets/_toc.yaml"
todir="${project.build.directory}/devsite/reference" />
</target>
</configuration>
</execution>
Expand Down