
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
docula-core
Advanced tools
Other Docula modules:
Requires Node.js v5.9.1 or higher. Requires Redis. ElasticSearch is optional.
Using NPM
$ npm install docula-core --save
const Docula = require('docula-core');
const docula = new Docula({
git: {
remote_url: 'https://github.com/yourorg/yourrepo',
local_path: '/var/docula/repositories/yourrepo'
}
})
or
const docula = new Docula('/var/docula/config.json');
If you have some items in your configuration you want to configure via Environment, use additional parameter to Docula. These settings will override anything from previous config.
const docula = new Docula('config.json', {
git: { token: '123X' }
});
Once initialized, your repository will not have any data unless explicitly synchronized. Synchronization procedure clones or pulls the repo if it's already there, and scans changes since last point remembered in database.
Normally this should be done once initially, and then as a result of a GitHub commit hook. But you also could set it up via scheduler if you host your git repo somewhere else or for any other reasons.
docula.refresh();
Docula uses Q promises, and most core methods return one.
Docula uses filesystem paths (relative to repo root) as IDs for articles, categories etc. Terms "path" and "id" are mostly interchangeable throughout Docula.
Main concepts are:
Docula instance methods:
Tests for docula-core can be run using the command:
$ gulp test
Issues? Feature Requests? reported an issue.
FAQs
Core functions of Docula project
We found that docula-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.