Categorygithub.com/wansing/markdump
modulepackage
0.4.1
Repository: https://github.com/wansing/markdump.git
Documentation: pkg.go.dev

# README

markdump

markdump serves a dump of markdown files via web.

Features

  • No additional markup: Just dump your markdown files and folders. No YAML header or whatever.
  • Read-only: You can use a git frontend for editing content, e. g. Gitea.
  • Search: Very basic live search function.
  • Token Authentication: Configure one or multiple access tokens, including public, and create shareable links for any page with one click.

Configuration via Environment Variables

  • AUTH: list of authentication tokens, separated by whitespaces
  • LISTEN: HTTP listen address, default: 127.0.0.1:8134
  • RELOAD_SECRET: secret for git reload handler, default: randomly generated and printed to stderr
  • REPO: path to content folder, default: .
  • TITLE: title for root content folder, default: Home

Try it

git clone https://github.com/wansing/markdump.git
cd markdump
go build ./cmd/markdump
AUTH=public RELOAD_SECRET=change-me REPO=content ./markdump

Then call the reload URL http://127.0.0.1:8134/reload?secret=change-me. It will output git reload failed: git reload has no effect when running in a terminal because we don't want to mess with git repositories in interactive scenarios.

Install

Arch Linux users can install markdump from the AUR. Have a look here for configuration and systemd service files.

# Packages

No description provided by the author
No description provided by the author

# Functions

Slugify returns a modified version of the given string in lower case, with [a-z0-9] retained and a dash in each gap.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Entry
No description provided by the author