Giter Club home page Giter Club logo

docs-refresh's Introduction

Neo4j Developer Guides & Static Content

Publish Developer Netlify Status

This is an unversioned repo with folders to the different content that will be built with Antora.

Each directory will have a antora.yml file with configuration, then the start_path in antora-playbook.yml will define which subfolder is picked up.

Installation

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).

Build

To build the content, run the build command:

npm run build

Preview

You can run a local server to preview the built content by running:

npm start

This will launch a server at http://localhost:8000/

Publishing

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:

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.

Theme Specifics

For more information on specific theme features, clone the Documentation Starter and run npm start.

Migrating from the old Developer Guides

Variables, Attributes, etc

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.

developer.yml playbook
asciidoc:
  attributes:
    page-theme: developer
    page-cdn: /static/assets
antora.yml in content repo
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

Page Level

:level: Beginner
[role=expertise]
{level}

Becomes:

:level: Beginner
[role=expertise {level}]
{level}

Renamed Attributes

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 :page-level:

docs-refresh's People

Contributors

adam-cowley avatar ggrossetie avatar mneedham avatar moxious avatar

Stargazers

Michael Corrado avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.