Code Monkey home page Code Monkey logo

godocdash's Introduction

Godocdash

Generate Dash docset for Dash/Zeal from your local $GOPATH packages.

Features

  • Support Package, Type, Function, Constant, Variable entry types of dash docsets currently.

  • You can set your own custom docset name and icon for different $GOPATH.

  • Concurrent generating, usally it only takes a few seconds to complete.

  • Go standard libraries are ignored, as there's Go docset in Dash/Zeal downloads already.

How It Works

While running, godocdash will first start a temporary godoc server, then find the package entries to grab the godoc pages, and generate the docset.

Installing

go get github.com/thoeni/godocdash

And make sure godoc command is in your $PATH.

Usage

Generally, just run:

godocdash

And a docset named GoDoc.docset will be generated in your current directory, you can then place it into Dash/Zeal docsets path.

As godocdash directly passes your current environment variables to godoc, you can change the source $GOPATH by setting it while running godocdash:

GOPATH=/another/gopath godocdash

You can also change the docset name and icon, or mute the output:

GOPATH=/another/gopath godocdash --options.silent --docset.name AnotherGodocName --docset.icon new_icon.png --docset.filters github.com/user/pkg,github.com/org/pkg

It's also possible to specify a filter in order to generate a subset of the documentation, by using the --docset.filter flag.

Command line flags:

$ godocdash -h
Usage of godocdash:
      --docset.filters string   Comma separated filters, e.g. github.com/user/pkg1,user/pkg2
      --docset.icon string      Docset icon .png path
      --docset.name string      Set docset name (default "GoDoc")
      --options.silent          Silent mode (only print error)

Configuration can be provided via toml file (by default it should be placed in the current directory or in /tmp):

[Docset]
filters = ["user/arepo", "github.com/anotheruser/another-repo"]
name = "adocsetname"

[Options]
silent = true

godocdash's People

Contributors

anonfunc avatar thoeni avatar wuudjac avatar

Watchers

 avatar

Forkers

arusso

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.