GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - toolbuddy/docoGen: A document tool within your masterpiece.

BranchesTags
Open more actions menu

Latest commit

 

History

74 Commits
74 Commits

Folders and files

NameName
Last commit message
Last commit date
example
example
 
 
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.npmignore
.npmignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
install_dep.bat
install_dep.bat
 
 
install_dep.sh
install_dep.sh
 
 
main.js
main.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

docoGen

npm version npm downloads

A document generation tool within your masterpiece.

docoGen

  • The coverage :
    • Convert to Latex pdf (latest support, work in progress)
    • Convert to Markdown pdf (deprecate currently)
    • Convert to html (latest support, work in progress)
      • please import package: docoGen-webui
      • currently need to clone the source code to use

See More in Wiki

  • Contain the latest support and usage explanation.

Prerequisite

  • Dependencies of node-latex-pdf. (need to install MiKTeX to generate LaTeX document)
    • You can use install_dep.sh or install_dep.bat to install dependencies
  • Using the file extension which named .docogen, and just store json format in it.
    • these files treated as configuration dependency to your generated result.
    • More information (Still working on it, see test/script/ to see current support)
  • New feature: support markdown format!
    • After version 0.1.0, you can now edit .md to writing docoGen!
    • System will transform markdown to docoGen format.
    • See the example in test/md_script/example.md
    • More detail information will be append on docoGen wiki.
  • Within docogen running, MikTex will asked you to install multiple required package with docogen.
    • It will takes minutes to complete the packages dependency installation.
    • For Window user, if you install MikTeX with option each install will be notified, then the first setup will pop out several windows to ask for permission. This is the docoGen format dependencies, It's safety to let it installed.

Usage

For Developer

  • Git clone with submodule
    • It will clone the example scripts
git clone --recursive https://github.com/toolbuddy/docoGen.git

For User

  • Install
npm install docogen --save
  • Install dependencies (after install docoGen package)

    • The install scripts are under docoGen package.
    • Window user
    $ ./node_modules/docogen/install_dep.bat
    
    • Linux User
    $ bash ./node_modules/docogen/install_dep.sh
    
  • Example: Generate LaTeX pdf from docoGen script

    • src_path: the source path to your project root, and it will get all docogen files.
    • dest_path: the destination directory to store those generated pdf.
    • options: the user-defined go here. (JSON object format)
      • output: specify the output pdf filename.
const docogen = require('docogen');

// convert docogen to latex (pdf format), with absolute path
docogen.generate_latexpdf( src_path , dest_path , options ,(err,msg)=>{
    console.log(msg);
});
  • See all current support method in test/! Enjoy!

Some practical usage

  • Example - project usage
    • using doc.js as entry to take advantage of docoGen
    • then generate the pdf from scripts under script/.

Join us

Slack Status

Author

  • Kevin Cyu, [email protected]

About

A document tool within your masterpiece.

www.npmjs.com/package/docogen

Topics

documentation-generatorjsonlatex-pdfmarkdownmiktexpdfstandalone

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

33 stars

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.