All Projects → clvrobj → chili

clvrobj / chili

Licence: MIT license
Dropbox powered static site generator

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to chili

bowman
A simple static site generator with an integrated toolchain for efficient development and delivery.
Stars: ✭ 17 (-37.04%)
Mutual labels:  static-site-generator
angular-prerender
A command line tool to prerender Angular Apps.
Stars: ✭ 123 (+355.56%)
Mutual labels:  static-site-generator
hagel
Single Makefile static page generator. Mostly meant as a joke.
Stars: ✭ 24 (-11.11%)
Mutual labels:  static-site-generator
API-Portal
API Portal lets you create and publish a customized site with API documentation, for free and without writing any code.
Stars: ✭ 162 (+500%)
Mutual labels:  static-site-generator
go-slate
A CLI tool to generate API documentation using Slate layout by Robert Lord
Stars: ✭ 19 (-29.63%)
Mutual labels:  static-site-generator
gridsome-source-sanity
Sanity source plugin for Gridsome
Stars: ✭ 18 (-33.33%)
Mutual labels:  static-site-generator
laststaticsitegenerator
After learning how to use task runners like grunt, gulp, webpack and many static site generators i was in need for one workflow that makes setting up any tools unnecessary. Here it is!
Stars: ✭ 14 (-48.15%)
Mutual labels:  static-site-generator
neofeed-theme
A personal feed for Neocities, GitHub Pages, or anywhere else, built with Hugo. #IndieWeb friendly and all yours. It's better than Twitter.
Stars: ✭ 62 (+129.63%)
Mutual labels:  static-site-generator
11straps
11straps is a static website boilerplate. It combines Eleventy with Bootstrap 5. 🎉
Stars: ✭ 85 (+214.81%)
Mutual labels:  static-site-generator
eleventy-plugin-cloudinary
An Eleventy shortcode that allows you to add an image from your cloudinary account
Stars: ✭ 28 (+3.7%)
Mutual labels:  static-site-generator
acblog
An open source extensible static & dynamic blog system. (an alternative tool with same features at StardustDL/paperead)
Stars: ✭ 60 (+122.22%)
Mutual labels:  static-site-generator
Kotsu
✨ Clean, opinionated foundation for new projects — to boldly go where no man has gone before
Stars: ✭ 48 (+77.78%)
Mutual labels:  static-site-generator
twenty-twenty-hugo
Twenty Twenty Hugo is forked from WordPress Twenty Twenty theme. It's fully functional like the WordPress theme.
Stars: ✭ 48 (+77.78%)
Mutual labels:  static-site-generator
potato-dark
Dark and elegant blog theme for goHugo static site generator.
Stars: ✭ 21 (-22.22%)
Mutual labels:  static-site-generator
hyperdraft
Turn your notes into a website.
Stars: ✭ 59 (+118.52%)
Mutual labels:  static-site-generator
flourish
Yet another static site generator
Stars: ✭ 12 (-55.56%)
Mutual labels:  static-site-generator
static-lite
A minimalist configuration for generating static sites, powered entirely by NPM scripts.
Stars: ✭ 28 (+3.7%)
Mutual labels:  static-site-generator
contentful-hugo
A CLI tool that pulls data from Contentful and turns it into markdown files for Hugo and other static site generators. It also includes an express server that can be used for local development and content previews
Stars: ✭ 31 (+14.81%)
Mutual labels:  static-site-generator
liva-hugo
Liva is a personal blog template powered by Hugo.
Stars: ✭ 192 (+611.11%)
Mutual labels:  static-site-generator
md-site-reader
a very lightweight markdown docs site reader
Stars: ✭ 16 (-40.74%)
Mutual labels:  static-site-generator

Chili

Dropbox powered static site generator.

Install

$ git clone git://github.com/clvrobj/chili.git
$ cd chili
$ pip install -r requirements.txt

Dropbox configuration

  • Create an Dropbox app, App type → Dropbox API app, App name → YourAppName, Access level → App folder , Dropbox will generate App key and App secret for you, a folder named YourAppName should be created in your Dropbox folder automatically.
  • In your Dropbox folder ~user/Dropbox/Apps/YourAppName, write article with Markdown and save with .mdor .markdown suffix.

Configuration

cp config_py.tmpl config.py

You can configure Chili, by modifying the /config.py file.

  • DROPBOX_APP_KEY: App key of your app in Dropbox
  • DROPBOX_APP_SECRET: App secret of your app in Dropbox
  • DROPBOX_ACCOUNT_EMAIL: Dropbox account email address (lock to this account , other account will not be sync)
  • APP_SECRET_KEY: for using flask session, this value can be get by
>>> import os
>>> os.urandom(24)
  • DOMAIN: your domain name, like chilipy.com
  • BLOG_NAME: shown at the top of site.
  • DISQUS_SHORTNAME: use Disqus for comments.
  • TIMEZONE: set your timezone.
  • NAV_ITEMS: items shown in nav menu.
  • TRACKING_CODE: you can insert script snippet to the bottom of the page.

Deployment

Nginx configuration

You can configure the nginx like this:

server {
    listen 80;
    server_name you-domain;
    location / {
      fastcgi_pass  127.0.0.1:7777;
      root /var/path-to-chili/;
      fastcgi_param REQUEST_URI       $request_uri;
      fastcgi_param REQUEST_METHOD    $request_method;
      fastcgi_param QUERY_STRING      $query_string;
      fastcgi_param CONTENT_TYPE      $content_type;
      fastcgi_param CONTENT_LENGTH    $content_length;
      fastcgi_param SERVER_ADDR       $server_addr;
      fastcgi_param SERVER_PORT       $server_port;
      fastcgi_param SERVER_NAME       $server_name;
      fastcgi_param SERVER_PROTOCOL   $server_protocol;
      fastcgi_param PATH_INFO         $fastcgi_script_name;
      fastcgi_param REMOTE_ADDR       $remote_addr;
      fastcgi_param REMOTE_PORT       $remote_port;
      fastcgi_pass_header Authorization;
      fastcgi_intercept_errors off;
    }
}

Start Chili on server

  • sh restartapp.sh

Writing Posts

Write article with Markdown and save with .mdor .markdown suffix in your Dropbox folder ~user/Dropbox/Apps/YourAppName`.

How to sync new post?

  • Just request http://your-domaindotcom/sync in browser, this will sync Dropbox app folder and download all posts, all your posts will be generated, you will be asked for the permission for accessing Dropbox Chili folder for the first time.
  • If request http://your-domaindotcom/regen in browser, this will generate all your posts without sync, this is useful when you just make some customize on the template.

All these links are list onhttp://your-domaindotcom/tools.

How to embed image?

Create directory image in ~user/Dropbox/Apps/YourAppName, put image file into it, then write like this in the post:

![image title](/img/filename.jpg)

About Markdown meta data

You can control the post by using the meta data:

  • Title: title of the post
  • Date: the create time of the post
  • Public: public switch
  • Comment: Chili using Disqus to support comments, comments will not shown if set to off.
  • Keywords: the tags of the post

Example:

Title: This is title
Date:  2012-09-24 09:26:00
Public: Yes
Comment: Yes
Keywords: markdown
          dropbox
          blog


[Post content]

Example

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].