Skip to content

Commit fc6fc52

Browse files
Merge pull request quarkiverse#21 from holly-cummins/update-readme
Update readme to not just be the default readme
2 parents 4ad5406 + 80c1759 commit fc6fc52

File tree

6 files changed

+52
-119
lines changed

6 files changed

+52
-119
lines changed

.gitlab-ci.yml

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

.gulp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"description": "Build tasks for the Antora default UI project",
2+
"description": "Build tasks for the Antora UI project",
33
"flags.tasksDepth": 1
44
}

README.adoc

Lines changed: 46 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
= Antora Default UI
1+
= Quarkiverse Antora UI Theme
22
// Settings:
33
:experimental:
44
:hide-uri-scheme:
55
// Project URLs:
6-
:url-project: https://gitlab.com/antora/antora-ui-default
7-
:url-preview: https://antora.gitlab.io/antora-ui-default
8-
:url-ci-pipelines: {url-project}/pipelines
9-
:img-ci-status: {url-project}/badges/master/pipeline.svg
6+
:url-project: https://github.com/quarkiverse/antora-ui-quarkiverse
7+
:url-preview: https://quarkiverse.github.io/quarkiverse-docs/
8+
:url-ci-pipelines: {url-project}/actions
9+
:img-ci-status: {url-project}/actions/workflows/build.yml/badge.svg
1010
// External URLs:
1111
:url-antora: https://antora.org
1212
:url-antora-docs: https://docs.antora.org
@@ -19,87 +19,81 @@
1919
:url-nvm-install: {url-nvm}#installation
2020
:url-source-maps: https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map
2121

22-
image:{img-ci-status}[CI Status (GitLab CI), link={url-ci-pipelines}]
22+
image:{img-ci-status}[CI Status (GitHub Actions), link={url-ci-pipelines}]
2323

24-
This project is an archetype that demonstrates how to produce a UI bundle that can be used by {url-antora}[Antora] to generated a documentation site.
25-
You can see a preview of the default UI at {url-preview}.
24+
This project generates the UI bundle for the Quarkiverse {url-antora}[Antora] documentation site.
25+
You can see the UI at {url-preview}. It is based on the https://gitlab.com/antora/antora-ui-default[Antora Default UI].
2626

27-
While the default UI is ready to be used with Antora, the intent is that you'll fork it and customize it for your own needs.
28-
It's intentionally minimalistic so as to give you a good starting point without requiring too much effort to customize.
27+
== TL;DR: How to make UI changes
2928

30-
== Code of Conduct
29+
To try out UI changes locally, run
3130

32-
The Antora project and its project spaces are governed by our https://gitlab.com/antora/antora/-/blob/HEAD/CODE-OF-CONDUCT.adoc[Code of Conduct].
33-
By participating, you're agreeing to honor this code.
34-
Let's work together to make this a welcoming, professional, inclusive, and safe environment for everyone.
31+
[source]
32+
----
33+
gulp preview
34+
----
35+
36+
Changes will be automatically rebuilt and reflected in the browser page.
37+
38+
To deploy a change to sites using this theme, it is sufficient to merge changes to `main`.
39+
They will be automatically built into a release and consumed in the next scheduled site build.
3540

36-
== Use the Default UI
41+
== Development details
3742

38-
If you want to simply use the default UI for your Antora-generated site, add the following UI configuration to your playbook:
43+
=== Using the UI
44+
45+
To use this UI for an Antora-generated site, add the following UI configuration to your playbook:
3946

4047
[source,yaml]
4148
----
4249
ui:
4350
bundle:
44-
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
51+
url: https://github.com/quarkiverse/antora-ui-quarkiverse/releases/latest/download/ui-bundle.zip
4552
snapshot: true
4653
----
4754

4855
NOTE: The `snapshot` flag tells Antora to fetch the UI when the `--fetch` command-line flag is present.
4956
This setting is required because updates to the UI bundle are pushed to the same URL.
5057
If the URL were to be unique, this setting would not be required.
5158

52-
Read on to learn how to customize the default UI for your own documentation.
53-
54-
== Development Quickstart
59+
=== Development Quick(ish)start
5560

56-
This section offers a basic tutorial to teach you how to set up the default UI project, preview it locally, and bundle it for use with Antora.
61+
Here is how to set up the UI project and preview it locally.
5762
A more comprehensive tutorial can be found in the documentation at {url-antora-docs}.
5863

59-
=== Prerequisites
64+
==== Prerequisites
6065

61-
To preview and bundle the default UI, you need the following software on your computer:
66+
To preview and bundle the UI theme, you need the following software on your computer:
6267

63-
* {url-git}[git] (command: `git`)
6468
* {url-nodejs}[Node.js] (commands: `node` and `npm`)
6569
* {url-gulp}[Gulp CLI] (command: `gulp`)
6670

67-
==== git
68-
69-
First, make sure you have git installed.
70-
71-
$ git --version
7271

73-
If not, {url-git-dl}[download and install] the git package for your system.
72+
===== Node.js
7473

75-
==== Node.js
76-
77-
Next, make sure that you have Node.js installed (which also provides npm).
74+
Make sure that you have Node.js installed (which also provides npm).
7875

7976
$ node --version
8077

8178
If this command fails with an error, you don't have Node.js installed.
8279
If the command doesn't report an LTS version of Node.js (e.g., v10.15.3), it means you don't have a suitable version of Node.js installed.
83-
In this guide, we'll be installing Node.js 10.
80+
In this guide, we'll be installing Node.js 16.
8481

