You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vincent Prouillet 004b8822f1 Try trust for creating binaries on travis 7 years ago
benches Add prev/next hack 7 years ago
ci Try trust for creating binaries on travis 7 years ago
examples Add prev/next hack 7 years ago
src Move highlight decision into the markdown_to_html fn 7 years ago
sublime_themes Pick highlighting theme from config 7 years ago
test_site Add prev/next hack 7 years ago
tests Remove extra assert 7 years ago
.editorconfig Create new project 7 years ago
.gitignore Sections 7 years ago
.travis.yml Try trust for creating binaries on travis 7 years ago
Cargo.lock Add prev/next hack 7 years ago
Cargo.toml Update clap 7 years ago
README.md Pick highlighting theme from config 7 years ago
appveyor.yml Add appveyor 7 years ago

README.md

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 Make .themedump file: cargo run --example generate_themes themepack sublime_themes sublime_themes/all.themedump