Git Product home page Git Product logo

documentation's Introduction

MakerDAO Slate: API Documentation Generator

Want to read the docs?

Go to makerdao.com/documentation.

Want to edit the docs?

Real quick instructions:

  • Write Markdown in source/index.html.md and/or a file in source/includes.
  • View your changes locally: bundle exec middleman server.
  • Publish your changes: Push to origin, then run ./deploy.sh.

More details (from the Slate docs)

You're going to need:

  • Linux or OS X โ€” Windows may work, but is unsupported.
  • Ruby, version 2.3.1 or newer
  • Bundler โ€” If Ruby is already installed, but the bundle command doesn't work, just run gem install bundler in a terminal.

Getting Set Up

  1. Fork this repository on GitHub.
  2. Clone your forked repository (not our original one) to your hard drive with git clone https://github.com/YOURUSERNAME/slate.git
  3. cd slate
  4. Initialize and start Slate. You can either do this locally, or with Vagrant:
# either run this to run locally
bundle install
bundle exec middleman server

# OR run this to run with vagrant
vagrant up

You can now see the docs at http://localhost:4567. Whoa! That was fast!

Now that Slate is all set up on your machine, you'll probably want to learn more about editing Slate markdown, or how to publish your docs.

If you'd prefer to use Docker, instructions are available in the wiki.

Note on JavaScript Runtime

For those who don't have JavaScript runtime or are experiencing JavaScript runtime issues with ExecJS, it is recommended to add the rubyracer gem to your gemfile and run bundle again.

documentation's People

Contributors

lord avatar levity avatar tyler17 avatar chrissrogers avatar realityking avatar ethanbennett avatar cvkef avatar jparklev avatar bootstraponline avatar marcguyer avatar padraic-o-mhuiris avatar maks3w avatar seanwbren avatar djpowers avatar dlackty avatar dizzy avatar victorquinn avatar blackxored avatar kevin-buttercoin avatar rezanachmad avatar rlord avatar rickyrauch avatar readmecritic avatar sobstel avatar stetzer avatar prayagverma avatar pothix avatar pbechu avatar paulocoghi avatar floorlamp avatar

Watchers

James Cloos avatar Chris Smith 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.