mdgo

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

mdgo is a CLI to convert, embed, and/or serve a directory that contains markup files, as HTML files.

Usage

The following section describe how to use the CLI.

mdgo [-template <file>] [-exclude <regex>] convert <dir>

Scan the "dir" recursively to find markup files and convert them into HTML files. The template "file" is optional, default to embedded HTML template.

mdgo [-template <file>] [-exclude <regex>] [-out <file>] embed <dir>

Convert all the markup files inside directory "dir" recursively and then embed them into ".go" source file. The output file is optional, default to "mdgo_static.go" in current directory.

mdgo [-template <file>] [-exclude <regex>] [-address <ip:port>] serve <dir>

Serve all files inside directory "dir" using HTTP server, watch changes on markup files and convert them to HTML files. If the address is not set, its default to ":8080".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL