项目作者: mk-fg

项目描述 :
Tool to generate a dynamic version of a firefox "homepage" with tag cloud of bookmarks and a backlog
高级语言: Python
项目地址: git://github.com/mk-fg/firefox-homepage-generator.git
创建时间: 2014-05-07T21:15:19Z
项目社区:https://github.com/mk-fg/firefox-homepage-generator

开源协议:Do What The F*ck You Want To Public License

下载


firefox-homepage-generator

Tool to generate a dynamic version of a firefox “homepage” with tag cloud of
bookmarks and a random selection of backlog (“read later”) links.

Templates and static assets in the “parts” directory will be used to construct
result in one of a few ways:

  • Build one “fat” html file with all the assets embedded in it.

  • Build html file and copy it along with separate static “assets” files into a
    target directory.

  • Produce a single “lean” html file with asset links to various external CDN
    sources (kinda bad idea, TODO).

Difference between these is caching, but likely irrelevant when loaded from a
local disk anyway.

Usage

Doesn’t need to be “installed” - just put the contents of the repo/package
anywhere, run the script to generate the page (and/or copy/link assets) in the
output path (configurable via —output-path, see also —output-format).

Examples:

  1. % ./ffhomegen.py
  2. % ./ffhomegen.py -o ~/media/ffhome.html
  3. % ./ffhomegen.py -f dir -o ~/media/ffhome
  4. % ./ffhomegen.py -b ~/media/links.yaml
  5. % firefox $(./ffhomegen.py -v)
  6. % ./ffhomegen.py --help

Requirements

  • Python 2.7 (not 3.X)
  • (optional) yaml for parsing of “backlog” file

See http://pip2014.com/ for help with python modules’ packaging.

To rebuild .coffee, .scss and *.jade files (not needed to just run the thing),
any suitable compiler for these formats can be used.
I use node-based coffee-script,
libsass,
pyjade + jinja2.
Just typing “make” should do it with all these installed.