GithubHelp home page GithubHelp logo

asciidoc-base's Introduction

Documentation as a code

Documentation as a code is a concept to use the power of Git and get the advantage of it.

When we document a project, it is very important that the documentation and the project code are synchronized. Another significant tip is that the documentation should be public and accessible inside the organization.

This repo helps to public and maintain it.

Build

To build the project, you can use asciidoctor for both options, pdf or html. I recommend you to use the html option and serve it with a http server.

Asciidoctor

html

    $ asciidoctor content/index.adoc -o index.html

pdf

    $ asciidoctor-pdf content/index.adoc -o doc.pdf

Containers

To use a container to build is my favourite option because you can do it immutable, and ensure that you are building always with the best version of your product.

html

    make build-html

pdf

    make build-pdf

Run the HTML

The first step is to build the documentation as the step one, specifically the html option.

Now, you will build the container that will be run to serve the html. In this repository, you can find a Dockerfile that uses httpd server, but you can use nginx or what ever you want.

    make build-image

Once the container has been built, to run it's enough to run the command:

    podman run -p 8443:8443 ${IMAGE}

asciidoc-base's People

Contributors

dbgjerez avatar

Watchers

 avatar  avatar  avatar

Forkers

jandradap

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.