# dictc

> Generate a manual for your React component lib

Latest version **0.3.0** (published 2018-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install dictc
pnpm add dictc
yarn add dictc
bun add dictc
```

Provides the command `dictc`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2018-08-20 |
| First published | 2018-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 38 |
| Unpacked size | 300.8 KB |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Yuqing Chen |
| Maintainers | codermatt |
| Keywords | React, generate documentation, React component |

## Links

- npm: https://www.npmjs.com/package/dictc
- Repository: https://github.com/yuqingc/dictc
- Homepage: https://github.com/yuqingc/dictc#readme
- Issues: https://github.com/yuqingc/dictc/issues
- npm.io page: https://npm.io/package/dictc

## Dependencies (38)

- [antd](https://npm.io/package/antd.md) ^3.7.0
- [less](https://npm.io/package/less.md) ^3.8.1
- [react](https://npm.io/package/react.md) ^16.4.1
- [prismjs](https://npm.io/package/prismjs.md) ^1.15.0
- [webpack](https://npm.io/package/webpack.md) ^4.16.1
- [node-sass](https://npm.io/package/node-sass.md) ^4.9.2
- [react-dom](https://npm.io/package/react-dom.md) ^16.4.1
- [css-loader](https://npm.io/package/css-loader.md) ^1.0.0
- [raw-loader](https://npm.io/package/raw-loader.md) ^0.5.1
- [react-live](https://npm.io/package/react-live.md) ^1.11.0
- [typescript](https://npm.io/package/typescript.md) ^2.9.2
- [file-loader](https://npm.io/package/file-loader.md) ^1.1.11
- [less-loader](https://npm.io/package/less-loader.md) ^4.1.0
- [sass-loader](https://npm.io/package/sass-loader.md) ^7.0.3
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.0.8
- [@types/react](https://npm.io/package/@types/react.md) ^16.4.6
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^9.0.0
- [react-router](https://npm.io/package/react-router.md) ^4.3.1
- [style-loader](https://npm.io/package/style-loader.md) ^0.21.0
- [@types/prismjs](https://npm.io/package/@types/prismjs.md) ^1.9.0
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^2.1.6
- [react-markdown](https://npm.io/package/react-markdown.md) ^3.3.4
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^16.0.6
- [parse-prop-types](https://npm.io/package/parse-prop-types.md) ^0.3.0
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^4.3.1
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^3.1.4
- [@types/react-router](https://npm.io/package/@types/react-router.md) ^4.0.29
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^3.2.0
- [clean-webpack-plugin](https://npm.io/package/clean-webpack-plugin.md) ^0.1.19
- [@types/react-router-dom](https://npm.io/package/@types/react-router-dom.md) ^4.2.7
- [react-copy-to-clipboard](https://npm.io/package/react-copy-to-clipboard.md) ^5.0.1
- [awesome-typescript-loader](https://npm.io/package/awesome-typescript-loader.md) ^5.2.0
- [hard-source-webpack-plugin](https://npm.io/package/hard-source-webpack-plugin.md) ^0.11.1
- [extract-text-webpack-plugin](https://npm.io/package/extract-text-webpack-plugin.md) ^4.0.0-beta.0
- [add-asset-html-webpack-plugin](https://npm.io/package/add-asset-html-webpack-plugin.md) ^2.1.3
- [tsconfig-paths-webpack-plugin](https://npm.io/package/tsconfig-paths-webpack-plugin.md) ^3.2.0
- [@types/react-copy-to-clipboard](https://npm.io/package/@types/react-copy-to-clipboard.md) ^4.2.6
- [fork-ts-checker-webpack-plugin](https://npm.io/package/fork-ts-checker-webpack-plugin.md) ^0.4.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2018-08-20
- 0.2.1 — 2018-08-16
- 0.2.0 — 2018-08-15
- 0.1.0 — 2018-08-14
- 0.0.10 — 2018-08-09
- 0.0.9 — 2018-08-09
- 0.0.8 — 2018-08-07
- 0.0.7 — 2018-08-07
- 0.0.6 — 2018-08-07
- 0.0.5 — 2018-08-07
- 0.0.4 — 2018-08-07
- 0.0.0-alpha.0 — 2018-07-19
- 0.0.0 — 2018-07-16

## README

# dictc

Dictc generates a documentation website for your *React* Component library.

*Typescript* supported only at present

## Get started

### Installation

```
$ yarn add dictc --dev
```
or
```
$ npm install dectc --save-dev
```

### Configuration

1. Create a folder named `.dictc` in the root directory of your project

2. Create a file named `dictc.config.js` in `dictc`.

3. Config your app.

```
# source tree
.
├── .dictc
│   └── dictc.config.js
└── src
    ├── components
    │   ├── Button
    │   │   ├── Button.tsx
    │   │   ├── index.md
    │   │   └── index.tsx
    │   └── Icon
    │       ├── index.md
    │       └── index.tsx
    └── index.ts

```

```js
// .dictc/dictc.config.js

module.exports = {
  // Default to "Documentation"
  title: 'Title',
  footerText: 'Copyright Company 2018 - Project',
  // Dictc import components used in the documentation from the context directory
  context: 'src', 
  // Customized style file
  styleFile: 'src/styles/index.less',
  // Define your pages and contents
  sections: [
    {
      // This shows in the side menu
      name: 'Get Started',
      // Single markdown file, use "contentPath"
      contentPath: 'README.md'
    },
    {
      name: 'Components',
      // dictc automatically resolve components in this path
      // dictc searches for "index.md"
      resolvePath: 'src/components/'
    }
  ]
};
```

  4. Run `yarn run dictc`. You can also add this command to your `package.json`

## Caveats

dictc is still at development. Feel free to contribute to this project.

---
_Source: https://npm.io/package/dictc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
