neo4j.com/labs pages.
To publish to WordPress we are using the following AsciiDoc attributes:
slug
: A unique page slug (defined on each document).parent-path
: The path of the parent page (defined inbuild.gradle
). In this case, we are using the value/labs
.
The publication stage is either production
or testing
.
You can define the stage using a project property via the -P
command line option:
-Pstage=testing
In testing, the slug
is automatically prefixed by _testing_
.
It allows to publish a "testing" page without interfering with the "production" page (because we are using two distinct slugs).
Convert to HTML:
./gradlew convert
Clean:
./gradlew clean
Publish to WordPress in "testing":
./gradlew wordPressUpload -Pwordpress-host="neo4j.com" -Pwordpress-username={{username}} -Pwordpress-password={{password}} -Pstage=testing
Publish to WordPress in "production":
./gradlew wordPressUpload -Pwordpress-host="neo4j.com" -Pwordpress-username={{username}} -Pwordpress-password={{password}} -Pstage=production
NOTE: You must replace {{username}}
and {{password}}
in the above command.