Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dunglas/calavera
A (static) Single Page Application generator using Markdown files
https://github.com/dunglas/calavera
Last synced: 21 days ago
JSON representation
A (static) Single Page Application generator using Markdown files
- Host: GitHub
- URL: https://github.com/dunglas/calavera
- Owner: dunglas
- License: mit
- Created: 2015-07-06T22:28:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T16:20:36.000Z (over 7 years ago)
- Last Synced: 2024-10-04T15:25:54.849Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 48.8 KB
- Stars: 16
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calavera, a static Single Page Application generator
Calavera helps to create a full-Javascript webapp from [Markdown](http://daringfireball.net/projects/markdown/) files.
Basically, it converts Markdown files stored in a [Git](https://git-scm.com/) repository to [JSON-LD](http://json-ld.org/) files
using the [Schema.org](https://schema.org/) vocabulary.
Those files include metadata extracted from the Git repository (author name, last modification date...).JSON-LD files are easily consumed by JavaScript libraries and framework such as [React](https://facebook.github.io/react/),
[Angular](https://angular.io/) or [jQuery](https://jquery.com/).Websites generated with Calavera can be freely and easily hosted on [GitHub Pages](https://pages.github.com/).
[![Go Report Card](https://goreportcard.com/badge/github.com/dunglas/calavera)](https://goreportcard.com/report/github.com/dunglas/calavera)
[![Travis](https://img.shields.io/travis/dunglas/calavera.svg?maxAge=2592000)](https://travis-ci.org/dunglas/calavera)
[![Coveralls](https://img.shields.io/coveralls/dunglas/calavera.svg?maxAge=2592000)](https://coveralls.io/github/dunglas/calavera)
[![Docker Automated buil](https://img.shields.io/docker/automated/dunglas/calavera.svg?maxAge=2592000)](https://hub.docker.com/r/dunglas/calavera/)## Install
The easiest way to use Calavera is through [Docker](https://www.docker.com). Just go to the usage section below.
Alternatively, you can compile Calavera from sources.
The [Go](https://golang.org/) programming language is the only required dependency to compile Calavera.
If you don't already have a [Go workspace](https://golang.org/doc/code.html#Workspaces), create it:
$ mkdir -p ~/workspace/go
$ export GOPATH=~/workspace/goThen, download [govendor](https://github.com/kardianos/govendor) to manage the dependencies of the project:
$ go get -u github.com/kardianos/govendor
Create the appropriate directory structure and download the source code:
$ mkdir -p ~/workspace/go/src/github.com/dunglas
$ cd ~/workspace/go/src/github.com/dunglas
$ git clone [email protected]:dunglas/calavera.gitGo to the source code directory, download external libraries and compile the program:
$ cd calavera
$ ~/workspace/go/bin/govendor sync # Download dependencies
$ ~/workspace/go/bin/govendor install # Install the app## Usage
Using Docker:
$ docker run -v /my/src/directory:/in -v /my/output/directory:/out dunglas/calavera /in /out
If you installed it from source:
$ ~/workspace/go/bin/calavera input_directory output_directory
Markdown files from the `input_directory` will be converted to JSON-LD files in `output_directory`.
### Options
* **-prettify**: Prettify generated JSON-LD files
## License
Calavera is distributed under [the MIT license](LICENSE).
## Credits
Written in Go (golang) by [Kévin Dunglas](https://dunglas.fr) and sponsored by [Les-Tilleuls.coop](https://les-tilleuls.coop).