• Stars
    star
    314
  • Rank 133,353 (Top 3 %)
  • Language
    Go
  • License
    Other
  • Created over 11 years ago
  • Updated almost 2 years ago

Reviews

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

Repository Details

A cross-platform markdown web server

allmark - the markdown server

allmark is a fast, standalone markdown web server for Linux, Mac OS and Windows written in go.

allmark logo

allmark is a file-system-centric markdown web server. You can point it at any directory that contains markdown files and it will immediately start a web-server that serves the rendered HTML content of the markdown file to you.

And it will not only render the markdown files in your directory as HTML, but it will also add everything that it needed for a complete website: Navigation, Full-text Search, Theming, Sitemap, RSS, Tags, ... on-the-fly with websocket-based live-reload.

Animation: Cloning allmark from github, building it and taking it out for a test run on the allmark repository itself

And thanks to the power of go all of this is super fast and done with a single standalone application.

Usage

Serve a specific directory:

allmark serve <directory path>

Serve the current directory:

cd markdown-repository
allmark serve

Serve the current directory with live-reload enabled:

allmark serve -livereload

Force a full reindex every 60* seconds:

allmark serve -reindex

* When enabled the default interval is 60 seconds. You can change the interval in the repository config.

Force HTTPS (redirect all http requests to HTTPS):

allmark serve -secure

Save the default configuration to the .allmark folder so you can customize it:

allmark init

You can point allmark at any folder structure that contains markdown documents and files referenced by these documents (e.g. this repository folder) and allmark will start a web-server and serve the folder contents as HTML via HTTP(s) on a random free port.

Folder Structure Conventions

The standard folder structure for a markdown-repository item could look something like this:

β”œβ”€β”€ files
β”‚Β Β  β”œβ”€β”€ image.png
β”‚Β Β  └── more-files
β”‚Β Β      β”œβ”€β”€ file1.txt
β”‚Β Β      β”œβ”€β”€ file2.txt
β”‚Β Β      └── file3.txt
└── some-file.md
  1. one markdown file per folder (with the extension .md, .markdown or .mdown)
  2. a files folder which contains all files referenced by the markdown document
  3. an arbitrary number of child directories that can contain more markdown-repository items

Nesting / Hierarchie

You can nest repository items arbitrarily. Example:

β”œβ”€β”€ child-item-1
β”‚Β Β  └── item1.md
β”œβ”€β”€ child-item-2
β”‚Β Β  └── item2.md
β”œβ”€β”€ child-item-3
β”‚Β Β  └── item3.md
β”œβ”€β”€ files
β”‚Β Β  β”œβ”€β”€ image.png
β”‚Β Β  └── more-files
β”‚Β Β      β”œβ”€β”€ file1.txt
β”‚Β Β      β”œβ”€β”€ file2.txt
β”‚Β Β      └── file3.txt
└── some-file.md

Folders without Markdown Files

  • If you have folders in your repository that don't contains markdown files allmark will display and index of all files in that directory (β†’ file-collection item)
  • file-collection items cannot have other childs

Markdown Document Structure

allmark makes certain assumptions about the structure of your documents. They should have

  1. Title
  2. Description Text
  3. Document Body

A typical document expected by allmark could look like this:

# Document Title / Headline

A short description of the document ... Usually one sentence.

The Content of your document

![Some Image](files/image.jpg)

- A List 1
- A List 2
- A List 3

**Some garbage text**: In pharetra ullamcorper egestas.
Nam vel sodales velit. Nulla elementum dapibus sem nec scelerisque.
In hac habitasse platea dictumst. Nulla vestibulum lacinia tincidunt.

Download / Installation

You can download the latest binaries of allmark for your operating system from allmark.io/bin

Linux

sudo su
curl -s --insecure https://allmark.io/bin/allmark > /usr/local/bin/allmark
chmod +x /usr/local/bin/allmark

Mac OS

sudo curl "https://allmark.io/bin/darwin_amd64/allmark" -o "/usr/local/bin/allmark"
sudo chmod +x /usr/local/bin/allmark

Windows

Invoke-WebRequest https://allmark.io/bin/windows_amd64/allmark.exe -OutFile allmark.exe

All binaries at allmark.io are up-to-date builds of the master-branch.

If you want to download and install binaries from the develop-branch you can go to develop.allmark.io/bin.

