Giter Site home page Giter Site logo

keyzf / webdoc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webdoc-labs/webdoc

0.0 1.0 0.0 5.02 MB

Documentation generator for the web

License: MIT License

JavaScript 95.23% CSS 0.92% TypeScript 0.32% Shell 0.10% PowerShell 0.30% SCSS 3.13%

webdoc's Introduction

Logo-Frame

webdoc Example documentation

webdoc is the next generation documentation generator for the family of web languages. It supports the JSDoc notation and infers type data from TypeScript definitions.

You can checkout the documentation for example/ here!

Usage ๐Ÿ—ž๏ธ

npm install --save-dev @webdoc/cli

To get started, create a webdoc.conf.json file in your project directory.

{
  "source": {
    "include": "src/",
    "excludePattern": "(node_modules|lib|test)"
  },
  "plugins": [
    "plugins/markdown"
  ],
  "opts": {
    "destination": "docs"
  },
  "template": {
    "repository": "<your_github_url>",
    "outputSourceFiles": false
  }
}

The only required field is source.include which tells webdoc where the source files are. @webdoc/cli's README details more configuration options

You can now run webdoc in your terminal and documentation will be generated. Be sure to serve the documentation from the folder it is generated in. If you need to serve from an ancestor directory, provide the documentation path relative to the root using the --site-root option, e.g. webdoc --site-root docs.

Packages ๐Ÿ“ฆ

Packages npm
@webdoc/cli npm David (path)
@webdoc/model npm David (path)
@webdoc/types npm David (path)
@webdoc/parser npm David (path)
@webdoc/externalize npm David (path)
@webdoc/template-library npm David (path)
@webdoc/legacy-template npm David (path)
@webdoc/default-template npm David (path)

Features ๐ŸŽ‰

  • Support for JavaScript, Flow, and TypeScript. The modular structure of @webdoc/parser allows you to integrate it with other languages as well.

  • High-performance document tree that enforces proper relationships between symbols.

  • Importing external APIs to integrate your documentation

Coming soon:

  • Documentation coverage analysis

  • Powerful default template that:

    • integrates with JSFiddle & CodePen for live examples of your API
    • provides a neat and clean navigation for users
    • makes it easy to write tutorials

Development Roadmap

Contribute

Glad you asked! Open an issue and I'll get you something to work on! webdoc has an amazing potential to disrupt the stagnated documentation process!

webdoc's People

Contributors

bigtimebuddy avatar edwinclement08 avatar kartk avatar lazarljubenovic avatar shukantpal avatar zekfad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.