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
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
{{< /highlight >}}
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>

View File

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

View File

@ -19,13 +19,13 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-ozone</artifactId>
<artifactId>hadoop-hdds</artifactId>
<version>0.4.0-SNAPSHOT</version>
</parent>
<artifactId>hadoop-ozone-docs</artifactId>
<artifactId>hadoop-hdds-docs</artifactId>
<version>0.4.0-SNAPSHOT</version>
<description>Apache Hadoop Ozone Documentation</description>
<name>Apache Hadoop Ozone Documentation</name>
<description>Apache Hadoop HDDS/Ozone Documentation</description>
<name>Apache Hadoop HDDS/Ozone Documentation</name>
<packaging>jar</packaging>
<dependencies>
@ -56,11 +56,15 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<excludes>
<exclude>themes/ozonedoc/static/js/bootstrap.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</exclude>
<exclude>themes/ozonedoc/static/css/bootstrap-theme.min.css.map</exclude>
<exclude>themes/ozonedoc/static/fonts/glyphicons-halflings-regular.svg</exclude>
<exclude>themes/ozonedoc/static/css/bootstrap-theme.min.css.map
</exclude>
<exclude>
themes/ozonedoc/static/fonts/glyphicons-halflings-regular.svg
</exclude>
<exclude>themes/ozonedoc/layouts/index.html</exclude>
<exclude>themes/ozonedoc/theme.toml</exclude>
</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>server-scm</module>
<module>tools</module>
<module>docs</module>
</modules>
@ -106,6 +107,12 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>${hdds.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
<version>${hdds.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<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>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-container-service</artifactId>
@ -118,6 +123,13 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
</outputDirectory>
<includes>webapps/static/**/*.*</includes>
</artifactItem>
<artifactItem>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdds-docs</artifactId>
<outputDirectory>${project.build.outputDirectory}/webapps/scm
</outputDirectory>
<includes>docs/**/*.*</includes>
</artifactItem>
</artifactItems>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>

View File

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

View File

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

View File

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

View File

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