Features

allmark can convert about any folder structure that contains markdown documents into well-structured websites with

  • navigation
  • sitemap
  • search
  • livereload

and serves them via HTTP and/or HTTPs.

For a detailed list of all features goto documentation/features.

Demo / Showcase

If you want to see allmark in action you can visit my blog AndyK Docs at https://andykdocs.de:

Animation: Demo of allmark hosting andykdocs.de

Build

Build Status

Or you can build allmark yourself if you have go installed (see: documentation/development/build).

Known Bugs

-- There are currently no known bugs :dancers: --

If you encouter a bug please file an issue on at github.com/andreaskoch/allmark/issues.

Roadmap / To Dos

Here are some of the ideas and todos I would like to add in the future.

Architecture & Features

  • Allow localization/internationalization
  • Web editor for markdown documents for collaborative editing
  • Additional Data Sources
    • Amazon S3
    • Dropbox support
    • SMTP message posting
    • Repository Replication?
  • allmark swarm
    • Repository sharding
    • load-balancing
    • distributed filesystem (ipfs)
  • Static website generation
  • User Management
    • User management pages
  • Support for folders with multiple markdown files
  • Support for custom-rewrites
  • Daemon mode
  • Create install actions for Windows, Linux and Mac OS which handle the OS integration

Documentation

  • More documentation for public methods (godoc)
  • More unit-tests
  • Integration tests

Theming

  • Redesign default theme
  • Create more default themes
  • Create a theme "loader"
  • Infinite Scrolling for latest items
  • Improved Image Galleries

Contributions

If you want to improve allmark in any way please create a pull request or contact me. All contributions are welcome!

Contact

Twitter: @allmark_io or @andreaskoch Github: github.com/andreaskoch/allmark E-Mail: [email protected]

More Repositories

1

dockerized-magento

A dockerized Magento Community Edition 1.9.x
Shell
278
star
2

dcsg

dcsg is a command-line utility for Linux that generates systemd services for Docker Compose projects
Go
185
star
3

go-fswatch

fswatch is a go library for monitoring filesystem changes that does not depend on inotify
Go
59
star
4

gargantua

The fast website crawler
Go
34
star
5

togglcsv

Togglβ₯ƒCSV is a command line utility for Windows, Mac OS and Linux that imports or exports time reports to and from a Toggl account via CSV files
Go
17
star
6

go-autobuild

autobuild your go projects
Go
8
star
7

MagentoTutorial

Magento Development Tutorial
8
star
8

ga-spam-control

Command-line utility for blocking referrer spam from your Google Analytics accounts
Go
6
star
9

dotman

A tool to bootstrap your system configuration files
Go
5
star
10

go-fswatcher

fswatcher is a cross platform filesystem watcher which allows you to execute a custom command every time a file or folder changes
Go
4
star
11

Hostfile-Manager

The Hostfile Manager is a free and simple .NET 4.0 based WPF application that allows you to view, edit and manage your local machines' hosts file.
C#
4
star
12

soapui-project-normalization

A cross-platform SoapUI project file normalization utility written in Go
Go
3
star
13

togglapi

A go wrapper for the Toggl API
Go
3
star
14

SignalKo-SystemMonitor

A web-based system monitor that collects server performance data, distributes it via SignalR and displays the data using KnockoutJS.
JavaScript
3
star
15

reverse-proxy

A Nginx based reverse proxy or one or more sites on one ip address as a docker image
Shell
3
star
16

docker-prometheus-monitoring

Monitoring for Docker hosts using Prometheus
2
star
17

tekpub-catcher

A command-line tool that downloads your Tekpub videos and gives them sensible names
Go
2
star
18

docker-registry-with-authentication

A private docker registry that used a NGINX reverse proxy to add basic authentication
Shell
2
star
19

postdeploy

postdeploy is a cross-platform deployment-hook listener written in go
Go
2
star
20

alexa-ops

The 24/7 endpoint for your "Amazon Echo" based DevOPS skills
1
star
21

dee-cli

Cross-platform command-line utility for DNS updates via DNSimple
Go
1
star
22

dee-ns

A go-library for reading and updating DNS records
Go
1
star
23

NuDeploy

Tool for Nuget-based Deployments
C#
1
star
24

pandoc

A docker image for running the latest version of pandoc built from source
1
star