Git Product home page Git Product logo

antora-arc42's Introduction

Antora & ARC42

Drone build status

Getting started with Antora by publishing the ARC42 template

Description

This repo contains an example of how to build a multi repository architecture documentation based around the arc42 template.

Repository overview:

  1. anoff/antora-arc42 base component containing all system wide information, split up into several modules

Setup

First get some prerequisites

  1. Get the arc42 template as a git submodule

  2. install Antora

Then run the make command:

npm run dist

The generated code is now available in dist/

Notes on folder structure

Antora defines components and modules. A component can have multiple modules that are all located in a fixed directory structure adjacent to each other. Each component must have at least one module, the ROOT module. The playbook (overall config of the document) references one or more git repositories that contains a component with 1+ modules.

  1. Antora expects all documentation to come in a component (there can be only one component in a build)

  2. the playbook can define multiple content sources

    1. each content source needs to point to a root directory of a git repo (local or remote)

    2. you can use start_path in a playfile source to make the docs start relative to the git root

    3. the repo must have at least one commit

  3. within this start path a module structure is expected

    1. the antora.yml file defines to position of a component

    2. there must be a modules/ROOT (uppercase) module present

    3. all .adoc files must reside in the modules/XYZ/pages directory

Antora-fying

The following steps are necessary to get the arc42 template into an antora compatible format:

  1. move the adoc files into the antora component structure modules/ROOT/pages/

  2. create antora.yml with the component definition

  3. for having an overall file including all chapters the individual pages need to get the :page-partial: attribute and have a document title =

  4. add all pages to the nav.adoc to create a navigation menu

  5. custom styles in supplemental-ui/

Attribution

antora-arc42's People

Contributors

anoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

antora-arc42's Issues

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.