Skip to content

Commit 0d8ca67

Browse files
committed
adapt to new UI
1 parent 537304b commit 0d8ca67

File tree

9 files changed

+41
-5401
lines changed

9 files changed

+41
-5401
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ install/knative-eventing/knative-kafka.yaml
4343
bin/kubectl
4444
gh-pages
4545
staging-gh-pages
46+
47+
yarn.lock

dev-site.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,20 @@ content:
2121
branches: HEAD
2222
asciidoc:
2323
attributes:
24-
tutorial-namespace: knativetutorial
24+
tutorial-namespace: knativetutorial
2525
title: Knative Tutorial
2626
workshop-domain: guru.devx.red
2727
kubernetes-version: v1.15.0
2828
release-version: master
2929
openshift-console-url: https://console-openshift-console.apps.example.com
3030
etherpad-url: http://example.com
3131
extensions:
32-
- ./lib/copy-to-clipboard.js
32+
- ./lib/remote-include-processor.js
3333
- ./lib/tab-block.js
3434
ui:
3535
bundle:
36-
url: https://github.com/redhat-developer-demos/rhd-tutorial-ui/releases/download/v0.0.4/ui-bundle.zip
36+
url: https://github.com/redhat-developer-demos/rhd-tutorial-ui/releases/download/v0.1.9/ui-bundle.zip
37+
snapshot: true
3738
supplemental_files: ./supplemental-ui
3839
output:
3940
dir: ./gh-pages
272 KB
Loading

documentation/modules/ROOT/pages/index.adoc

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,52 @@
22
:page-layout: home
33
:!sectids:
44

5-
****
5+
[cols="3a,2a"]
6+
|===
7+
a|****
68
Deploying applications as Serverless services is becoming a popular architectural style. It seems like many organizations assume that _Functions as a Service (FaaS)_ is serverless. But we think it is more accurate to say that FaaS is one way to do serverless, not the only way. This raises a super critical question for enterprises that may have applications which could be monolith or a microservice: What is the easiest path to serverless application deployment?
79

810
The answer is a platform that can run serverless workloads, while enabling you to have complete control how to configure, build, deploy and run. Ideally, the platform that supports deploying the applications as linux containers. In this chapter we introduce you to one such platform -- https://knative.dev[Knative] --, that helps you to run the serverless workloads in a Kubernetes-native way.
911
****
12+
a|[caption="Knative Cookbook",link="https://developers.redhat.com/books/knative-cookbook/"]
13+
image::knative-cookbook.png[Knative Cookbook,300,300]
14+
|
15+
|===
1016

11-
[.tiles.browse]
1217
== Get started with your serverless journey
13-
18+
[cols="3a,3a",frame=none,grid=rows,stripe]
19+
|===
20+
a|
1421
[.tile]
1522
.xref:knative-tutorial-serving:ROOT:index.adoc[Setup]
1623
* xref:knative-tutorial-serving:ROOT:setup.adoc[Deploy]
1724
* xref:knative-tutorial-serving:ROOT:knative-client.adoc[Knative Client]
18-
25+
a|
1926
[.tile]
2027
.xref:knative-tutorial-serving:ROOT:index.adoc[Knative Serving]
2128
* xref:knative-tutorial-serving:ROOT:basic-fundas.adoc[Serving]
2229
* xref:knative-tutorial-serving:ROOT:scaling.adoc[Auto Scaling]
2330
* xref:knative-tutorial-serving:ROOT:traffic-distribution.adoc[Traffic Distribution]
24-
31+
a|
2532
[.tile]
2633
.xref:knative-tutorial-eventing:ROOT:index.adoc[Knative Eventing]
2734
*** xref:knative-tutorial-eventing:ROOT:eventing-src-to-sink.adoc[Source to Sink]
2835
*** xref:knative-tutorial-eventing:ROOT:channel-and-subscribers.adoc[Channel and Subscribers]
2936
*** xref:knative-tutorial-eventing:ROOT:eventing-trigger-broker.adoc[Brokers and Triggers]
30-
37+
|
3138
ifndef::workshop[]
39+
a|
3240
[.tile]
3341
.xref:knative-tutorial-camelk:ROOT:index.adoc[Apache Camel-K]
3442
* xref:knative-tutorial-camelk:ROOT:setup.adoc[Setup]
3543
* xref:knative-tutorial-camelk:ROOT:camel-k-basics.adoc#deploy-camel-k-kn-integration[Camel-K with Knative Serving]
3644
* xref:knative-tutorial-camelk:ROOT:camel-k-eventing.adoc[Camel-K with Knative Eventing]
3745
* xref:knative-tutorial-camelk:ROOT:camel-k-eventing.adoc#camel-k-es-sink[CamelSource to Sink]
38-
endif::[]
39-
40-
ifndef::workshop[]
46+
a|
4147
[.tile]
4248
.xref:knative-tutorial-adv:ROOT:index.adoc[Advanced]
4349
* xref:knative-tutorial-adv:ROOT:deploy-apache-kafka.adoc[Deploy Apache Kafka]
4450
* xref:knative-tutorial-adv:ROOT:eventing-with-kafka.adoc[Knative Eventing with Apache Kafka]
4551
* xref:knative-tutorial-adv:ROOT:camel-k-cbr.adoc[Content Based Routing with Camel-K]
46-
endif::[]
52+
endif::[]
53+
|===

