Skip to content

Shovel scripts that make handling tasks in pelican very easy.

Notifications You must be signed in to change notification settings

dandesousa/pelican-shovel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS PROJECT IS DEPRECATED AND NO LONGER BEING UPDATED -- MOVED TO A NEW PROJECT CALLED 'LAPIS'

pelican-shovel

pelican-shovel (PS) helps you organize your pelican site, by creating posts and pages and allowing them to be easily found and managed.

This project is in the initial stage and under development.

Requirements

pelican-shovel requires shovel, a rake-like tool for python.

pip install shovel

It works best if you install the latest from source, though. Clone it and run setup.py install.

you should also install jinja2 templates, which is also required for page / post generation.

pip install jinja2

Usage

PS makes it easy to create new posts and pages. You can get started by adding it as a submodule or copying to your pelican site:

git submodule add git@github.com:dandesousa/pelican-shovel.git shovel

You then have access to all the PS tasks:

Help

Following the shovel syntax you can get help information by typing:

# Prints short description of each command in PS
shovel help

Get detailed information about a command by drilling in:

# Prints the help docs for the command
shovel help create

Creation

shovel create post --title "It's a wonderful day in the neighborhood!" 
# page created, editor opens

New posts are written and we even have an option to open your editor (we use your git editor) as you create pages. If you don't want your editor to open by default:

shovel create post --title "My Post" --quiet

You can do the same for pages:

shovel create page --title "My Page" --quiet

Listing

You can also see posts you already created:

# lists all the posts you made -- maybe not so useful
shovel list post

You can filter them with the search parameter

# case insensitive regex search
shovel list post 2013

searches for all posts with 2013 in the file path.

Editting

Edits work much like lists.

# edits all posts with 'programming' in the path, opens them in your editor
shovel edit post programming

Remove

Edits work much like lists.

# removes all posts with 'programming' in the path, prompts before removal.
shovel remove post programming

# you can also force remove (use extreme caution when dealing with non-checked in files)
shovel remove post programming --force

Future

More tasks will be coming in the future:

  • Querying metadata for your posts
  • Support for other markups besides markdown
  • Changing metadata
  • Better Docs

Contributing

Feel free to fork and contribute if you like the project. Suggestions are always appreciated.

About

Shovel scripts that make handling tasks in pelican very easy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages