-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NIFI-13915 Updated documentation for NiFi 2.0.0
- Loading branch information
1 parent
f41b05d
commit 50bc21b
Showing
13 changed files
with
733 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
CURRENT_VERSION=2.0.0 | ||
|
||
RESOURCES_DIR=resources | ||
PREBUILD_DIR=prebuild | ||
|
||
MAVEN_BASE_URL=https://repo1.maven.org/maven2 | ||
|
||
MANIFEST_JAR_URL="$MAVEN_BASE_URL/org/apache/nifi/nifi-runtime-manifest/$CURRENT_VERSION/nifi-runtime-manifest-$CURRENT_VERSION.jar" | ||
MANIFEST_JAR_PATH=$RESOURCES_DIR/nifi-runtime-manifest.jar | ||
MANIFEST_JSON=nifi-runtime-manifest.json | ||
|
||
NIFI_DOCS_ZIP_URL="$MAVEN_BASE_URL/org/apache/nifi/nifi-docs/$CURRENT_VERSION/nifi-docs-$CURRENT_VERSION-resources.zip" | ||
NIFI_DOCS_ZIP_PATH=$RESOURCES_DIR/nifi-docs-resources.zip | ||
|
||
# Create Hugo directories | ||
if [ ! -d $RESOURCES_DIR ];then | ||
mkdir $RESOURCES_DIR | ||
fi | ||
|
||
# Download Runtime Manifest JAR and extract JSON to prebuild | ||
echo "Downloading $MANIFEST_JAR_URL" | ||
curl -o $MANIFEST_JAR_PATH $MANIFEST_JAR_URL | ||
unzip -q -o -d $PREBUILD_DIR/assets $MANIFEST_JAR_PATH $MANIFEST_JSON | ||
|
||
# Download Documentation Resources and extract to prebuild | ||
echo "Downloading $NIFI_DOCS_ZIP_URL" | ||
curl -o $NIFI_DOCS_ZIP_PATH $NIFI_DOCS_ZIP_URL | ||
unzip -q -o -d $PREBUILD_DIR/public $NIFI_DOCS_ZIP_PATH | ||
|
||
# Build components using prebuild directory with Hugo | ||
hugo -s $PREBUILD_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
title = "Apache NiFi" | ||
copyright = "The Apache Software Foundation" | ||
disableKinds = ["RSS", "sitemap", "taxonomy", "term"] | ||
|
||
[outputs] | ||
home = ["html"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{{ $manifest := dict }} | ||
{{ with resources.Get "nifi-runtime-manifest.json" }} | ||
{{ with . | transform.Unmarshal }} | ||
{{ $manifest = . }} | ||
{{ end }} | ||
{{ else }} | ||
not found | ||
{{ end }} | ||
|
||
{{ range $manifest.bundles }} | ||
{{ range .componentManifest.controllerServices }} | ||
{{ $simpleClassName := replaceRE `.+?\.?([^\.]+)$` "$1" .type }} | ||
{{ $metadata := merge . (dict "title" $simpleClassName "componentType" "controller-services") }} | ||
{{ $string := jsonify $metadata }} | ||
{{ $filename := printf "components/%s/_index.md" .type }} | ||
{{ $resource := resources.FromString $filename $string }} | ||
{{ $file := $resource.RelPermalink }} | ||
{{ end }} | ||
{{ range .componentManifest.processors }} | ||
{{ $simpleClassName := replaceRE `.+?\.?([^\.]+)$` "$1" .type }} | ||
{{ $metadata := merge . (dict "title" $simpleClassName "componentType" "processors") }} | ||
{{ $string := jsonify $metadata }} | ||
{{ $filename := printf "components/%s/_index.md" .type }} | ||
{{ $resource := resources.FromString $filename $string }} | ||
{{ $file := $resource.RelPermalink }} | ||
{{ end }} | ||
{{ range .componentManifest.reportingTasks }} | ||
{{ $simpleClassName := replaceRE `.+?\.?([^\.]+)$` "$1" .type }} | ||
{{ $metadata := merge . (dict "title" $simpleClassName "componentType" "reporting-tasks") }} | ||
{{ $string := jsonify $metadata }} | ||
{{ $filename := printf "components/%s/_index.md" .type }} | ||
{{ $resource := resources.FromString $filename $string }} | ||
{{ $file := $resource.RelPermalink }} | ||
{{ end }} | ||
{{ range .componentManifest.parameterProviders }} | ||
{{ $simpleClassName := replaceRE `.+?\.?([^\.]+)$` "$1" .type }} | ||
{{ $metadata := merge . (dict "title" $simpleClassName "componentType" "parameter-providers") }} | ||
{{ $string := jsonify $metadata }} | ||
{{ $filename := printf "components/%s/_index.md" .type }} | ||
{{ $resource := resources.FromString $filename $string }} | ||
{{ $file := $resource.RelPermalink }} | ||
{{ end }} | ||
{{ range .componentManifest.flowAnalysisRules }} | ||
{{ $simpleClassName := replaceRE `.+?\.?([^\.]+)$` "$1" .type }} | ||
{{ $metadata := merge . (dict "title" $simpleClassName "componentType" "flow-analysis-rules") }} | ||
{{ $string := jsonify $metadata }} | ||
{{ $filename := printf "components/%s/_index.md" .type }} | ||
{{ $resource := resources.FromString $filename $string }} | ||
{{ $file := $resource.RelPermalink }} | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.