Code Monkey home page Code Monkey logo

govanity's Introduction

govanity

For nice vanity urls for golang and private documentation.

Example @ http://go.viam.com/

Setup

In general, you must set GO_MODULES to the modules you wish to provide vanity URLs for. For documentation of private modules, you do not have to set a vanity pairing. For example:

export GO_MODULES=vanity.domain.com/private-repo=github.com/org/private-repo,github.com/org/no-vanity-private-repro

Running

With just vanity

go run cmd/server/main.go

With docs

In addition to the GO_MODULES, you must point govanity to a path containing a go.mod in order to know where to find source code. It's expected that the module has already been go mod downloaded.

go run cmd/server/main.go --enable-docs path/to/module

Bootstrapping

If you need to run a server that will not have access to the module contents in advance, you should bootstrap it. This will get the latest versions of the modules.

make docs_bootstrap

This will generate a go.mod file at ./doc/mod/go.mod with the latest versions of the modules that you can use to run govanity.

Static Doc Generation

make docs_static

govanity's People

Contributors

biotinker avatar edaniels avatar erh avatar

Watchers

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