Go to file
2017-03-23 20:05:03 +09:00
benches Add prev/next hack 2017-03-23 13:10:00 +09:00
ci Try trust for creating binaries on travis 2017-03-23 19:53:26 +09:00
examples Add prev/next hack 2017-03-23 13:10:00 +09:00
src Move highlight decision into the markdown_to_html fn 2017-03-23 14:11:24 +09:00
sublime_themes Pick highlighting theme from config 2017-03-20 17:30:50 +09:00
test_site Add prev/next hack 2017-03-23 13:10:00 +09:00
tests Remove extra assert 2017-03-23 13:42:14 +09:00
.editorconfig Create new project 2016-12-06 14:51:33 +09:00
.gitignore Sections 2017-03-19 19:20:24 +09:00
.travis.yml Add badges and remove some comments in travis.yml 2017-03-23 20:05:03 +09:00
appveyor.yml Add appveyor 2017-03-23 19:37:41 +09:00
Cargo.lock Add prev/next hack 2017-03-23 13:10:00 +09:00
Cargo.toml Update clap 2017-03-20 15:32:43 +09:00
README.md Add badges and remove some comments in travis.yml 2017-03-23 20:05:03 +09:00

Gutenberg

Build Status Build status

Design

Can be used for blogs or general static pages

Commands:

  • new: start a new project -> creates the structure + default config.toml
  • build: reads all the .md files and build the site with template
  • serve: starts a server and watches/reload the site on change

All pages go into the content folder. Subfolder represents a list of content, ie

├── content
│   ├── posts
│   │   └── intro.md
│   └── some.md

some.md will be accessible at mywebsite.com/some and there will be other pages:

  • mywebsite.com/posts that will list all the pages contained in the posts folder
  • mywebsite.com/posts/intro

Building the site

Get all .md files in content, remove the content/ prefix to their path Split the file between front matter and content Parse the front matter markdown -> HTML for the content

Themes

Gallery at https://tmtheme-editor.herokuapp.com/#!/editor/theme/Agola%20Dark Make .themedump file: cargo run --example generate_themes themepack sublime_themes sublime_themes/all.themedump