HDDS-832. Docs folder is missing from the Ozone distribution package. Contributed by Elek, Marton.

This commit is contained in:
Anu Engineer 2018-11-12 15:21:31 -08:00 committed by Márton Elek
parent 66b1335bb3
commit 9b01f039eb
57 changed files with 56 additions and 17 deletions

2
.gitignore vendored
View File

@ -60,4 +60,4 @@ log.html
output.xml output.xml
report.html report.html
hadoop-ozone/docs/public hadoop-hdds/docs/public

View File

@ -106,4 +106,3 @@ or it can be invoked to explain a specific action like
ozone sh volume create --help ozone sh volume create --help
{{< /highlight >}} {{< /highlight >}}
This command will give you command line options of the create command. This command will give you command line options of the create command.

View File

@ -36,4 +36,3 @@ Ozone consists of volumes, buckets, and Keys.
<a href="{{< ref "RunningViaDocker.md" >}}"><button class="btn btn-danger btn-lg">Getting started</button></a> <a href="{{< ref "RunningViaDocker.md" >}}"><button class="btn btn-danger btn-lg">Getting started</button></a>

View File

@ -22,7 +22,7 @@ if [ ! "$(which hugo)" ]; then
exit 0 exit 0
fi fi
DESTDIR="$DOCDIR/target/classes/webapps/docs" DESTDIR="$DOCDIR/target/classes/docs"
mkdir -p "$DESTDIR" mkdir -p "$DESTDIR"
cd "$DOCDIR" cd "$DOCDIR"
hugo -d "$DESTDIR" "$@" hugo -d "$DESTDIR" "$@"

View File

@ -19,13 +19,13 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-ozone</artifactId> <artifactId>hadoop-hdds</artifactId>
<version>0.4.0-SNAPSHOT</version> <version>0.4.0-SNAPSHOT</version>
</parent> </parent>
<artifactId>hadoop-ozone-docs</artifactId> <artifactId>hadoop-hdds-docs</artifactId>
<version>0.4.0-SNAPSHOT</version> <version>0.4.0-SNAPSHOT</version>
<description>Apache Hadoop Ozone Documentation</description> <description>Apache Hadoop HDDS/Ozone Documentation</description>
<name>Apache Hadoop Ozone Documentation</name> <name>Apache Hadoop HDDS/Ozone Documentation</name>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
@ -56,11 +56,15 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<excludes> <excludes>
<exclude>themes/ozonedoc/static/js/bootstrap.min.js</exclude> <exclude>themes/ozonedoc/static/js/bootstrap.min.js</exclude>
<exclude>themes/ozonedoc/static/js/jquery.min.js</exclude> <exclude>themes/ozonedoc/static/js/jquery.min.js</exclude>
<exclude>themes/ozonedoc/static/css/bootstrap-theme.min.css</exclude> <exclude>themes/ozonedoc/static/css/bootstrap-theme.min.css
</exclude>
<exclude>themes/ozonedoc/static/css/bootstrap.min.css.map</exclude> <exclude>themes/ozonedoc/static/css/bootstrap.min.css.map</exclude>
<exclude>themes/ozonedoc/static/css/bootstrap.min.css</exclude> <exclude>themes/ozonedoc/static/css/bootstrap.min.css</exclude>
<exclude>themes/ozonedoc/static/css/bootstrap-theme.min.css.map</exclude> <exclude>themes/ozonedoc/static/css/bootstrap-theme.min.css.map
<exclude>themes/ozonedoc/static/fonts/glyphicons-halflings-regular.svg</exclude> </exclude>
<exclude>
themes/ozonedoc/static/fonts/glyphicons-halflings-regular.svg
</exclude>
<exclude>themes/ozonedoc/layouts/index.html</exclude> <exclude>themes/ozonedoc/layouts/index.html</exclude>
<exclude>themes/ozonedoc/theme.toml</exclude> <exclude>themes/ozonedoc/theme.toml</exclude>
</excludes> </excludes>

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -37,6 +37,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<module>container-service</module> <module>container-service</module>
<module>server-scm</module> <module>server-scm</module>
<module>tools</module> <module>tools</module>
<module>docs</module>
</modules> </modules>
@ -106,6 +107,12 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>${hdds.version}</version> <version>${hdds.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
<version>${hdds.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-container-service</artifactId> <artifactId>hadoop-hdds-container-service</artifactId>

View File

@ -49,6 +49,11 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>hadoop-hdds-server-framework</artifactId> <artifactId>hadoop-hdds-server-framework</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-container-service</artifactId> <artifactId>hadoop-hdds-container-service</artifactId>
@ -118,6 +123,13 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
</outputDirectory> </outputDirectory>
<includes>webapps/static/**/*.*</includes> <includes>webapps/static/**/*.*</includes>
</artifactItem> </artifactItem>
<artifactItem>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
<outputDirectory>${project.build.outputDirectory}/webapps/scm
</outputDirectory>
<includes>docs/**/*.*</includes>
</artifactItem>
</artifactItems> </artifactItems>
<overWriteSnapshots>true</overWriteSnapshots> <overWriteSnapshots>true</overWriteSnapshots>
</configuration> </configuration>

View File

@ -107,8 +107,7 @@ run cp "${ROOT}/hadoop-ozone/objectstore-service/target/hadoop-ozone-objectstore
# Optional documentation, could be missing # Optional documentation, could be missing
cp -r "${ROOT}/hadoop-ozone/docs/target/classes/webapps/docs" ./share/hadoop/ozone/webapps/ozoneManager/ cp -r "${ROOT}/hadoop-hdds/docs/target/classes/docs" ./
cp -r "${ROOT}/hadoop-ozone/docs/target/classes/webapps/docs" ./share/hadoop/hdds/webapps/scm/
#Copy docker compose files #Copy docker compose files
run cp -p -r "${ROOT}/hadoop-ozone/dist/src/main/compose" . run cp -p -r "${ROOT}/hadoop-ozone/dist/src/main/compose" .

View File

@ -191,5 +191,9 @@
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-ozone-datanode</artifactId> <artifactId>hadoop-ozone-datanode</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -40,6 +40,11 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>hadoop-ozone-client</artifactId> <artifactId>hadoop-ozone-client</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.bouncycastle</groupId> <groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId> <artifactId>bcprov-jdk15on</artifactId>
@ -75,6 +80,12 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
</outputDirectory> </outputDirectory>
<includes>webapps/static/**/*.*</includes> <includes>webapps/static/**/*.*</includes>
</artifactItem> </artifactItem>
<artifactItem>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
<outputDirectory>${project.build.outputDirectory}/webapps/ozoneManager</outputDirectory>
<includes>docs/**/*.*</includes>
</artifactItem>
</artifactItems> </artifactItems>
<overWriteSnapshots>true</overWriteSnapshots> <overWriteSnapshots>true</overWriteSnapshots>
</configuration> </configuration>

View File

@ -51,7 +51,6 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<module>datanode</module> <module>datanode</module>
<module>s3gateway</module> <module>s3gateway</module>
<module>dist</module> <module>dist</module>
<module>docs</module>
</modules> </modules>
<repositories> <repositories>
@ -132,6 +131,11 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>hadoop-hdds-server-scm</artifactId> <artifactId>hadoop-hdds-server-scm</artifactId>
<version>${hdds.version}</version> <version>${hdds.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
<version>${hdds.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-container-service</artifactId> <artifactId>hadoop-hdds-container-service</artifactId>