Skip to content

Commit d962569

Browse files
committed
README-DEV.adoc: quick-start instructions for editing the tutorial.
1 parent eec2713 commit d962569

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

README-DEV.adoc

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Modifying the tutorial
2+
======================
3+
4+
The tutorial is written in asciidoc and can be updated using any text editor.
5+
You can preview changes as you make them as follows:
6+
7+
1. Install the `antora` website generator and `gulp` build system
8+
+
9+
....
10+
npm install -g @antora/cli @antora/site-generator-default gulp gulp-connect gulp-open yaml-js
11+
....
12+
13+
2. Create a `dev-site.yml` file (the `site.yml` file is for the public website)
14+
+
15+
.dev-site.yml
16+
....
17+
runtime:
18+
cache_dir: ./.cache/antora
19+
20+
site:
21+
title: Knative Tutorial
22+
url: https://redhat-developer-demos.github.io/knative-tutorial
23+
start_page: knative-tutorial::index.adoc
24+
25+
content:
26+
sources:
27+
- url: .
28+
branches: HEAD
29+
start_path: documentation
30+
31+
ui:
32+
bundle:
33+
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable
34+
snapshot: true
35+
supplemental_files: ./supplemental-ui
36+
37+
output:
38+
dir: ./gh-pages
39+
....
40+
41+
3. Run `node_modules/.bin/gulp`
42+
43+
This will generate HTML, start a local web server at `localhost:5373`, open the server index in a browser, and automatically update the HTML when the asciidoc source changes.

0 commit comments

Comments
 (0)