Skip to content

Commit d9cce09

Browse files
committed
Merge pull request #1 from spree-contrib/update-docs
Update docs
2 parents e860102 + 12113bc commit d9cce09

File tree

8 files changed

+9
-205
lines changed

8 files changed

+9
-205
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ nbproject
1212
pkg
1313
*.swp
1414
spec/dummy
15+
build

docs/.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/CHANGELOG.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

docs/CONTRIBUTING.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/LICENSE

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/README.md

Lines changed: 7 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,12 @@
1-
Slate
2-
========
1+
# Documentation for the Spree API V2
32

4-
[![Build Status](https://travis-ci.org/tripit/slate.svg?branch=master)](https://travis-ci.org/tripit/slate) [![Dependency Status](https://gemnasium.com/tripit/slate.png)](https://gemnasium.com/tripit/slate)
3+
The documentation is hand written and forked from [Slate](https://github.com/tripit/slate).
4+
Please update these docs when you make a contribution.
55

6-
Slate helps you create beautiful API documentation. Think of it as an intelligent, responsive documentation template for your API.
7-
8-
<img src="https://dl.dropboxusercontent.com/u/95847291/github%20images/slate/slate_screenshot_new.png" width=700 alt="Screenshot of Example Documentation created with Slate">
9-
10-
*The example above was created with Slate. Check it out at [tripit.github.io/slate](http://tripit.github.io/slate).*
11-
12-
Features
13-
------------
14-
15-
* **Clean, intuitive design** — with Slate, the description of your API is on the left side of your documentation, and all the code examples are on the right side. Inspired by [Stripe's](https://stripe.com/docs/api) and [Paypal's](https://developer.paypal.com/webapps/developer/docs/api/) API docs. Slate is responsive, so it looks great on tablets, phones, and even print.
16-
17-
* **Everything on a single page** — gone are the days where your users had to search through a million pages to find what they wanted. Slate puts the entire documentation on a single page. We haven't sacrificed linkability, though. As you scroll, your browser's hash will update to the nearest header, so linking to a particular point in the documentation is still natural and easy.
18-
19-
* **Slate is just Markdown** — when you write docs with Slate, you're just writing Markdown, which makes it simple to edit and understand. Everything is written in Markdown — even the code samples are just Markdown code blocks!
20-
21-
* **Write code samples in multiple languages** — if your API has bindings in multiple programming languages, you easily put in tabs to switch between them. In your document, you'll distinguish different languages by specifying the language name at the top of each code block, just like with Github Flavored Markdown!
22-
23-
* **Out-of-the-box syntax highlighting** for [almost 60 languages](http://rouge.jayferd.us/demo), no configuration required.
24-
25-
* **Automatic, smoothly scrolling table of contents** on the far left of the page. As you scroll, it displays your current position in the document. It's fast, too. We're using Slate at TripIt to build documentation for our new API, where our table of contents has over 180 entries. We've made sure that the performance remains excellent, even for larger documents.
26-
27-
* **Let your users update your documentation for you** — by default, your Slate-generated documentation is hosted in a public Github repository. Not only does this mean you get free hosting for your docs with Github Pages, but it also makes it's simple for other developers to make pull requests to your docs if they find typos or other problems. Of course, if you don't want to, you're welcome to not use Github and host your docs elsewhere!
28-
29-
Getting starting with Slate is super easy! Simply fork this repository, and then follow the instructions below. Or, if you'd like to check out what Slate is capable of, take a look at the [sample docs](http://tripit.github.io/slate).
30-
31-
<!--As an example, you can check out the [TripIt API docs](http://tripit.github.io/api), which we create with Slate. You can also view the source of the [markdown file used to generate it](http://github.com/tripit/api/blob/master/source/index.md).-->
32-
33-
Getting Started with Slate
34-
------------------------------
35-
36-
### Prerequisites
37-
38-
You're going to need:
39-
40-
- **Linux or OS X** — Windows may work, but is unsupported.
41-
- **Ruby, version 1.9.3 or newer**
42-
- **Bundler** — If Ruby is already installed, but the `bundle` command doesn't work, just run `gem install bundler` in a terminal.
43-
44-
### Getting Set Up
45-
46-
1. Fork this repository on Github.
47-
2. Clone *your forked repository* (not our original one) to your hard drive with `git clone https://github.com/YOURUSERNAME/slate.git`
48-
3. `cd slate`
49-
4. Install all dependencies: `bundle install`
50-
5. Start the test server: `bundle exec middleman server`
51-
52-
Or use the included Dockerfile! (must install Docker first)
6+
## Setup
537

548
```shell
55-
docker build -t slate .
56-
docker run -d -p 4567:4567 slate
9+
cd docs
10+
bundle
11+
middleman server
5712
```
58-
59-
You can now see the docs at <http://localhost:4567>. Whoa! That was fast!
60-
61-
*Note: if you're using the Docker setup on OSX, the docs will be
62-
availalable at the output of `boot2docker ip` instead of `localhost:4567`.*
63-
64-
Now that Slate is all set up your machine, you'll probably want to learn more about [editing Slate markdown](https://github.com/tripit/slate/wiki/Markdown-Syntax), or [how to publish your docs](https://github.com/tripit/slate/wiki/Deploying-Slate).
65-
66-
Examples of Slate in the Wild
67-
---------------------------------
68-
69-
* [Travis-CI's API docs](http://docs.travis-ci.com/api/)
70-
* [Mozilla's localForage docs](http://mozilla.github.io/localForage/)
71-
* [Mozilla Recroom](http://mozilla.github.io/recroom/)
72-
* [ChaiOne Gameplan API docs](http://chaione.github.io/gameplanb2b/#introduction)
73-
* [Drcaban's Build a Quine tutorial](http://drcabana.github.io/build-a-quine/#introduction)
74-
* [PricePlow API docs](https://www.priceplow.com/api/documentation)
75-
* [Emerging Threats API docs](http://apidocs.emergingthreats.net/)
76-
* [Appium docs](http://appium.io/slate/en/master)
77-
* [Golazon Developer](http://developer.golazon.com)
78-
* [Dwolla API docs](https://docs.dwolla.com/)
79-
* [RozpisyZapasu API docs](http://www.rozpisyzapasu.cz/dev/api/)
80-
* [Codestar Framework Docs](http://codestarframework.com/documentation/)
81-
* [Buddycloud API](http://buddycloud.com/api)
82-
* [Crafty Clicks API](https://craftyclicks.co.uk/api/)
83-
* [Paracel API Reference](http://paracel.io/docs/api_reference.html)
84-
* [Switch Payments Documentation](http://switchpayments.com/docs/) & [API](http://switchpayments.com/developers/)
85-
* [Coinbase API Reference](https://developers.coinbase.com/api)
86-
* [Whispir.io API](https://whispir.github.io/api)
87-
* [NASA API](https://data.nasa.gov/developer/external/planetary/)
88-
* [CardPay API](https://developers.cardpay.com/)
89-
* [IBM Cloudant](https://docs-testb.cloudant.com/content-review/_design/couchapp/index.html)
90-
* [Bitrix basis components](http://bbc.bitrix.expert/)
91-
* [viagogo API Documentation](http://developer.viagogo.net/)
92-
* [Fidor Bank API Documentation](http://docs.fidor.de/)
93-
* [Market Prophit API Documentation](http://developer.marketprophit.com/)
94-
* [OAuth.io API Documentation](http://docs.oauth.io/)
95-
* [Aircall for Developers](http://developer.aircall.io/)
96-
* [SupportKit API Docs](http://docs.supportkit.io/)
97-
* [SocialRadar's LocationKit Docs](https://docs.locationkit.io/)
98-
99-
(Feel free to add your site to this list in a pull request!)
100-
101-
Need Help? Found a bug?
102-
--------------------
103-
104-
Just [submit a issue](https://github.com/tripit/slate/issues) to the Slate Github if you need any help. And, of course, feel free to submit pull requests with bug fixes or changes.
105-
106-
107-
Contributors
108-
--------------------
109-
110-
Slate was built by [Robert Lord](https://lord.io) while at [TripIt](http://tripit.com).
111-
112-
Thanks to the following people who have submitted major pull requests:
113-
114-
- [@chrissrogers](https://github.com/chrissrogers)
115-
- [@bootstraponline](https://github.com/bootstraponline)
116-
- [@realityking](https://github.com/realityking)
117-
118-
Also, thanks to [Sauce Labs](http://saucelabs.com) for helping sponsor the project.
119-
120-
Special Thanks
121-
--------------------
122-
- [Middleman](https://github.com/middleman/middleman)
123-
- [jquery.tocify.js](https://github.com/gfranko/jquery.tocify.js)
124-
- [middleman-syntax](https://github.com/middleman/middleman-syntax)
125-
- [middleman-gh-pages](https://github.com/neo/middleman-gh-pages)
126-
- [Font Awesome](http://fortawesome.github.io/Font-Awesome/)

docs/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ require 'rake/clean'
66

77
CLOBBER.include('build')
88

9-
task :default => [:build]
9+
task default: [:build]

docs/config.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,4 @@
3636
configure :build do
3737
activate :minify_css
3838
activate :minify_javascript
39-
# activate :relative_assets
40-
# activate :asset_hash
41-
# activate :gzip
4239
end

0 commit comments

Comments
 (0)