All Projects → onury → Docma

onury / Docma

Licence: mit
A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Docma

Jsdoc Baseline
An experimental, extensible template for JSDoc.
Stars: ✭ 51 (-82.23%)
Mutual labels:  api, documentation, docs, jsdoc
Verb
HEADS UP! Verb is going though a major transition, we've completely refactored everything from the ground up. If you're interested, please see the dev branch.
Stars: ✭ 442 (+54.01%)
Mutual labels:  api, documentation, docs, markdown
Jsdoc
An API documentation generator for JavaScript.
Stars: ✭ 12,555 (+4274.56%)
Mutual labels:  api, documentation, docs, jsdoc
Parse Comments
Parse JavaScript code comments. Works with block and line comments, and should work with CSS, LESS, SASS, or any language with the same comment formats.
Stars: ✭ 53 (-81.53%)
Mutual labels:  documentation, docs, jsdoc, markdown
X0
Document & develop React components without breaking a sweat
Stars: ✭ 1,706 (+494.43%)
Mutual labels:  documentation, docs, markdown
Github Template Guidelines
Guidelines for building GitHub templates.
Stars: ✭ 137 (-52.26%)
Mutual labels:  documentation, docs, reference
Typemill
TYPEMILL is a simple and lightweight Flat-File-CMS for authors and publishers.
Stars: ✭ 150 (-47.74%)
Mutual labels:  documentation, docs, markdown
Press
Minimalist Markdown Publishing for Nuxt.js
Stars: ✭ 181 (-36.93%)
Mutual labels:  documentation, docs, markdown
Gitdocs
Easy to use, SEO-friendly, beautiful documentation that lives in your git repo.
Stars: ✭ 252 (-12.2%)
Mutual labels:  documentation, docs, markdown
Cljdoc
📚 A central documentation hub for the Clojure community
Stars: ✭ 416 (+44.95%)
Mutual labels:  api, documentation, docs
Zeal
Offline documentation browser inspired by Dash
Stars: ✭ 9,164 (+3093.03%)
Mutual labels:  api, documentation, docs
Pico8 Api
Unofficial PICO-8 API with a lovely design ! ::
Stars: ✭ 115 (-59.93%)
Mutual labels:  api, documentation, docs
Catalog
Create living style guides using Markdown or React
Stars: ✭ 1,527 (+432.06%)
Mutual labels:  documentation, docs, markdown
Pyspark Cheatsheet
🐍 Quick reference guide to common patterns & functions in PySpark.
Stars: ✭ 108 (-62.37%)
Mutual labels:  documentation, docs, reference
Docfx
Tools for building and publishing API documentation for .NET projects
Stars: ✭ 2,873 (+901.05%)
Mutual labels:  api, documentation, markdown
Jsdoc To Markdown
Generate markdown documentation from jsdoc-annotated javascript
Stars: ✭ 1,199 (+317.77%)
Mutual labels:  documentation, jsdoc, markdown
Foliant
Comprehensive markdown-based documentation toolkit
Stars: ✭ 74 (-74.22%)
Mutual labels:  documentation, docs, markdown
Docsify Tabs
A docsify.js plugin for rendering tabbed content from markdown
Stars: ✭ 65 (-77.35%)
Mutual labels:  documentation, docs, markdown
Docnado
Rapid documentation tool that will blow you away...
Stars: ✭ 67 (-76.66%)
Mutual labels:  documentation, docs, markdown
Pdoc
API Documentation for Python Projects
Stars: ✭ 853 (+197.21%)
Mutual labels:  api, documentation, docs

Docma

npm release license downloads dependencies maintained documentation
© 2019, Onur Yıldırım (@onury).

A powerful tool to easily generate beautiful HTML documentation from Javascript (JSDoc), Markdown and HTML files.

Features

  • Parse JSDoc documentation, Markdown and HTML files.
  • Build a cool SPA (Single Page Application) from parsed files.
  • Generate multiple/separate API documentations by grouping JS files.
  • Path or Query-string based app routing.
  • Non-opinionated engine, built-in template with cool opinions. 😎
  • Supports custom templates, comes with template authoring tools.
  • Works great with GitHub Pages, Amazon S3, Nginx, Apache, etc...
  • Build via API or CLI.
  • Extremely configurable and debuggable.
  • Well documented. ☝️

...like this:

Docma screen

This is generated with the built-in template, Zebra.
click to view live

Installation

npm i docma -D

Building Documentation with CLI

You can use Docma CLI to build documentations directly from your console. Once you create the configuration file docma.json in your project root, it's quite simple.

docma

You can even serve the docs locally and test.

docma serve

See

Building Documentation Programmatically

If you need to build documentation from within your code, use the API.

const Docma = require('docma');

Either by passing a configuration object.

const config = {
    src: [
        './code/**/*.js',
        './README.md'
    ],
    dest: './output/doc'
};
Docma.create()
    .build(config)
    .then(success => console.log('Documentation is built successfully.'))
    .catch(error => console.log(error));

Or by reading configuration from a JSON file.

Docma.create()
    .build('./path/to/docma.json')
    .catch(error => console.log(error));

See Docma API Reference.

Parsed Output

Sometimes, the issue is with invalid JSDoc comments. See this for linting/validating your JSDoc while you type and within a build process.

To investigate the parsed JSDoc output, enable the debug option that will create a JSON output(s) within the root of the destination directory. If you have a problem with the parsed documentation data, open an issue @ jsdoc-x. (I'm the author.)

For markdown output issues (that are not related with style), you can open an issue @ marked.

Changelog

See CHANGELOG.

Compatibility Table

Docma version Node version
v3.0.0 v8+
v2.0.0 v6+
v1.0.0 v4+

Documentation

Read Docma documentation, built with Docma, for a Docma demo... 👀
Also see the F.A.Q. section.

License

MIT. You don't have to include any copyright notice in your documentation output or templates but I'd appreciate if you let people know about this tool so we can read better documentations.

Emoji shortcuts used in source markdown files are parsed into twemoji. Graphics and icons licensed under CC-BY 4.0.

Related Modules

  • jsdoc-x — Parser for outputting a Javascript object from documented code via JSDoc's explain (-X) command.
  • marked — A full-featured markdown parser and compiler, written in JavaScript. Built for speed.
  • dustjs — Asynchronous Javascript templating for the browser and server.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].