lib/copy-to-clipboard.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

lib/remote-include-processor.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = function () {
2+
this.includeProcessor(function () {
3+
this.$option('position', '>>')
4+
this.handles((target) => target.startsWith('http'))
5+
this.process((doc, reader, target, attrs) => {
6+
const contents = require('child_process').execFileSync('curl', ['--silent', '-L', target], { encoding: 'utf8' })
7+
reader.pushInclude(contents, target, target, 1, attrs)
8+
})
9+
})
10+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"url": "https://twitter.com/@kamesh_sampath"
99
},
1010
"dependencies": {
11-
"@antora/cli": "2.2",
12-
"@antora/site-generator-default": "2.2.0",
11+
"@antora/cli": "^2.3.1",
12+
"@antora/site-generator-default": "^2.3.1",
1313
"@babel/cli": "^7.5.5",
1414
"@babel/core": "^7.5.5",
1515
"@babel/polyfill": "^7.4.4",

staging.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ content:
1717
- url: [email protected]:redhat-developer-demos/knative-tutorial-module-eventing.git
1818
tags: []
1919
branches: master
20-
- url: [email protected]:redhat-developer-demos/knative-tutorial-module-camelk.git
20+
- url: [email protected]:redhat-developer-demos/knative-tutorial-module-camelk.git
2121
tags: []
2222
branches: master
23-
- url: [email protected]:redhat-developer-demos/knative-tutorial-module-advanced.git
23+
- url: [email protected]:redhat-developer-demos/knative-tutorial-module-advanced.git
2424
tags: []
2525
branches: master
2626
asciidoc:
@@ -33,15 +33,12 @@ asciidoc:
3333
openshift-console-url: https://console-openshift-console.apps.example.com
3434
etherpad-url: http://example.com
3535
extensions:
36-
- ./lib/copy-to-clipboard.js
36+
- ./lib/remote-include-processor.js
3737
- ./lib/tab-block.js
3838
ui:
3939
bundle:
40-
url: https://github.com/redhat-developer-demos/rhd-tutorial-ui/releases/download/v0.0.4/ui-bundle.zip
41-
supplemental_files:
42-
- path: ./supplemental-ui
43-
- path: .nojekyll
44-
- path: ui.yml
45-
contents: "static_files: [ .nojekyll ]"
40+
url: https://github.com/redhat-developer-demos/rhd-tutorial-ui/releases/download/v0.1.9/ui-bundle.zip
41+
snapshot: true
42+
supplemental_files: ./supplemental-ui
4643
output:
4744
dir: ./gh-pages

0 commit comments

Comments
 (0)