Skip to content

Commit e54fba0

Browse files
author
Joan
committed
aronta site structure
1 parent 5cf4aed commit e54fba0

38 files changed

+1518
-146
lines changed

.gitignore

+11-37
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,13 @@
1-
*.iml
2-
.idea
3-
target/
4-
build/
5-
.gradle/
6-
pom.xml.tag
7-
pom.xml.releaseBackup
8-
pom.xml.versionsBackup
9-
pom.xml.next
10-
release.properties
11-
dependency-reduced-pom.xml
12-
buildNumber.properties
13-
.mvn/timing.properties
14-
15-
.cache
1+
/build/
2+
/node_modules/
3+
/.cache/
4+
*rantora.adoc
165

17-
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
18-
!/.mvn/wrapper/maven-wrapper.jar
19-
.settings
20-
.vscode
21-
.project
22-
.classpath
23-
docs/output/*
24-
/hello.txt
25-
.idea/
26-
work/**/*
27-
!work/README.md
28-
#
29-
**/setenv.sh
6+
/.vscode/
7+
.ts/
8+
.idea
9+
/public/
10+
/TODO/
11+
.idea.
3012

31-
src/**
32-
pom.xml
33-
mvnw
34-
mvnw.cmd
35-
.mvn
36-
gh-pages
37-
node_modules
38-
package.json
39-
dev-site.yml
13+
**/.DS_Store
File renamed without changes.

bin/build.sh

-17
This file was deleted.

bin/comment-include.sh

-3
This file was deleted.

bin/createFile.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
TEMPLATE=./docs/template.adoc
2+
slug=$1
3+
file=$2
4+
export heading=$(q -H -d , "SELECT heading FROM ./docs/arotna.csv WHERE slug = '$slug'")
5+
6+
echo $heading
7+
cat $TEMPLATE | sed -e s/{slug}/$slug/g | sed -e s/{heading}/"$heading"/g > $file

bin/fix-div.sh

-4
This file was deleted.

bin/quick-build.sh

+34-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,41 @@
22
#
33
# Run from root level of repo, eg ./bin/quick-build.sh local-site.yml
44

5+
# create nav.adoc
6+
q -H -d , "SELECT prefix ||' xref::' ||slug||'.adoc[' ||navtext|| ']' FROM ./docs/arotna.csv" > ./docs/nav.adoc
7+
8+
# create files if necessary
9+
mapfile -t file_array < <( q -H -d , "SELECT slug FROM ./docs/arotna.csv" )
10+
11+
for slug in "${file_array[@]}"
12+
do
13+
file="./docs/pages/$slug.adoc"
14+
echo $file
15+
if [ ! -f $file ]; then
16+
echo "File not found!"
17+
./bin/createFile.sh $slug $file
18+
19+
fi
20+
done
21+
22+
23+
# create toc into _partials
24+
25+
q -H -d , "SELECT prefix ||' xref::' ||slug||'.adoc[' ||heading|| ']' FROM ./docs/arotna.csv" > ./docs/pages/_partials/toc.adoc
26+
27+
# create rendered assembly
28+
29+
echo ':toc:' > ./docs/master.adoc
30+
31+
echo 'include::pages/index.adoc[leveloffset=0,tags=!excludeDownstream]' >> ./docs/master.adoc
32+
33+
q -H -d , "SELECT 'include::pages/' ||slug||'.adoc[leveloffset='|| level ||']' FROM ./docs/arotna.csv" >> ./docs/master.adoc
34+
35+
# create single.adoc
36+
37+
./bin/asciidoc-coalescer.rb ./docs/master.adoc > ./docs/pages/single.adoc
38+
539
# generate html
640

741
antora $1
842

9-
#fix html
10-
11-
./bin/fix-div.sh

bin/sitemap.xml

-55
This file was deleted.

bin/workshop.sh

-16
This file was deleted.

modules/ROOT/arotna.csv

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
level,prefix,heading,slug,navtext
2+
1,*,
3+
2,**,
4+
2,**,
5+
2,**,
File renamed without changes.

documentation/modules/ROOT/pages/assembly_knative-v050-OCP-4x.adoc renamed to modules/ROOT/pages/assembly_knative-v050-OCP-4x.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ include::_attributes.adoc[]
88

99

1010
// Knative on OpenShift 4.x cluster overview
11-
include::con_knative-v050-OCP-4x.adoc[leveloffset=+1]
11+
//include::con_knative-v050-OCP-4x.adoc[leveloffset=+1]
1212

1313
// Installing Knative on an OpenShift cluster 4.x using the script provided
14-
include::proc_knative-v050-install-OCP-4x.adoc[leveloffset=+1]
14+
//include::proc_knative-v050-install-OCP-4x.adoc[leveloffset=+1]
1515

1616
// Allowing external access to Knative services for OCP 4.x (Creating an OpenShift Route pointing to the istio-ingressgateway for each of your Knative Service)
17-
include::proc_knative-v050-creating-OCP-route-pointing-istio.adoc[leveloffset=+1]
17+
//include::proc_knative-v050-creating-OCP-route-pointing-istio.adoc[leveloffset=+1]
1818

netlify.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[build]
2+
base = "netlify"
3+
publish = "build/site"
4+
command = "node_modules/.bin/antora --html-url-extension-style=indexify --pull ../local-site.yml"
5+
6+
[build.environment]
7+
NODE_VERSION = "10"
8+
BUILD_ONLY = "true"
9+
ANTORA_CACHE_DIR = "node_modules/.cache/antora"
10+
11+
[context.production.environment]
12+
13+
[context.deploy-preview]
14+
command = "node_modules/.bin/antora --html-url-extension-style=indexify --pull --url $DEPLOY_PRIME_URL ../site.yml"

netlify/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

netlify/package.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "antora-docs-netlify",
3+
"private": true,
4+
"devDependencies": {
5+
"@antora/cli": "2.0.0",
6+
"@antora/site-generator-default": "2.0.0"
7+
}
8+
}

0 commit comments

Comments
 (0)