This repository contains several Antora playbooks for building developer resources at:
In order to build the content,
npm i
The npm install command will install Antora CLI, which is then used to build the content defined in the Antora Playbooks (*.yml
files in the project root).
You can run a local server to preview the built content by running:
npm start
This will launch a server at http://localhost:8000/
Any changes to the master
branch will trigger an automatic rebuild of all content using Github Actions.
The action runs the npm run build
command which builds the following playbooks using the Antora CLI:
-
unversioned.yml
- Developer guides atneo4j.com/developer/
and Labs pages atneo4j.com/labs/
-
labs-docs.yml
- Builds the documentation from remote sources intoneo4j.com/labs/{project}/{version}
The HTML files built by the build command are uploaded to the static-content.neo4j.com
S3 Bucket, where it is synced hourly with the neo4j.com server. The cronjob runs on the hour, every hour so it may take up to an hour for the content to become live.
Note
|
In addition, we are using Netlify to deploy a preview of the site at: https://docs-neo4j.netlify.app/ |
For more information on specific theme features, clone the Documentation Starter and run npm start
.
Instead of defining variables in a text file (think versions.txt
), these are now defined under asciidoc
and attributes
in either the playbook (eg developer.yml
) or inside antora.yml
in the content repo.
asciidoc:
attributes:
page-theme: developer
page-cdn: /static/assets
asciidoc:
attributes:
img: https://dist.neo4j.com/wp-content/uploads/
theme: developer
neo4j-ogm-version: 3.1.6
spring-data-neo4j-version: 5.1.3.RELEASE
neo4j-stable-version: 4.0.3
bolt-driver-version: 1.7.0
java-driver-version: 4.0.1
:level: Beginner
[role=expertise]
{level}
Becomes:
:level: Beginner
[role=expertise {level}]
{level}
Old Name | New Name |
---|---|
slug |
Not required |
icons |
Not required |
section |
Not required |
section-link |
Not required |
setanchors |
Not required |
toc |
Not required |
toc-title |
Not required |
setanchors |
Not required |
toclevels |
Not required |
toc-placement |
Not required |
northwind |
Not required |
level |
Create an additional attribute called |