Git Product home page Git Product logo

docs-kerberos-add-on's Introduction

Kerberos Add-on documentation

Prereqs

  • Node.js

  • npm

Installation

To install the required packages:

npm i

Generating HTML output

To convert asciidoc source to HTML:

npm run build

Viewing HTML output

To view the built site, launch a local server:

  1. npm start

  2. In a browser tab, go to localhost:8000

Live preview

When you run npm start, the project is monitored for updates to asciidoc files.

If a change to an asciidoc file is detected the site is automatically rebuilt.

Configuring your project

You’ll need to update the following for your project

antora.yml

  • name: - replace docs-template with the name of the project as it will appear in the URL https://neo4j.com/docs/<PROJECT_NAME>`, for example 'getting-started', 'cypher-manual'.

  • title: - the title of the manual, for example Getting Started Guide, Cypher Manual. This value is displayed in the breadcrumbs above each page.

  • version: - the version of the content that is generated from the branch containing this antora.yml file.

Optionally, you can add the following attributes:

  • display_version: - Use this attribute when you want the version that is displayed in your content and in the UI to be different from the version that appears in the URL. For example, you might want to use /2.0/ in URLs, but display the version as 2.0-beta in the version selector drop-down.

  • prerelease: - if you publish multiple versions of this project, you can mark a version as being a prerelease, by adding prerelease: true. The content is published alongside the other versions, but does not appear in the drop-down version selector, and is not included when Antora is calculating the default (or 'latest') version in order to resolve links between pages. For more information, see Antora // Docs → Identify a Prerelease Version

preview.yml

Antora uses a playbook to determine what content is included in a site, and the appearance of that content.

In our projects, we use preview.yml as the default playbook name.

Update the start_page attribute to match the value of the name attribute in your antora.yml file.

site:
  start_page: docs-template:ROOT:index.adoc

Update the information for the sitemap extension:

antora:
  extensions:
  - require: "@neo4j-antora/antora-modify-sitemaps"
    sitemap_version: '1.0'
    sitemap_loc_version: 'current'
    move_sitemaps_to_components: true

The antora-modify-sitemaps Antora extension generates sitemaps for Neo4j docs that include information about the current release only, and makes sure those sitemaps are included in the right output folder when the HTML is built. In this example, a sitemap file would be generated at build/site/docs-template/1.0/sitemap.xml. Change the value of sitemap_version to the 'current' release version of your project. For example, Neo4j manuals such as the Getting Started Guide or Cypher Manual use 4.4 as their current version, so for those manuals this is set as sitemap_version: '4.4.

If your repo is public, you can add an Edit this page link to your pages to encourage external contributors, and to provide a quick way for users to suggest changes.

Update the following attribute in your playbook:

asciidoc:
  attributes:
    page-origin-private: false

[Optional] Add a 'preview' note to each page

When we publish preview content to either development or production environments, we prepend an admonition to every page to make it clear that this is preview content, for example, as in Graph Data Science 2.0-preview.

You can use the antora-add-notes extension to add content to your pages. Follow the Usage instructions in the package documentation.

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.