Git Product home page Git Product logo

adt2's Introduction

Antora doc tools

This repo is primarily a Node.js-based set of tools to help build Antora-based documentation.

Antora does most of the work, but the tools also include:

  • A set of Antora extensions that implement content checks for:

    • Repeated words.

    • Asciidoc formatted as "ventilated prose".

    • Image existence and size declarations.

    • A set of opinionated language style checks for technical documentation.

Each of the extensions can be independently enabled/disabled, and each features a "debug" mode.

Requirements

  • Node.js 16.x or newer.

  • Ruby 3.x or newer (for PDF generation).

  • Docker

  • make

Documentation builds should work fine on macOS, Linux, and Windows. Only macOS builds have been tested to date.

Preparation

  • Ensure that the requirements have been met.

  • Create a Git repository with a docs folder at the root containing Antora-compatible documentation structure.

  • If you do not have a package.json file, in the repo root run:

    npm init -y

Installation

  1. In your documentation Git repo root, run:

    npm i https://github.com/eskwayrd/antora-doc-tools
  2. If your repo does not already have a .gitignore file, ADT installs one for you that is suitable for an Antora documentation project.

  3. If your repo does not already have a Vale folder, ADT creates one and creates the necessary styles folder and .vale.ini file inside.

    Once .vale.ini exists, you should customize it to include Vale style packages that your project requires. You can install styles from the Vale Package Hub.

    Once customize, commit .vale.ini, but not the style folders.

  4. If your repo does not already have an htmltest.yml config file, ADT creates one for you. You likely do not need to customize the configuration, but you should commit the file.

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.