| |
@@ -1,16 +1,12 @@
|
| |
# fedora-docs-ui
|
| |
|
| |
- Sources of a UI for the new Antora Docs site
|
| |
+ Sources of a UI for the new Antora Docs site.
|
| |
|
| |
- ## Build and preview the UI
|
| |
-
|
| |
- ### Set up this builder
|
| |
+ This repo includes builder to build and preview the contents of this repository.
|
| |
|
| |
- Copy the `antora-ui-builder` to `~/bin/`:
|
| |
+ ## Build and preview the UI
|
| |
|
| |
- ```
|
| |
- $ cp antora-ui-builder ~/bin/
|
| |
- ```
|
| |
+ [Prerequisites](https://docs.antora.org/antora-ui-default/prerequisites/)
|
| |
|
| |
### Set up your project
|
| |
|
| |
@@ -21,10 +17,18 @@
|
| |
$ antora-ui-test
|
| |
```
|
| |
|
| |
+ ### Set up this builder
|
| |
+
|
| |
+ Copy the `antora-ui-builder` to `~/bin/`:
|
| |
+
|
| |
+ ```
|
| |
+ $ cp antora-ui-builder ~/bin/
|
| |
+ ```
|
| |
+
|
| |
Install the project dependencies:
|
| |
|
| |
```
|
| |
- $ antora-ui-builder yarn install
|
| |
+ $ antora-ui-builder install
|
| |
```
|
| |
|
| |
You also need to make a slight change to the configuration of your project so it works in a container. Open the `gulpfile.js` and add one new line `host: "0.0.0.0",` right below `port: 5252,` as shown below:
|
| |
@@ -49,8 +53,10 @@
|
| |
|
| |
Build a live preview:
|
| |
|
| |
+ **NOTE**: Please note that if you reference pages from other repositoreis, such links will be broken in this local preview as it only builds this repository. If you want to rebuild the whole Fedora Docs site, please see [the Fedora Docs build repository](https://pagure.io/fedora-docs/docs-fp-o/) for instructions.
|
| |
+
|
| |
```
|
| |
- $ antora-ui-builder gulp preview
|
| |
+ $ antora-ui-builder preview
|
| |
```
|
| |
|
| |
Preview it on [localhost:5252](http://localhost:5252).
|
| |
@@ -58,7 +64,10 @@
|
| |
If you want to use your UI on an Antora docs site, you need to build a bundle using the following command:
|
| |
|
| |
```
|
| |
- $ antora-ui-builder gulp pack
|
| |
+ $ antora-ui-builder pack
|
| |
```
|
| |
|
| |
- See the [Antora UI docs](https://docs.antora.org/antora-ui-default/build-preview-ui/) for more info.
|
| |
+ See the [Antora UI docs](https://docs.antora.org/antora-ui-default/build-preview-ui/) for more info.
|
| |
+
|
| |
+ **NOTE**: This repository currently supports node version 10.18.0 and gulp version 3.9.1
|
| |
+
|
| |
I don't feel like these kind of links work with internationalization.
I think the "url" variable should be usable here: https://docs.antora.org/antora/2.3/playbook/environment-variables/