🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

docbook

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docbook

Static documentation website generator based on markdown

latest
Source
npmnpm
Version
0.7.1
Version published
Maintainers
1
Created
Source

DocBook

Docbook is a powerful static documentation website generator that works on Markdown.

Version License

What can it do?

DocBook allows you to write content in Markdown, which has a very powerful and easy to learn markup syntax. You can quickly start creating your website without much code.

DocBook will automatically create the required files for your website, which are ready to be deployed to services like Netlify, GitHub Pages.

Features

Static site generation

  • Minified files
  • SEO friendly
  • Integrate external files

Built-in markdown plugins

  • Table of contents
  • Anchored Headings
  • Code highlighting
  • Callouts
  • YouTube player embed
  • Emoji

Customization

  • Control theme color
  • Dark theme :dark_sunglasses:
  • Custom plugins support

Quick start

DocBook site can be created quickly using the CLI tool. Make sure you have recent LTS version of Node.js installed. Follow the commands below:

npm install -g docbook
docbook init
# follow steps shown in CLI

Installing dependencies via npm install is not necessary if CLI is globally installed.

Development

Following commands must be followed to setup DocBook development environment.

git clone https://github.com/blenderskool/docbook
cd docbook
npm install
npm run dev

By default, the dev server opens at port 3000 with the playground. Playground is where you can test the code and make live changes to it.

Directory structure

DocBook follows the following directory structure,

  • src - Contains the source code.
    • core - Core modules that are used.
      • functions - Contains the code for the builder.
      • templates - Template files that define the structure, design and basic functionality of documentation website.
      • utils - Helper functions used extensively in functions.
  • playground - A sample documentation website setup to test DocBook features during development.
  • bin - Contains the scripts for the CLI.

Contributing

Make sure you create a fork of this repository before you start contributing.

git clone <your-forked-repo>
cd <your-forked-repo>
npm install
npm run dev

git checkout -b some-fix
# make changes to the code

git commit -m "Your commit message"
git push origin some-fix

Use the playground to test your code. Do not commit changes made in the playground.

Once you are done with the changes, you can open a pull request to dev branch.

License

DocBook is MIT Licensed

FAQs

Package last updated on 23 Jan 2019

Did you know?

Socket

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.

Install

Related posts