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
Copy file name to clipboardExpand all lines: README.adoc
+35-7Lines changed: 35 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The site is generated from the AsciiDoc files in the link:https://github.com/nrepl/nrepl/tree/master/doc[doc] folder of nREPL's GitHub repo and is published to https://nrepl.org.
4
4
link:https://antora.org[Antora] is used to convert the manual into HTML.
5
-
The filesystem layout is described at https://docs.antora.org/antora/2.0/component-structure/
5
+
The filesystem layout is described at https://docs.antora.org/antora/3.1/component-structure/
6
6
7
7
To make changes to the manual you simply have to change the files under `doc`.
8
8
The manual will be regenerated manually periodically.
@@ -19,16 +19,44 @@ $ cd nrepl.org
19
19
$ make build
20
20
----
21
21
22
-
After you're done with the initial setup you can use `make` to push changes to the site:
22
+
To check the generated site you can simply open `build/site/index.html` in your favourite browser.
23
+
24
+
== Deploying the Site
25
+
26
+
NOTE: You'll need commit access to the repository for this to work.
27
+
28
+
The site is automatically deployed to GitHub pages using a GitHub Action.
29
+
The action will be triggered by any push to the `master` branch.
30
+
It can also be triggered manually if needed.
31
+
32
+
== Using Docker
33
+
34
+
If you prefer not to install Antora on your local machine, you can build the documentation
35
+
inside a Docker container like this:
23
36
24
37
[source]
25
38
----
26
-
$ make deploy
39
+
$ docker run --rm -t -v $(pwd):/build/site antora/antora:3.1.10 --fetch /docs/antora-playbook.yml
27
40
----
28
41
29
-
NOTE: You'll need commit access to the repository for this to work.
42
+
== Updating the Playbook
43
+
44
+
When cutting new releases you'll have to updated `antora-playbook.yml` to mention
45
+
their relevant tags from which the documentation needs to be build. Here's how this
46
+
looks for one of the projects:
47
+
48
+
[source]
49
+
----
50
+
- url: https://github.com/nrepl/nrepl.git
51
+
branches: master
52
+
tags: ['v1.7.0', 'v1.8.0']
53
+
start_path: docs
54
+
----
55
+
56
+
TIP: You need to add one such block for each new nREPL module you're adding to the docs site.
30
57
31
-
To check the generated site you can simply open `docs/index.html` in your favourite browser.
58
+
== Troubleshooting
32
59
33
-
If you want to make changes to the manual's page structure you'll have to edit
0 commit comments