Code Monkey home page Code Monkey logo

deconst-raml-preparer's Introduction

Deconst RAML Preparer

RAML ๐Ÿ‘‰ ๐Ÿ”ง ๐Ÿ‘‰ .json

Stability Rating Build Status Coverage Status

๐Ÿšง Work in progress ๐Ÿšง

The deconst RAML preparer builds RAML 1.0 into custom JSON metadata envelopes. It's intended to be used within a CI system to present content to the rest of build pipeline.

This preparer is part of deconst, an end-to-end documentation delivery system.

Testing

Currently, the Docker image needs to be build manually as it is not yet up on quay.io or another Docker image library. Change into your clone of this repo and run the following command to build the image:

docker build . --no-cache --tag deconstramlpreparer:latest

Running locally

To run the RAML preparer locally, you'll need to install:

Once you have Docker set up, export any desired configuration variables and run deconst-preparer-sphinx.sh with the absolute path to any RAML-based content repository.

./deconst-preparer-raml.sh /absolute/path/to/content-repo

Configuration

Environment variables

The following values may be present in the environment:

  • CONTENT_ROOT is a path containing RAML content to prepare. Default: $(pwd)
  • ENVELOPE_DIR is the destination directory for metadata envelopes. Default: $(pwd)/_build/deconst-envelopes/
  • ASSET_DIR is the destination directory for referenced assets. Default: $(pwd)/_build/deconst-assets/
  • CONTENT_ID_BASE is a prefix that's unique among the content repositories associated with the target deconst instance. Our convention is to use the base URL of the GitHub repository. Default: Read from _deconst.json

Build system

By default, the preparer uses the raml2html library to generate HTML from RAML and then uses Python to translate those HTML files to JSON envelopes. No configuration options are available outside of the RAML pages themselves at this time.

deconst-raml-preparer's People

Contributors

nimbinatus avatar

Watchers

Edward Rodriguez 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.