Skip to main content

Blog generator for hackers.

Project description

## Micropress

Micropress – Python blog generator for hackers.

  • open source

  • jinja templates

  • configurable directories and configs

  • smart file tree organization

  • markdown markup

  • auto detect changes and generation

  • auto upload

  • auto filling post time

  • live preview at [http://127.0.0.1:8080](http://127.0.0.1:8080)

### Install

sudo pip install micropress micropress init — install default (~/.microrc) and default templates (~/Documents/Micropress/) directory.

### Config

vim ~/.microrc

[system] author = fluder host = fluder.co name = Geek Blog timezone_offset = 120 post_per_page = 10 exclude_category = How-to

[storage] build = ~/.build/micropress public = ~/Documents/Micropress/public templates = ~/Documents/Micropress/templates pages = ~/Documents/Micropress/sources/pages posts = ~/Documents/Micropress/sources/posts

[sync] to = remote.host.name:/path/to/www # rsync path key = ~/.ssh/id_rsa # ssh key for autosync feature

[locale] month = January, February, March, April, May, June, July, August, September, October, November, December days = Mon, Tue, Wed, Thu, Fri, Sat, Sun

### Usage

micropress add post-name then just write post, save and exit, working like a charm.

#### Linux

micropress preview — start webserver preview micropress watch — start file changes watcher

#### Manual mode

micropress generate — save public and generated content into build directory. micropress sync — upload content on production server.

### Uninstall

pip uninstall micropress rm ~/.microrc rm -r ~/Documents/Micropress launchctl unload -w co.fluder.micropress.watcher.plist launchctl unload -w co.fluder.micropress.preview.plist rm -r ~/Library/LaunchAgents/co.fluder.micropress.watcher.plist rm -r ~/Library/LaunchAgents/co.fluder.micropress.preview.plist

### Templates

Template engine is [Jinja2](http://jinja.pocoo.org/docs/), full support features.

### Headers

— title: “” categories: View name/Link name time: - # automatic change on save if autosync enabled autosync: true # automatic upload after edit —

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

micropress-0.2.6.tar.gz (162.6 kB view details)

Uploaded Source

File details

Details for the file micropress-0.2.6.tar.gz.

File metadata

  • Download URL: micropress-0.2.6.tar.gz
  • Upload date:
  • Size: 162.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for micropress-0.2.6.tar.gz
Algorithm Hash digest
SHA256 7122be0b662b68ce9d4f96e43b15d327fe8a08890068a790433e748a42c08950
MD5 9f38a5a1a15b96b35bf3fe72f854e6cd
BLAKE2b-256 7cc7a68d308456db33acb32d1da42ceda479449b80f454eb638b90b3f008aa8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page