All Projects → julie-ng → tidy-jsdoc

julie-ng / tidy-jsdoc

Licence: other
A clean JSDoc3 template

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
CSS
56736 projects

Projects that are alternatives of or similar to tidy-jsdoc

docgen
The docs.json generator for discord.js and its related projects
Stars: ✭ 59 (+268.75%)
Mutual labels:  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 (+231.25%)
Mutual labels:  docs, jsdoc
Docma
A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.
Stars: ✭ 287 (+1693.75%)
Mutual labels:  docs, jsdoc
Jsdoc
An API documentation generator for JavaScript.
Stars: ✭ 12,555 (+78368.75%)
Mutual labels:  docs, jsdoc
Jsdoc Baseline
An experimental, extensible template for JSDoc.
Stars: ✭ 51 (+218.75%)
Mutual labels:  docs, jsdoc
jsdoc-action
📖 GitHub Action to build JSDoc documentation
Stars: ✭ 61 (+281.25%)
Mutual labels:  docs, jsdoc
soulsign-scripts
📝 一部分是个人为魂签制作的签到脚本,还有一些个人使用的签到脚本。
Stars: ✭ 50 (+212.5%)
Mutual labels:  jsdoc
docs
API Documentation for Handsontable
Stars: ✭ 18 (+12.5%)
Mutual labels:  docs
reactools
Create React interfaces is easy.
Stars: ✭ 14 (-12.5%)
Mutual labels:  docs
hornibills
犀鸟 方便快捷的文档接口管理
Stars: ✭ 78 (+387.5%)
Mutual labels:  docs
laravel-docs-ru
Актуализированная редакция документации Laravel версий 8.x и 9.x на русском языке.
Stars: ✭ 19 (+18.75%)
Mutual labels:  docs
revel.github.io
Revel manual and docs
Stars: ✭ 39 (+143.75%)
Mutual labels:  docs
tokei-zh
🇨🇳翻译: <tokei> 代码信息的统计程序 ❤️ 校对 ✅
Stars: ✭ 92 (+475%)
Mutual labels:  docs
open-development-template
Workflow and documentation templates that help teams formalize their goals, workflow and governance model to encourage participation and field contributions.
Stars: ✭ 18 (+12.5%)
Mutual labels:  docs
docs
WayScript Documentation
Stars: ✭ 14 (-12.5%)
Mutual labels:  docs
docs
Learn Anything Docs
Stars: ✭ 25 (+56.25%)
Mutual labels:  docs
create-vuepress-site
VuePress Site Generator
Stars: ✭ 78 (+387.5%)
Mutual labels:  docs
idoc
📒📚Generate beautiful interactive documentation and Open-API 3.0 spec file from your existing Laravel app.
Stars: ✭ 95 (+493.75%)
Mutual labels:  docs
docs
Jina V1 Official Documentation. For the latest one, please check out https://docs.jina.ai
Stars: ✭ 21 (+31.25%)
Mutual labels:  docs
bilibili-api-docs
bilibili-api 的开发文档
Stars: ✭ 19 (+18.75%)
Mutual labels:  docs

tidy-jsdoc

Build Status Known Vulnerabilities

A minimalist and clean jsdoc template.

Features

Preview

Note Latest Version 1.0 is considered a breaking change because the design changes significantly.

Examples

Version 1.0 - Preview

Based on the default jsdoc template and inspired in design by vue.js documentation and docsify.

Looking for the old design?

If you want keep the old design, version your package.json appropriately. Preview old designs in the images folder.

Note: the old designs ^0.3.0 will not be updated or maintained.

Usage

Add Dependency

To use this jsdoc template in a project, first install the packages:

npm install --save-dev jsdoc tidy-jsdoc

Generate Docs

Once you've configured jsdoc and added syntax to your JavaScript files, you can generate the HTML files like so, optionally including a readme file:

jsdoc --readme README.md -c jsdoc.json

Configure JSDoc

Then configure jsdoc to use the tidy template. Below is an example jsdoc.json configuration file. Be sure to adjust

  • template
    Points to ./node_modules/tidy-jsdoc

  • prism-theme
    Optionally pick a prismjs theme for styling your code. Defaults to "prism-tomorrow-night". Choose from templates available in ./static/styles/vendor/ folder

  • destination
    Output is ./docs/, allowing for easy GitHub Pages publishing.

  • metadata
    Customize title, logo, etc.

  • styles
    Let's your customize colors, etc. See details below.

{
  "tags": {
    "allowUnknownTags": true,
    "dictionaries": [
      "jsdoc",
      "closure"
    ]
  },
  "source": {
    "include": [
      "src"
    ],
    "includePattern": ".+\\.js(doc)?$",
    "excludePattern": "(^|\\/|\\\\)_"
  },
  "opts": {
    "template": "./node_modules/tidy-jsdoc",
    "prism-theme": "prism-custom",
    "encoding": "utf8",
    "destination": "./docs/",
    "recurse": true
  },
  "plugins": [
    "plugins/markdown",
    "plugins/summarize"
  ],
  "templates": {
    "cleverLinks": false,
    "monospaceLinks": false
  },
  "metadata": {
    "title": "My JavaScript Library",
  }
}

Customize the Template

Adjusting Theme with CSS variables

As of version 1.0, this template is styled via css variabbles, so you can adjust it to your brand. Inside your jsdoc.json configuration file, add an addional styles property, for example:

{
  "metadata": "...",
  "styles": {
    "text-color": "#111",		
    "primary-color": "blue",
    "heading-color": "var(--primary-color)"
  }	
}

This would output in your document <head>:

<style>
  :root {
    --text-color: #111;
    --primary-color: blue;
    --heading-color: var(--primary-color);
  }
<style>

The keys and values are arbitrary, but the CSS should be valid. For a full list of the available variables, see _vars.scss.

Development

For more information about creating jsdoc templates, see the jsdoc GitHub repository.

When editing SCSS, build the CSS automatically like so:

npm run sass:watch

Note: you'll have to commit both the scss and css files.

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].