8582
While you can install Node.js from the official packages, we strongly recommend that you use {url-nvm}[nvm] (Node Version Manager) to manage your Node.js installation(s).
8683
Follow the {url-nvm-install}[nvm installation instructions] to set up nvm on your machine.
8784

88-
Once you've installed nvm, open a new terminal and install Node.js 10 using the following command:
85+
Once you've installed nvm, open a new terminal and install Node.js 16 using the following command:
8986

90-
$ nvm install 10
87+
$ nvm install 16
9188

9289
You can switch to this version of Node.js at any time using the following command:
9390

94-
$ nvm use 10
95-
96-
To make Node.js 10 the default in new terminals, type:
91+
$ nvm use 16
9792

98-
$ nvm alias default 10
9993

10094
Now that you have Node.js installed, you can proceed with installing the Gulp CLI.
10195

102-
==== Gulp CLI
96+
===== Gulp CLI
10397

10498
You'll need the Gulp command-line interface (CLI) to run the build.
10599
The Gulp CLI package provides the `gulp` command which, in turn, executes the version of Gulp declared by the project.
@@ -122,16 +116,7 @@ Alternately, you can use the `gulp` command that is installed by the project's d
122116

123117
Now that you have the prerequisites installed, you can fetch and build the UI project.
124118

125-
=== Clone and Initialize the UI Project
126-
127-
Clone the default UI project using git:
128-
129-
[subs=attributes+]
130-
$ git clone {url-project} &&
131-
cd "`basename $_`"
132-
133-
The example above clones Antora's default UI project and then switches to the project folder on your filesystem.
134-
Stay in this project folder when executing all subsequent commands.
119+
==== Initialize the UI Project
135120

136121
Use npm to install the project's dependencies inside the project.
137122
In your terminal, execute the following command:
@@ -148,9 +133,9 @@ If you prefer to install packages using Yarn, run this command instead:
148133
$ yarn
149134
====
150135

151-
=== Preview the UI
136+
==== Preview the UI
152137

153-
The default UI project is configured to preview offline.
138+
The UI project is set up to preview offline.
154139
The files in the [.path]_preview-src/_ folder provide the sample content that allow you to see the UI in action.
155140
In this folder, you'll primarily find pages written in AsciiDoc.
156141
These pages provide a representative sample and kitchen sink of content from the real site.
@@ -174,10 +159,16 @@ This works by monitoring the project for changes, running the `preview:build` ta
174159

175160
Press kbd:[Ctrl+C] to stop the preview server and end the continuous build.
176161

177-
=== Package for Use with Antora
162+
==== Package for Use with Antora
163+
164+
[WARNING]
165+
This should not normally be necessary. The usual way to package and deploy this site is by
166+
running a CI build. However, it is occasionally useful to bundle it in order to
167+
try out changes on the full site by using the `--ui-bundle-url` command-line option.
178168

179169
If you need to package the UI so you can use it to generate the documentation site locally, run the following command:
180170

171+
181172
$ gulp bundle
182173

183174
If any errors are reported by lint, you'll need to fix them.
@@ -191,7 +182,7 @@ If you have the preview running, and you want to bundle without causing the prev
191182

192183
The UI bundle will again be available at [.path]_build/ui-bundle.zip_.
193184

194-
==== Source Maps
185+
===== Source Maps
195186

196187
The build consolidates all the CSS and client-side JavaScript into combined files, [.path]_site.css_ and [.path]_site.js_, respectively, in order to reduce the size of the bundle.
197188
{url-source-maps}[Source maps] correlate these combined files with their original sources.
@@ -214,6 +205,3 @@ Copyright (C) 2017-present OpenDevise Inc. and the Antora Project.
214205
Use of this software is granted under the terms of the https://www.mozilla.org/en-US/MPL/2.0/[Mozilla Public License Version 2.0] (MPL-2.0).
215206
See link:LICENSE[] to find the full license text.
216207

217-
== Authors
218-
219-
Development of Antora is led and sponsored by {url-opendevise}[OpenDevise Inc].

docs/modules/ROOT/pages/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
:hide-uri-scheme:
44
// URLs:
55
:url-antora: https://antora.org
6-
:url-repo: https://gitlab.com/antora/antora-ui-default
7-
:url-preview: https://antora.gitlab.io/antora-ui-default
6+
:url-repo: https://github.com/quarkiverse/antora-ui-quarkiverse
7+
:url-preview: https://quarkiverse.github.io/quarkiverse-docs/
88
:url-hbs: https://handlebarsjs.com
99
:url-gulp: https://gulpjs.com
1010
:url-npm: https://npmjs.com

docs/modules/ROOT/pages/set-up-project.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Set up a UI Project
2-
:url-project: https://gitlab.com/antora/antora-ui-default.git
2+
:url-project: https://github.com/quarkiverse/antora-ui-quarkiverse.git
33

44
Before you can start working on the UI, you need to grab the sources and initialize the project.
55
The sources can be {url-project}[Antora's default UI] or an existing UI project structured to work with Antora.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@antora/ui-default",
33
"description": "An archetype project that produces a UI for creating documentation sites with Antora",
4-
"homepage": "https://gitlab.com/antora/antora-ui-default",
4+
"homepage": "https://github.com/quarkiverse/antora-ui-quarkiverse",
55
"license": "MPL-2.0",
66
"repository": {
77
"type": "git",
8-
"url": "https://gitlab.com/antora/antora-ui-default.git"
8+
"url": "https://github.com/quarkiverse/antora-ui-quarkiverse.git"
99
},
1010
"engines": {
1111
"node": ">= 8.0.0"

0 commit comments

Comments
 (0)