brog

command module
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2013 License: BSD-3-Clause, MIT Imports: 5 Imported by: 0

README

brog

Static blog app.

Usage

Install brog.

go get github.com/aybabtme/brog

Use brog.

cd your/blog/path
# Creates brog files, required to run the brog
brog init
# Creates a new brog post named my_post.md
brog create my post
# Starts serving the brog at current location.
brog server

Config

Look at the brog_config.json file, it should be pretty clear.

Something you should know

By default, brog will regenerate any harm caused to its vital structure. That is, when brog server runs, it watches its templates and reload them at every change.

  • If a vital template has been deleted or renamed, brog will regenerate the template at its original location.
  • If a vital template has been modified and brog find that it is corrupted (fails to parse), brog will repeal the threat and rewrite the file with its default version.

You can change this setting in brog_config.json.

Development

You need to have GOPATH properly setup. Additionally, you need to have $GOPATH/bin in your PATH, because some tools in the build scripts really on the use of go tools.

To install brog on your system:

make install

To build brog for the first time (not required if you make install):

make configure
make

To do a normal build:

make

To remove artifacts resulting in a build/run at the root folder of brog:

make clean

License

All of brog proper is MIT licensed. See LICENSE.md.

Some files bundled with brog have their own license. Their licenses can also be found in LICENSE.md. If you do not agree to their terms, feel free to remove the related parts.

highlight.js is copyright (c) 2006, Ivan Sagalaev

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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