To build these docs locally you will need Node & NPM installed.
To install the dependencies run:
npm installTo preview the docs, run:
npm run devThis will build a set of HTML files in build/site and then serve them through an express server at http://localhost:8000.
The dev script will also listen for changes and automatically rebuild the files automatically.
You’ll still need to refresh the page to view the changes.
Pushing to the publish branch of this repo will trigger a rebuild of the HTML and CSS files in the Docs Refresh repo using a Github Action.
git clone https://github.com/neo4j-documentation/labs-pages
git add .
git commit -m "My changes"
git push origin HEAD:publishAt the end of the build process, the files are uploaded to the static-content.neo4j.com S3 Bucket. From there, they are synced up to the Neo4j.com server once an hour, on the hour by a cronjob.
Migrating https://neo4j.com/docs/status-codes/current/ HTML to individual adoc pages…
-
save as source HTML
-
convert to adoc using pandoc
pandoc --wrap=none -f html -t asciidoc neo4j-status-codes.html > codes.adoc -
edit by hand to trim down to the
|delimited table -
process that into individual pages
csvcut -c 1,2 -d "|" codes.csv | csvformat -U 1 -D " " | xargs -n2 sh -c 'echo "$2\n" > tmp/$1.adoc' sh