0.2.7 • Published 9 years ago

sourcejs-spec-status v0.2.7

Weekly downloads
28
License
-
Repository
github
Last release
9 years ago

Spec Status

Gitter chat

SourceJS plugin for Spec Statuses. Define the state of specific Spec with dev, rec, ready, deprecated or any custom badges.

image

It's also possible to assign different statuses to subsections of the Spec by adding corresponding status-class to source section, e.g.:

<div class="source_section status-deprecated">

Installation

To install it, run npm in sourcejs/user folder:

npm install sourcejs-spec-status --save

Then run Grunt update in SourceJS root:

cd sourcejs
grunt update

After restarting the app and defining enabled Spec catalogues in options, you will be able to set status to your Specs.

Options

Define plugin options in sourcejs/user/options.js file:

assets: {
  pluginsOptions: {
    specStatus: {
      enabledCatalogs: ['specs']
    },
  }
}

Dependencies

CouchDB

Install it, run locally or remotely and configure your SourceJS in /user/options.js:

assets: {
  modulesOptions: {
    couch: {
      server: 'http://couch-db.url:5984'
    },
  }
}

Note: CouchDB must be configured to allow CORS. Change database configuration from file, or use integrated admin panel - http://127.0.0.1:5984/_utils/config.html.

Upcoming updates

  • Change database solution to SourceJS storage

Compatible with SourceJS v0.4+, for v0.3.* use previous release.

0.2.7

9 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

10 years ago