Code Monkey home page Code Monkey logo

bucket3's Introduction

Bucket3

bucket3 is a simple, blog aware, static site generator written in python. It reads your content and spits out a complete, static website suitable for serving with Apache or your favorite web server.

bucket3 would like to become a virtual “information bucket” where you throw pieces of information (texts, images, audio, etc), and presents them in a nice blog-like format.

Quick intro

  1. pip install bucket3
  2. mkdir myblog
  3. cd myblog; bucket3 init
  4. Edit .bucket3/conf.yaml
  5. cd posts; bucket3 new "This is my first bucket3 post"
  6. Edit the file generated, and add some text.
  7. bucket3 update
  8. You should now have your whole blog under "html" (as defined in your conf file).
  9. Upload the files under html/ to your server.

Examples

Check out the source of http://www.bucket3.com/ at https://github.com/vrypan/www.bucket3.com

http://blog.vrypan.net/ is also generated using bucket3.

License

bucket3 is distributed under the MIT LICENSE.

Copyright

Panayotis Vryonis, http://www.vrypan.net/

See also

If you are not familiar with the idea of a static HTML blog, visit https://github.com/mojombo/jekyll they've done a much better way at explaining it! (the intro is actually a copy from jekyll's README file)

bucket3's People

Contributors

comzeradd avatar tomtoump avatar vrypan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bucket3's Issues

relative (not absolute) paths in _data files DB

Much of the data saved under .bucket3/_data/* includes the absolute paths of the post files. These paths should be relative to root_dir so that the whole directory tree can be moved around.

RSS date format

RSS and < lastBuildDate> must be formated according to RFC-822.

Unicode slugs poorly handled

$ bucket3 new frække-frølår
Traceback (most recent call last):
  File "/usr/local/bin/bucket3", line 38, in <module>
    b3tools.post_new(slug=args['<slug>'], ext=args['<ext>'], cpath=args['--path'])
  File "/usr/local/lib/python2.7/dist-packages/bucket3/b3tools.py", line 72, in post_new
    f.write(s.encode('utf8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 106: ordinal not in range(128)

The variable s is a str() object, so is it really necessary to attempt to cast it into UTF-8?
It would make sense if the s variable was a unicode object, as in

s = unicode(pkgutil.get_data('bucket3', 'conf/post.example.md'), 'utf-8')

but it isn't.

bucket3/0.9.7 on python/2.7.3 on linux/3.5.0.

tag/index.html not created

The page …/html/tag/index.html is not created during update or render, meaning that the tag list will show up as a directory listing in the browser.

This is bucket3/0.9.7 on python/2.7 og Linux.

Enhancement request: UTC

The Internet is international, yet blog entries are posted without a timezone. It would be neat to be able to explicitly choose a certain timezone — or at least to be able to have all datetimes shown in UTC.

Missing files in newly created site

The following non-existant files are referenced in a newly created site:

  • …/_/js/html5shiv.js
  • …/ico/apple-touch-icon-144-precomposed.png
  • …/ico/apple-touch-icon-114-precomposed.png
  • …/ico/apple-touch-icon-72-precomposed.png
  • …/ico/apple-touch-icon-57-precomposed.png
  • …/_/img/favicon.ico
  • …/_/img/apple-touch-icon.png
  • …/_/js/jquery.js
  • …/_/js/bootstrap-transition.js
  • …/_/js/bootstrap-alert.js
  • …/_/js/bootstrap-modal.js
  • …/_/js/bootstrap-dropdown.js
  • …/_/js/bootstrap-scrollspy.js
  • …/_/js/bootstrap-tab.js
  • …/_/js/bootstrap-tooltip.js
  • …/_/js/bootstrap-popover.js
  • …/_/js/bootstrap-button.js
  • …/_/js/bootstrap-collapse.js
  • …/_/js/bootstrap-carousel.js
  • …/_/js/bootstrap-typeahead.js

bucket/0.9.7 on python/2.7.3 on linux/3.5.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.