• This repository has been archived on 24/Aug/2022
  • Stars
    star
    300
  • Rank 138,870 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple HTTP server rendering Markdown styled documents

Go Wiki

A simple HTTP server rendering Markdown styled documents on the fly and optionally shows its git history including diffs.

NOTE This is toy project to help me learn Go, so don't run this on anything publically available.

Screenshot1

Installation

$ go get github.com/renstrom/go-wiki
$ $GOPATH/bin/go-wiki <path to wiki directory>

Customize

It's only possible to customize the CSS. Put all your customizations in a file of your choosing and point to it using the --custom-css flag.

$ go-wiki ~/www/wiki --custom-css=<path to custom css>

Usage

Create git repository containing your Markdown formatted wiki pages.

On the server

Create an empty repository.

$ mkdir -p ~/www/wiki && cd $_
$ git init
$ git config core.worktree ~/www/wiki
$ git config receive.denycurrentbranch ignore

Setup a post-receive hook.

$ cat > .git/hooks/post-receive <<EOF
#!/bin/sh
git checkout --force
EOF
$ chmod +x .git/hooks/post-receive

Start the server.

$ go-wiki ~/www/wiki

On your local machine

Replace <user> and <host> with credentials for your specific machine.

$ git init
$ git remote add origin \
    ssh://<user>@<host>/home/<user>/www/wiki

Now create some Markdown file and push.

$ git add index.md
$ git commit -m 'Add index page'
$ git push origin master

License

MIT

More Repositories

1

shortuuid

πŸ„ A generator library for concise, unambiguous and URL-safe UUIDs
Go
1,084
star
2

fuzzysearch

🐷 Tiny and fast fuzzy search in Go
Go
979
star
3

go-jump-consistent-hash

⚑ Fast, minimal memory, consistent hash algorithm
Go
214
star
4

NeavUI

Development branch of Neav UI
Lua
96
star
5

dedent

Remove any common leading whitespace from multiline strings
Go
89
star
6

python-jump-consistent-hash

Fast, minimal memory, consistent hash algorithm
Python
37
star
7

passbook_flask_example

An example Implementation of a Passbook Webservice in Flask, based on mattt's passbook_rails_example
Python
19
star
8

nvim-diagnosticls

diagnostic-languageserver configuration for Neovim's language server client
Lua
10
star
9

vim-eighties

A simplified and optimized base16-eighties color scheme for Vim
Vim Script
10
star
10

webassets-browserify

Browserify filter for webassets
Python
5
star
11

dotfiles

config files etc.
Shell
4
star
12

prInformation

A lightweight WoW addon for showing various information (fps, gold, friends online etc.)
Lua
2
star
13

advent_of_code_2022

Advent of Code 2022
Rust
2
star
14

imdb-api

Very basic IMDb scraper written for Flask and Heroku
HTML
1
star
15

nvim-pylance

Add Pylance support to nvim-lspconfig
Lua
1
star
16

prButler

Making your life simpler in World of Warcraft
Lua
1
star
17

nSpellTracker

Simple buff, debuff and cooldown tracking based on rFilter3 by Zork
Lua
1
star
18

nFilger

Buff, debuff and cooldown tracker for Neav UI, based on Filger by Nils Ruesch
Lua
1
star
19

prExecute

Plays a notification sound ("Quad damage!" from Quake) when entering execution range for all classes/specs, also plays a tick sound for Drain Soul
Lua
1
star
20

webassets

A webservice to compile and compress various web assets
JavaScript
1
star