GithubHelp home page GithubHelp logo

smaxtec / slate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ringcentral/slate

0.0 1.0 0.0 2.76 MB

Documentation for the smaXtec Integration API

Home Page: https://smaxtec.github.io/slate

License: Other

Ruby 1.14% Shell 1.55% JavaScript 88.37% HTML 1.05% SCSS 7.89%

slate's Introduction

Slate: API Documentation Generator

Slate helps us create beautiful, intelligent, responsive API documentation for smaXtec Integration API.

Screenshot of smaXtec Integration API Documentation created with Slate

The screen shot above was created from the smaXtec Integration API documentation.

Getting Started with Slate

Prerequisites

You're going to need:

  • Linux or macOS โ€” 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.

Installing Ruby

Installing with the package manager of Ubuntu might lead to errors in further commands. These installation steps are recommended:

cd $HOME
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev software-properties-common

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.5.1
rbenv global 2.5.1
ruby -v

Installing bundler

The installation of bundler might also not work with gem install bundler. Again, a different approach is recommended:

Install the version of Bundler that is declared in the lockfile.

$ cat Gemfile.lock | grep -A 1 "BUNDLED WITH"
BUNDLED WITH
  1.17.3

$ gem install bundler -v '1.17.3'

Getting Set Up

  1. Clone this repository to your hard drive with git clone https://github.com/smaxtec/slate.git
  2. cd slate
  3. Initialize and start Slate.
bundle install
bundle exec middleman server

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.

Publish Slate

Publishing your API documentation couldn't be more simple.

  1. Commit your changes.
  2. Push the markdown source changes to GitHub: git push
  3. Run ./deploy.sh

Done! Your changes should now be live on http://smaxtec.github.io/slate, and the main branch should be updated with your edited markdown. It can also take a moment even if it's not the first time before your content is available online.

Original Slate Documentation

Slate Wiki

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.