markdown-gallery
  • markdown gallery
    • About
    • Usage
  • Documentation for the Code
 
markdown-gallery
  • Docs »
  • markdown gallery
  • Edit on GitHub

markdown gallery¶

Build status

Table of Contents

  • About
  • Usage

About¶

markdown gallery watches a directory for new images, generates thumbnails and outputs a markdown file with your images.

Usage¶

You might want to change:

  • in gallery_to_markdown.py

    ABSOLUTE_URL: Absolute url of your site. http://mysite.com/gallery.

  • in gallery.py

    THUMBNAIL_PREFIX: Prefix for thumbnail. Defaults to t_ THUMBNAILS_DIR: Name of thumbnail directory inside a gallery, default t. THUMBNAIL_SIZE: Defaults to 128x128.

  • in gallery_watcher.py

    THUMBNAIL_PREFIX, THUMBNAILS_DIR, THUMBNAIL_SIZE, OUTPUT_FILE: These constants are ignored by gallery_watcher. This is redundant but keep it same as in gallery.py. WATCH_DIRECTORY: root directory of your galleries. That would be /home/galleries in below file tree.

|-- home
|   |-- galleries
|       |-- gallery_1
|       |-- gallery_2
|       `-- gallery_3
  • run python gallery_watcher.py
Next Previous

Built with Sphinx using a theme provided by Read the Docs.