
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Generate and publish Github pages quickly and easily from markdown/pug templates.
read()
to specify which file to use as content for your template:p!= read("README.md")
brief
from cli or instantiate a brief instance and run brief.update()
If you want to customize behavior of brief you can instantiate a new brief instance with various options:
var Brief = require('brief').Brief;
var brief = new Brief({
templateFile: 'index.pug',
outputFile: 'index.html',
ctx: {title: 'Title'},
branch: 'gh-pages',
remote: 'origin',
push: true,
quiet: false
});
brief.update();
To update the gh-pages
branch using defaults:
$ brief
> git checkout gh-pages
Switched to branch 'gh-pages'
Your branch is ahead of 'origin/gh-pages' by 1 commit.
> git add /Users/zk/go/src/github.com/zeekay/brief/index.html
> git commit -m "Updating generated content"
[gh-pages f869f85] Updating generated content
1 file changed, 29 insertions(+), 71 deletions(-)
rewrite index.html (99%)
> git push -f origin gh-pages
To git@github.com:zeekay/brief
0052836..f869f85 gh-pages -> gh-pages
> git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
Most configuration options are available from command line, brief --help
for
more detail.
Tastes good with Cake!
task 'gh-pages', 'Publish docs to gh-pages', ->
require('brief').update()
FAQs
Generate and publish Github pages quickly and easily.
The npm package brief receives a total of 5 weekly downloads. As such, brief popularity was classified as not popular.
We found that brief 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.