Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/artyom/docr

Serve markdown documentation directly from git repository (no git needed).
https://github.com/artyom/docr

Last synced: about 11 hours ago
JSON representation

Serve markdown documentation directly from git repository (no git needed).

Awesome Lists containing this project

README

        

**docr** renders markdown documentation found in given git repository directly from git blob store (works even on bare repositories without working copy).

Usage of docr:
-bind="127.0.0.1:8080": address to listen
-ref="HEAD": reference (HEAD, refs/heads/develop, etc.)
-repo="./.git": path to repository root (.git directory)

To install, run:

go install -u -v github.com/artyom/docr

then start by running command:

docr -repo $GOPATH/src/github.com/artyom/docr/.git

and open this link: in your browser, you'll
see this file.

Files with `.md` or `.markdown` suffixes are rendered to html, other files served unmodified.

**Note**: to make docr work on bare git repositories, you have to set `core.logAllRefUpdates = true` in your bare git repository and have at least one commit pushed after this change.