Go to file
2017-03-10 17:40:42 +09:00
src Detect whether the page needs highlighting 2017-03-10 17:40:42 +09:00
sublime_themes Make gutenberg a lib as well 2017-03-08 09:13:50 +09:00
.editorconfig Create new project 2016-12-06 14:51:33 +09:00
.gitignore Started working on gutenberg again 2017-02-24 11:21:58 +09:00
.travis.yml More precise time and show what changed 2017-03-08 14:00:54 +09:00
Cargo.lock Detect whether the page needs highlighting 2017-03-10 17:40:42 +09:00
Cargo.toml Copy static directory and live reload changes to it 2017-03-09 16:34:12 +09:00
README.md Make gutenberg a lib as well 2017-03-08 09:13:50 +09:00

Gutenberg

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

TODO:

  • syntax highlighting
  • pass a --config arg to the CLI to change from config.toml
  • have verbosity levels with a verbosity config variable with a default