Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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
The npm package docula-core receives a total of 2 weekly downloads. As such, docula-core popularity was classified as not popular.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.