Git Product home page Git Product logo

docs-42's Introduction

Generating Gruntwork Package and Module Documentation

This repo contains a set of tools for generating Gruntwork Package and Gruntwork Module documentation on a public website in a customizable format.

Features

This docs site is built using Gatsby, a static site generator that is based on React. We have extended it using plugins and custom code to support all of the relevant features required, including:

  • Syntax highlighting (via prismjs)
  • Copy code to clipboard
  • Image Captions
  • Responsive design with fixed header
  • Edit on GitHub buttons
  • Google Analytics
  • A dynamic sidebar with the ToC of the current page

doc-sourcer

Some of the content is pulled from our other repos. You can look at gruntyrepos.yml for a list of repos where docs are sourced.

This is managed through the doc-sourcer tool. Make sure you have a copy of it available by running:

(cd ./doc_sourcer && go build -o doc-sourcer .)

NOTE: The doc-sourcer project uses go modules. You may experience dependency issues if you clone the repo in your GOPATH. To address, clone outside of the GOPATH.

Deploy

To deploy a new version of the site, run:

  1. ./doc-sourcer
  2. yarn run build
  3. houston-cli exec websites -- yarn run deploy

The Generation Workflow

Generating documentation is a multi-step process made up of the following stages:

  1. docs-fetcher: Fetch all Gruntwork Package and Gruntwork Module source code into one repo.
  2. docs-preprocessor: Transform the default folder structure of Gruntwork docs into a folder structure that mirrors the desired public website structure.
  3. docs-generator: Convert markdown files to HTML files, and generate an HTML-based navigation for all pages.

By using separate tools, we can compose this process to generate different kinds of documentation, pull from different sources, or output in a different format.

docs-42's People

Contributors

brikis98 avatar eak12913 avatar etiene avatar josh-padnick avatar robmorgan avatar yorinasub17 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.