Giter Site home page Giter Site logo

riceonlyfine / tsdoc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xperiments/tsdoc

0.0 1.0 0.0 762 KB

A JSDoc3 base themed generator generator for use with Typescript Projects, uses a highly modified version Docstrap JsDoc3 Template.

License: MIT License

JavaScript 45.90% TypeScript 0.94% CSS 53.16%

tsdoc's Introduction

#TSDoc#

A JSDoc3 base themed generator generator for use with Typescript Projects, uses a highly modified version Docstrap JsDoc3 Template.

Actually it only supports parsing of plain comments, also it needs some added "manual" anotation. You can see an output Example.

image

Changes

v0.0.4

  • Added Windows Support

v0.0.3

  • Added Auto Include of Readme.md file
  • Added basic Generics support
  • Added Enums support
  • Added Callbacks support
  • Added Events support
  • Added Tutorial support
  • Enhaced search with autocomplete

v0.0.1

  • Initial Release

Annotating your TS project

You can find annotated source files inside the output example ( Click the eye icon to see the source )

Instalation

sudo npm install tsdoc -g

Preparing your project

###Configuration###

TSDoc uses the same conf.json (now tsdoc.json) config file used in JsDoc3, but adds the following new options:

"tsdoc":{
	"source"			:"{string}",
	"destination"		:"{string}",
	"systemName"		:"{string}",
	"footer"			:"{string}",
	"copyright"			:"{string}",
	"outputSourceFiles" :"{boolean}",
	"commentsOnly" 		:"{boolean}"
}

####Options####

  • source Source folder where search .ts files
  • destination Documentation output folder
  • tutorials Set the source folder for tutorial parsing (.md, .html files)
  • systemName The project name
  • footer Footer string added to each page
  • copyright Copyright string added to each page
  • outputSourceFiles Set to true to enable source files processing
  • commentsOnly Set to false to use template with plain JS ( experimental )

Adding a default tsdoc.json file

You can automatically add a new tsdoc.json file to any folder in yor system, typing in your console:

$> tsdoc -i

Command line options

$> tsdoc -i [--install]
This will install the necesary tsdoc files to the current working directory.

$> tsdoc
Generaties documentation from tsdoc.json settings.

License

Copyright (c) 2013 Pedro Casaubon. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

tsdoc's People

Contributors

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