You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is the UI template used on {url-stackable-docs}[the Stackable docs]. It is based on the {url-default-ui}[Antora default UI]. As intended, this repository is forked from the default UI and customized to our needs. The document below contains information about this repo, but consult the default UI README as well for additional useful information.
18
+
This project is the UI template used on {url-stackable-docs}[the Stackable docs].
19
+
It is based on (forked from) the {url-default-ui}[Antora default UI] and customized to our needs.
20
+
The document below contains information about this repo, but consult the default UI README as well for additional useful information.
20
21
21
22
== Quickstart
22
23
23
-
`npm` is required. We recommend `nvm` to install `npm`, see the Default UI README for instructions on how to install it.
24
+
=== Prerequisites
24
25
25
-
Run
26
+
To preview and bundle the default UI, you need the following software on your computer:
26
27
28
+
* {url-git}[git] (command: `git`)
29
+
* {url-nodejs}[Node.js] (commands: `node` and `npm`)
30
+
31
+
== Build process
32
+
33
+
The UI is built with Gulp.
34
+
Linting, bundling, and previewing are supported.
35
+
This repository is referenced as a submodule in the documentation repository, and the bundling takes place there.
36
+
37
+
To create a bundle run:
27
38
[source,js]
28
39
npm ci
29
40
npm run bundle
30
41
31
-
to create a bundle. It will be created in `build/ui-bundle.zip`
42
+
It will be created in `build/ui-bundle.zip`
32
43
33
44
== Project structure
34
45
@@ -43,15 +54,13 @@ Inside the `src` directory are:
43
54
* `layouts`: TODO
44
55
* `partials`: Contains all the Handlebars files. This is the directory containing all the templated HTML for the site.
45
56
46
-
== Build process
47
-
48
-
The UI is built with Gulp. Linting, bundling and previewing is supported. This repository is referenced as a submodule in the documentation repository and the bundling takes place there.
49
-
50
57
=== Gulp
51
58
52
-
To work on the build process of this, you need to understand [gulp](https://gulpjs.com/docs/en/getting-started/javascript-and-gulpfiles). Gulp is a builder/bundler that is used to package this antora UI.
59
+
To work on the build process of this, you need to understand [gulp](https://gulpjs.com/docs/en/getting-started/javascript-and-gulpfiles).
60
+
Gulp is a builder/bundler that is used to package this antora UI.
53
61
54
-
In this project, `gulpfile.js` is the main entrypoint for gulp. This file references tasks in the `gulp.d` directory.
62
+
In this project, `gulpfile.js` is the main entrypoint for gulp.
63
+
This file references tasks in the `gulp.d` directory.
55
64
56
65
You don't need to install the `gulp` CLI yourself, you can call package scripts (i.e. `npm run bundle` which will then call `gulp` from the `node_modules`)
57
66
@@ -66,12 +75,14 @@ ui:
66
75
67
76
=== Previewing the UI during development
68
77
69
-
It is useful to be able to see changes quickly while working on the UI. To start the preview at http://localhost:5252, run `npm run preview`.
78
+
It is useful to be able to see changes quickly while working on the UI.
79
+
To start the preview at http://localhost:5252, run `npm run preview`.
70
80
Press kbd:[Ctrl+C] to stop the preview server and end the continuous build.
71
81
72
82
==== How it works
73
83
74
-
The `preview-src` directory contains dummy docs content which will be used to render the UI templates. The `ui-model.yml` contains dummy information similar to the antora-playbook.yaml.
84
+
The `preview-src` directory contains dummy docs content, which will be used to render the UI templates.
85
+
The `ui-model.yml` contains dummy information similar to the antora-playbook.yaml.
75
86
76
87
== Notes on our Customized Version
77
88
@@ -81,6 +92,12 @@ We have added our own tracking solution into `src/partials/head-scripts.hbs`. It
81
92
=== Highlight.js v10
82
93
[Ticket](https://github.com/stackabletech/documentation/issues/232) - Due to the removal of HTML-passthru in v11 (which we need for [Callouts](https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/)) the highlight.js has not been updated from v10. This also affects the Antora Default UI. Both decisions will be revisited when the upstream upgrade is available.
83
94
95
+
=== Search with pagefind
96
+
We use https://pagefind.app/[pagefind] for search.
97
+
The index is generated as part of the build in the `documentation` repository.
98
+
Various `pagefind-*` tags are used to mark content that should be indexed.
99
+
Only the stable docs are indexed (no previous versions, no nightly).
100
+
84
101
== Copyright and License
85
102
86
103
Copyright (C) 2017-present OpenDevise Inc. and the Antora Project.
0 commit comments