0.3.0 • Published 9 years ago
spacedoc-json v0.3.0
spacedoc-json
JSON Schema adapter for Spacedoc
Parses information from JSON files formatted as JSON Schema. For use with Spacedoc, a documentation generator.
npm install spacedoc-jsonContents
Usage
spacedoc-json requires a working Spacedoc setup. Add json to your Spacedoc config like so:
Spacedoc.config({
adapters: ['json']
});Or in spacedoc.yml in your project root:
adapters:
- jsonIn pages that require JavaScript documentation, add json to the list of docs in the page's Front Matter. The value should be a string path to the JSON value, relative to the working directory.
---
title: Spec
docs:
json: spec/schema.json
---Support
spacedoc-json supports these features of JSON schema:
titledescriptiontypepropertiesrequireditems
Other Adapters
spacedoc-sass: SassDoc adapterspacedoc-js: JSDoc adapter
License
MIT © Geoff Kimball
0.3.0
9 years ago