jamesmorgan / documentation

Documentation for the Dai JS library.

Home Page:https://makerdao.com/documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Documentation for the Dai JS library.

https://makerdao.com/documentation

License:Other


Languages

Language:JavaScript 88.1%Language:CSS 7.6%Language:Ruby 1.8%Language:Shell 1.5%Language:HTML 1.0%