Skip to content

Commit 63983cf

Browse files
authored
update ui (#628)
1 parent 8c6717d commit 63983cf

File tree

6 files changed

+107
-12
lines changed

6 files changed

+107
-12
lines changed

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build-ui:
1313
node_modules/.bin/gulp --cwd ui bundle
1414

1515
build-search-index:
16-
npx pagefind --site build/site
16+
npm run build-search-index
1717

1818
serve:
1919
python3 -m http.server -d build/site

Diff for: README.adoc

+12-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
This is the main repository for the documentation of the Stackable platform.
55
Have a look at the https://docs.stackable.tech/[live version] and the current https://docs.stackable.tech/home/nightly/[nightly live version].
66

7-
The documentation is built with https://antora.org[Antora]. This repository hosts the Antora playbook file as well as platform documentation. Other Stackable repos contain 'docs' directories which are pulled in by this repo.
7+
The documentation is built with https://antora.org[Antora].
8+
This repository hosts the Antora playbook file as well as platform documentation.
9+
Other Stackable repos contain `docs` directories which are pulled in by this repo.
810

911
== Repository structure
1012

@@ -25,18 +27,23 @@ $ npm ci
2527
$ make
2628
----
2729

28-
NOTE: Antora caches the external content repos in the cache directory (configured to be `./cache`). It will _not_ automatically update those. Use the `--fetch` flag (`make ANTORAFLAGS=--fetch`) to update all sources, or use `make clean` to delete the `cache` and `build` directory.
30+
NOTE: Antora caches the external content repos in the cache directory (configured to be `./cache`).
31+
It will _not_ automatically update those.
32+
Use the `--fetch` flag (`make ANTORAFLAGS=--fetch`) to update all sources, or use `make clean` to delete the `cache` and `build` directory.
2933

3034
== Production deployment
3135

3236
The documentation is deployed by Netlify on a regular basis or when something is pushed to the `main` branch.
3337
To trigger an out of band deployment, use the _Build and deploy production site_ GitHub action (internal contributors only).
3438

35-
Regular (nightly) deployments are run to pick up changes in the operator repositories. These repositories are not watched by Netlify and thus any changes to the documentation there would be ignored.
39+
Regular (nightly) deployments are run to pick up changes in the operator repositories.
40+
These repositories are not watched by Netlify and thus any changes to the documentation there would be ignored.
3641

3742
=== Netlify configuration
3843

39-
Netlify is configured with the link:netlify.toml[`netlify.toml`] file inside of the documentation repo. In there, the command `make netlify-build` is configured as the build command. Further documentation of the build process can then be found in the link:Makefile[`Makefile`].
44+
Netlify is configured with the link:netlify.toml[`netlify.toml`] file inside of the documentation repo.
45+
In there, the command `make netlify-build` is configured as the build command.
46+
Further documentation of the build process can then be found in the link:Makefile[`Makefile`].
4047

4148
The build process creates a static site in `build/site` which is then published (as it is configured in the `netlify.toml`).
4249

@@ -58,7 +65,7 @@ NOTE: Antora does not recognize git submodules as git repositories
5865

5966
The design & layout comes from our https://github.com/stackabletech/documentation-ui[UI repository].
6067

61-
`LIVERELOAD=true gulp` may be used to recreate the built documentation after each edit. The 'live reload' feature does not work over gitpod currently due to https://github.com/schickling/gulp-webserver/pull/126
68+
`LIVERELOAD=true gulp` may be used to recreate the built documentation after each edit.
6269

6370
== More useful links
6471

Diff for: modules/contributor/pages/docs/overview.adoc

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,16 @@ The reference is found at https://crds.stackable.tech/ and generated from the ht
4343

4444
The xref:docs/style-guide.adoc[] contains all the information about the writing style, formatting style, naming documents and more.
4545

46-
== Technical bits: Antora, Netlify
46+
== Technical bits: Antora, Netlify, Pagefind
4747

4848
{antora-docs}[Antora] uses a {antora-playbook}[playbook] to build the documentation.
4949
It pulls information from all the individual operators, so their documentation can live in the same repository.
5050
Antora builds a static website which we serve over {netlify}[Netlify].
5151
The web template of the documentation is also custom made and is developed in the https://github.com/stackabletech/documentation-ui[documentation-ui] repository.
5252

53+
For search, we use https://pagefind.app/[pagefind] - a static search.
54+
The search index is generated as part of the build process and no external index is queried during search.
55+
5356
For Antora, the https://antora.zulipchat.com/[Antora Zulip chatroom] is a good place to get help (besides the documentation)!
5457

5558
Building the documentation and also the deployment process on Netlify are documented in the https://github.com/stackabletech/documentation/blob/main/README.adoc[README] file of the documentation repository.

Diff for: package-lock.json

+83-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"devDependencies": {
33
"@antora/cli": "^3.1.7",
4-
"@antora/site-generator": "^3.1.7"
4+
"@antora/site-generator": "^3.1.7",
5+
"pagefind": "^1.1.0"
56
},
67
"dependencies": {
78
"@antora/lunr-extension": "^1.0.0-alpha.8",
89
"@asciidoctor/tabs": "^1.0.0-beta.6"
910
},
1011
"workspaces": [
1112
"ui"
12-
]
13+
],
14+
"scripts": {
15+
"build-search-index": "npx pagefind --site build/site"
16+
}
1317
}

0 commit comments

Comments
 (0)