Package Exports
- node-slate-lib
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-slate-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A CLI for the Node.js port center-key/node-slate of lord/slate
This CLI allows you to use Slate while keeping your documentation and features together in the same branch and repo. To serve the documentation from Git Pages, select master branch /docs folder as your source.
Installation
yarn add --dev node-slate-libFolder Structure
.
└── src/
└── docs/
├── css/
├── fonts/
├── images/
├── document1.md
└── document2.mdAt compile time, all custom css, fonts, and images will be pulled into the ./docs directory. All Markdown files will be comibined into the index.html.
Configurations
Place a slate-config.yml file in the root of your project. These are the default configurations that you can override:
title: API Reference
language_tabs:
- bash
- ruby
- python
- javascript
toc_footers:
- <a href='#'>Sign Up for a Developer Key</a>
- <a href='https://github.com/tripit/slate'>Documentation Powered by Slate</a>
search: true
highlight_theme: monokai
CLI
Build
Compile markdown to static site from ./src/docs to ./docs:
slate-cli build| Option | Description |
|---|---|
| --no-compress | Skips uglify steps |
Serve
Run a dev server that live-reloads at http://localhost:4567:
slate-cli serve