Commit Briefs

05315415a2 Oliver Lowe

internal/server: value, not function (master)

Just checking one string, same name as function, don't need a function.


63357cf9bb Oliver Lowe

internal/server, internal/godoc: move more doc building to godoc

Again, shrinking server package so it's easier to test when we refactor database stuff.


47c52ac8a1 Oliver Lowe

internal/server: remove unused certs directory config


6dc6fd6e66 Oliver Lowe

internal/server: remove redundant load wrapper


3ff6983f79 Oliver Lowe

all: keep package parsing in the godoc package

The function named buildPackage wasn't really clear what was going on: each named file was being parsed by the Go parser. Parsing files has nothing to do with the server implementation. Moving stuff out of the server package now will make modifying how the server deals interacts with the database easier.


928a0568d8 Oliver Lowe

internal/server: squash line

No hard line length limit in Go


892b8dc1ec Oliver Lowe

internal/proxy, internal/server: don't fetch unused module zip size

It was only ever used for one log message. We still keep the maximum file size to fetch, though, but the server doesn't need to know about it. While here use regular http.Client.Head as only context.TODO was ever provided.


af71d6317c Oliver Lowe

Remove leftover gemini file


365eac26e2 Oliver Lowe

cmd/gddo: handle interrupt signals


f0678c555d Oliver Lowe

Just use go install

One less dependency to document, and all it did was run a single go command anyway.


Branches

Tags

1.18.3

1.18.2

1.18.1

Tree

.gitignorecommits | blame
LICENSEcommits | blame
README.mdcommits | blame
cmd/
contrib/
go.modcommits | blame
go.sumcommits | blame
internal/
schema.sqlcommits | blame
static/

README.md

# gddo

[![Go Documentation](https://godocs.io/git.sr.ht/~sircmpwn/gddo/cmd/gddo?status.svg)](https://godocs.io/git.sr.ht/~sircmpwn/gddo/cmd/gddo)

gddo is a maintained fork of the software that once powered godoc.org, and you
can use it to browse documentation for Go packages.

A hosted instance is available at [godocs.io](https://godocs.io).

## Installation

	go install ./cmd/gddo/

## Running

Initialize the PostgreSQL database:

	psql -f schema.sql

Then run:

	gddo \
		--db "postgres://localhost" \
		--http :8080

See `gddo --help` for all available flags.

See the [documentation](https://godocs.io/git.sr.ht/~sircmpwn/gddo/cmd/gddo) for
more information.

## Questions? Patches?

Send them to the [mailing list](https://lists.sr.ht/~sircmpwn/godocs.io).