Coder Social home page Coder Social logo

dandesousa / lapis Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 108 KB

A utility / tool for making common pelican command line tasks easier.

Home Page: http://lapis.readthedocs.org/en/latest/

License: Creative Commons Zero v1.0 Universal

Python 98.97% HTML 0.91% Shell 0.12%

lapis's People

Contributors

dandesousa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

movermeyer

lapis's Issues

Better way to test the command infrastructure

Need to have a way to print or output on the command line that is more easily testable (by either passing equivalent objects and comparing printer output or some other way to mock out that portion), as the current command infrastructure is not scalable testing wise.

unique slug names across all of lapis

currently, pelican will fail if you accidently give something a non-unique slug and then try to generate.

we should be good about giving each piece of content a unique slug when creating it. slugify should support something that would tell it whether its slug is unique aside from the current directory.

the current directory doesn't help us because the user could specify a custom article path.

when distributing as a wheel, calls to session.close() throws exceptions

File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 683, in _checkin
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 574, in _finalize_fairy
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 1303, in error
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/site-packages/pelican/log.py", line 141, in _log
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 1409, in _log
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 1419, in handle
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 1481, in callHandlers
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 853, in handle
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 984, in emit
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/logging/init.py", line 906, in handleError
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 169, in print_exception
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 153, in _format_exception_iter
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 18, in _format_list_iter
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/traceback.py", line 65, in _extract_tb_or_stack_iter
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/linecache.py", line 15, in getline
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/linecache.py", line 41, in getlines
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/linecache.py", line 126, in updatecache
File "/Users/daniel/Projects/dandesousa.github.io/env/lib/python3.4/tokenize.py", line 437, in open
AttributeError: 'module' object has no attribute 'open'

changes to content are not re-synced when the user saves

if you edit a file with find and save it, syncing of the file does not succeed.

for example if you edit the tags or categories, those things are not changed. It appears as though the diff between the file and the db is not updated.

move to a wheel based distribution

the latest and greatest way to install python modules is to use wheels, need to do some research and add support to distribute lapis as a wheel.

lapis sync fails

$ lapis sync
Traceback (most recent call last):
File "/usr/local/bin/lapis", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/lapis/command.py", line 373, in main
args.func(**kwargs)
File "/usr/local/lib/python3.5/dist-packages/lapis/command.py", line 188, in run
updated = config.store.sync(config.settings)
File "/usr/local/lib/python3.5/dist-packages/lapis/store.py", line 168, in sync
content_updated = self.__sync_content(content)
File "/usr/local/lib/python3.5/dist-packages/lapis/store.py", line 91, in __sync_content
date_created = content.date
AttributeError: 'Page' object has no attribute 'date'

Add support for .lapis file

Should support the following:

  • Enabling and disabling color support
  • Override the editor preferences
  • Set color attributes for various
  • Set preferred markup language

push the release to pypi!

this should be the last task to be completed, which will push the release for availability to pypi.

modifying templates

any issues with modifying the templates to be more customized to my article style?

Thank you,
Larry

Handle syncing deleted files

If a file is passed into sync_file and doesnt exist it should be deleted.

if you we sync and don't find a certain content we should remove those files from lapis.

specifying folder when creating article

I sort my posts by category folder. I'd love to be able to specify a category and use that variable as the initial folder instead of the default "posts". Is that possible?

Thanks

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.