|
1 | | -<p align="center"> |
2 | | - <img src="https://raw.githubusercontent.com/slatedocs/img/main/logo-slate.png" alt="Slate: API Documentation Generator" width="226"> |
3 | | - <br> |
4 | | - <a href="https://github.com/slatedocs/slate/actions?query=workflow%3ABuild+branch%3Amain"><img src="https://github.com/slatedocs/slate/workflows/Build/badge.svg?branch=main" alt="Build Status"></a> |
5 | | - <a href="https://hub.docker.com/r/slatedocs/slate"><img src="https://img.shields.io/docker/v/slatedocs/slate?sort=semver" alt="Docker Version" /></a> |
6 | | -</p> |
| 1 | +# Slate |
7 | 2 |
|
8 | | -<p align="center">Slate helps you create beautiful, intelligent, responsive API documentation.</p> |
| 3 | + Modern IRC client built with web technologies and node.js for OSX, Linux, and eventually Windows. |
9 | 4 |
|
10 | | -<p align="center"><img src="https://raw.githubusercontent.com/slatedocs/img/main/screenshot-slate.png" width=700 alt="Screenshot of Example Documentation created with Slate"></p> |
| 5 | +  |
11 | 6 |
|
12 | | -<p align="center"><em>The example above was created with Slate. Check it out at <a href="https://slatedocs.github.io/slate">slatedocs.github.io/slate</a>.</em></p> |
| 7 | +  |
13 | 8 |
|
14 | | -Features |
15 | | ------------- |
| 9 | +## Features |
16 | 10 |
|
17 | | -* **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 in print. |
| 11 | + - themable with CSS |
| 12 | + - scriptable with JavaScript |
| 13 | + - keyboard shortcuts and mapping |
| 14 | + - third-party plugin support |
| 15 | + - entirely built with web technologies for extensibility |
18 | 16 |
|
19 | | -* **Everything on a single page** — Gone are the days when 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. |
| 17 | +## Installation |
20 | 18 |
|
21 | | -* **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. |
| 19 | + TODO: when we have distribution set up |
22 | 20 |
|
23 | | -* **Write code samples in multiple languages** — If your API has bindings in multiple programming languages, you can 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. |
| 21 | +## About |
24 | 22 |
|
25 | | -* **Out-of-the-box syntax highlighting** for [over 100 languages](https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers), no configuration required. |
| 23 | + Slate is/was a single day hack project that was intended to be a kickstarter, however I ran out of time so now it's a partially-implemented IRC client! I had pretty lofty goals but unfortunately there's not enough time to go around, there are still many features missing, and it's not quite in a usable state, but with some community interest and love maybe it will get there some day! If not at least some useful/clean IRC libs are available at [https://github.com/slate](https://github.com/slate). |
26 | 24 |
|
27 | | -* **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. |
| 25 | + Conceptually I really just wanted a clean, minimalistic IRC client, completely extensible through plugins. Ideally most of the core is written using such plugins. The entire thing should be themable, and the default theme should be programmer-friendly, aka get all the clutter out of my way, I just want to see chat logs. |
28 | 26 |
|
29 | | -* **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 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 use GitHub, you're also welcome to host your docs elsewhere. |
| 27 | +## Usage |
30 | 28 |
|
31 | | -* **RTL Support** Full right-to-left layout for RTL languages such as Arabic, Persian (Farsi), Hebrew etc. |
| 29 | + - press `?` to display the shortcut dialog |
32 | 30 |
|
33 | | -Getting started with Slate is super easy! Simply press the green "use this template" button above and follow the instructions below. Or, if you'd like to check out what Slate is capable of, take a look at the [sample docs](https://slatedocs.github.io/slate/). |
| 31 | +## Building |
34 | 32 |
|
35 | | -Getting Started with Slate |
36 | | ------------------------------- |
| 33 | + Install node, [node-webkit](https://github.com/rogerwang/node-webkit) and clone the repo. |
37 | 34 |
|
38 | | -To get started with Slate, please check out the [Getting Started](https://github.com/slatedocs/slate/wiki#getting-started) |
39 | | -section in our [wiki](https://github.com/slatedocs/slate/wiki). |
| 35 | + Build and run with: |
40 | 36 |
|
41 | | -We support running Slate in three different ways: |
42 | | -* [Natively](https://github.com/slatedocs/slate/wiki/Using-Slate-Natively) |
43 | | -* [Using Vagrant](https://github.com/slatedocs/slate/wiki/Using-Slate-in-Vagrant) |
44 | | -* [Using Docker](https://github.com/slatedocs/slate/wiki/Using-Slate-in-Docker) |
| 37 | +``` |
| 38 | +$ make |
| 39 | +``` |
45 | 40 |
|
46 | | -Companies Using Slate |
47 | | ---------------------------------- |
| 41 | + Build with: |
48 | 42 |
|
49 | | -* [NASA](https://api.nasa.gov) |
50 | | -* [Sony](http://developers.cimediacloud.com) |
51 | | -* [Best Buy](https://bestbuyapis.github.io/api-documentation/) |
52 | | -* [Travis-CI](https://docs.travis-ci.com/api/) |
53 | | -* [Greenhouse](https://developers.greenhouse.io/harvest.html) |
54 | | -* [WooCommerce](http://woocommerce.github.io/woocommerce-rest-api-docs/) |
55 | | -* [Dwolla](https://docs.dwolla.com/) |
56 | | -* [Clearbit](https://clearbit.com/docs) |
57 | | -* [Coinbase](https://developers.coinbase.com/api) |
58 | | -* [Parrot Drones](http://developer.parrot.com/docs/bebop/) |
59 | | -* [CoinAPI](https://docs.coinapi.io/) |
| 43 | +``` |
| 44 | +$ make build |
| 45 | +``` |
60 | 46 |
|
61 | | -You can view more in [the list on the wiki](https://github.com/slatedocs/slate/wiki/Slate-in-the-Wild). |
| 47 | + Continuous build with: |
62 | 48 |
|
63 | | -Questions? Need Help? Found a bug? |
64 | | --------------------- |
| 49 | +``` |
| 50 | +$ watch make build |
| 51 | +``` |
65 | 52 |
|
66 | | -If you've got questions about setup, deploying, special feature implementation in your fork, or just want to chat with the developer, please feel free to [start a thread in our Discussions tab](https://github.com/slatedocs/slate/discussions)! |
| 53 | +# License |
67 | 54 |
|
68 | | -Found a bug with upstream Slate? Go ahead and [submit an issue](https://github.com/slatedocs/slate/issues). And, of course, feel free to submit pull requests with bug fixes or changes to the `dev` branch. |
| 55 | + MIT |
69 | 56 |
|
70 | | -Contributors |
71 | | --------------------- |
72 | | - |
73 | | -Slate was built by [Robert Lord](https://lord.io) while at [TripIt](https://www.tripit.com/). The project is now maintained by [Matthew Peveler](https://github.com/MasterOdin) and [Mike Ralphson](https://github.com/MikeRalphson). |
74 | | - |
75 | | -Thanks to the following people who have submitted major pull requests: |
76 | | - |
77 | | -- [@chrissrogers](https://github.com/chrissrogers) |
78 | | -- [@bootstraponline](https://github.com/bootstraponline) |
79 | | -- [@realityking](https://github.com/realityking) |
80 | | -- [@cvkef](https://github.com/cvkef) |
81 | | - |
82 | | -Also, thanks to [Sauce Labs](http://saucelabs.com) for sponsoring the development of the responsive styles. |
0 commit comments