Skip to content

Commit

Permalink
docs: update scope
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed May 3, 2022
1 parent 992b141 commit 82e6cd4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 149 deletions.
155 changes: 9 additions & 146 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,153 +1,16 @@
<p align="center">
<a href="https://prozi.github.io/docma"><img width="200" height="200" src="https://raw.githubusercontent.com/Prozi/docma/master/img/docma-logo.png" alt="Docma" /></a>
<a href="https://onury.github.io/docma"><img width="200" height="200" src="https://raw.githubusercontent.com/Prozi/docma/master/img/docma-logo.png" alt="Docma" /></a>
</p>

<p align="center">
<a href="https://www.npmjs.com/package/@jacekpietal/docma"><img src="https://img.shields.io/npm/v/@jacekpietal/docma.svg?style=flat-square" alt="npm" /></a>
<a href="https://github.com/Prozi/docma"><img src="https://img.shields.io/github/release/Prozi/docma.svg?style=flat-square" alt="release" /></a>
<a href="https://github.com/Prozi/docma/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/@jacekpietal/docma.svg?style=flat-square" alt="license" /></a>
<a href="https://www.npmjs.com/package/@jacekpietal/docma"><img src="https://img.shields.io/npm/dt/@jacekpietal/docma.svg?style=flat-square" alt="downloads" /></a>
<a href="https://libraries.io/npm/@jacekpietal%2Fdocma"><img src="https://img.shields.io/librariesio/github/Prozi/docma?style=flat-square" alt="dependencies" /></a>
<a href="https://github.com/Prozi/docma/graphs/commit-activity"><img src="https://img.shields.io/maintenance/yes/2021.svg?style=flat-square" alt="maintained" /></a>
<a href="https://prozi.github.io/docma"><img src="https://img.shields.io/badge/docs%20by-docma-c27cf4.svg?docs%20by=docma&style=flat-square" alt="documentation" /></a>
<br />
<sub>© 2019, Onur Yıldırım (<b><a href="https://github.com/onury">@onury</a></b>).</sub>
</p>

A powerful tool to easily generate beautiful HTML documentation from Javascript ([JSDoc][jsdoc]), [Markdown][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][zebra]. :sunglasses:
- Supports custom templates, comes with template authoring tools.
- Works great with **GitHub Pages**, Amazon **S3**, Nginx, Apache, etc...
- Build via [**API**][docma-api] or [**CLI**][docma-cli].
- Extremely configurable and debuggable.
- Well documented. :point_up:

...like this:

<p align="center">
<a href="https://prozi.github.io/docma/"><img width="650" height="385" src="https://raw.githubusercontent.com/Prozi/docma/master/img/docma-screen.gif" alt="Docma screen" /></a>
<br />
<br />
<sub>This is generated with the built-in template, Zebra.</sub><br />
<a href="https://prozi.github.io/docma/">click to view live</a>
</p>

## Installation

```console
npm i @jacekpietal/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.

```console
docma
```

You can even serve the docs locally and test.

```console
docma serve
```

See

- [Docma CLI Reference][docma-cli]
- [Build Configuration][docma-config]
- [F.A.Q.][docma-faq]

## Building Documentation Programmatically
The fork of [the fork](https://github.com/futurGH/docma) of [the fork](https://github.com/Prozi/docma) of the original [Docma](https://github.com/onury/docma) to update its deps.

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

```js
const Docma = require("@jacekpietal/docma");
```

Either by passing a [configuration][docma-config] object.

```js
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));
### Install
```shell
yarn add @qiwi/docma
```

Or by reading [configuration][docma-config] from a JSON file.

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

See [Docma API Reference][docma-api].

## Parsed Output

Sometimes, the issue is with invalid JSDoc comments. [See this](https://github.com/Prozi/docma/issues/55#issuecomment-437599192) 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][jsdoc-x]. _(I'm the author.)_

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

## Changelog

See [**CHANGELOG**][changelog].

#### Compatibility Table

| Docma version | Node version |
| -------------------------------------------------------------------------------- | ------------ |
| [v3.0.0](https://github.com/Prozi/docma/blob/master/CHANGELOG.md#300-2018-11-18) | **v8+** |
| [v2.0.0](https://github.com/Prozi/docma/blob/master/CHANGELOG.md#200-2018-04-12) | **v6+** |
| [v1.0.0](https://github.com/Prozi/docma/blob/master/CHANGELOG.md#100-2016-06-11) | **v4+** |

## Documentation

Read [**Docma documentation**][docma-docs], built with Docma, for a Docma demo... :eyes:
Also see the [**F.A.Q.**][docma-faq] section.

## License

[**MIT**][license]. 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][twemoji]. Graphics and icons licensed under [CC-BY 4.0][cc-by-4].

## Related Modules

- [jsdoc-x][jsdoc-x] — Parser for outputting a Javascript object from documented code via JSDoc's explain (-X) command.
- [marked][marked] — A full-featured markdown parser and compiler, written in JavaScript. Built for speed.
- [dustjs][dustjs-github] — Asynchronous Javascript templating for the browser and server.
### Usage
Follow [the original docs](https://github.com/onury/docma).

[license]: https://github.com/Prozi/docma/blob/master/LICENSE
[changelog]: https://github.com/Prozi/docma/blob/master/CHANGELOG.md
[screenshot]: https://raw.github.com/Prozi/docma/master/docma-screen.jpg
[screen-gif]: https://raw.github.com/Prozi/docma/master/docma-screen.gif
[docma-docs]: https://prozi.github.io/docma
[docma-api]: https://prozi.github.io/docma/api
[docma-cli]: https://prozi.github.io/docma/cli
[docma-config]: https://prozi.github.io/docma/api/#Docma~BuildConfiguration
[zebra]: https://prozi.github.io/docma/templates/zebra
[jsdoc]: http://usejsdoc.org
[jsdoc-x]: https://github.com/Prozi/jsdoc-x
[marked]: https://github.com/chjj/marked
[markdown]: https://daringfireball.net/projects/markdown
[dustjs]: http://www.dustjs.com
[dustjs-github]: https://github.com/linkedin/dustjs
[twemoji]: https://github.com/twitter/twemoji
[cc-by-4]: https://creativecommons.org/licenses/by/4.0
### License
[MIT](./LICENSE)
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "@jacekpietal/docma",
"version": "3.3.3",
"name": "@qiwi/docma",
"version": "0.0.0",
"description": "A powerful dev-tool to easily generate beautiful HTML documentation from Javascript (JSDoc), Markdown and HTML files.",
"repository": "Prozi/docma",
"license": "MIT",
"author": {
"name": "Onur Yıldırım",
Expand Down Expand Up @@ -130,5 +129,13 @@
"resolutions": {
"clean-css": "^4.1.11",
"braces": "^2.3.1"
},
"bugs": {
"url": "https://github.com/qiwi-forks/docma/issues"
},
"homepage": "https://github.com/qiwi-forks/docma#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/qiwi-forks/docma.git"
}
}

0 comments on commit 82e6cd4

Please sign in to comment.