Git Product home page Git Product logo

crotal's Introduction

crotal's People

Contributors

bitdeli-chef avatar craigkelly avatar dinever avatar richard-mihalovic 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  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  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  avatar  avatar  avatar

crotal's Issues

cannot use any crotal commands other than init

crotal==0.5.5

(env)pjain:/source/pj$ crotal init pj
(env)pjain:
/source/pj$ cd pj
(env)pjain:~/source/pj$ crotal new_post 'hello-world'
Usage:
to init a new site: crotal init you_site_name
to generate the site: crotal generate
to create a new post: crotal new_post "your title here"
to create a new page: crotal new_page
to start the server: crotal server
to deploy the site: crotal deploy

Pager error

There is some error in generated posts pager.

screenshot_ynlyzs

pygments module missing

crotal init my_site && cd my_site
Traceback (most recent call last):
File "/usr/local/bin/crotal", line 9, in
load_entry_point('crotal==0.3.0', 'console_scripts', 'crotal')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 343, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2309, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2015, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python2.7/dist-packages/crotal/main.py", line 5, in
from crotal.views import Views
File "/usr/local/lib/python2.7/dist-packages/crotal/views.py", line 9, in
from crotal.plugins.markdown.jinja_markdown import MarkdownExtension
File "/usr/local/lib/python2.7/dist-packages/crotal/plugins/markdown/jinja_markdown.py", line 4, in
from pygments import highlight
ImportError: No module named pygments

ImportError: cannot import name Posts

crotal new_page=> OK

crotal new_post 'hello-world'
Traceback (most recent call last):
File "/usr/local/bin/crotal", line 9, in
load_entry_point('crotal==0.3.0', 'console_scripts', 'crotal')()
File "/usr/local/lib/python2.7/dist-packages/crotal/main.py", line 87, in main
from crotal import create_post
File "/usr/local/lib/python2.7/dist-packages/crotal/create_post.py", line 5, in
from crotal.models.posts import Posts
ImportError: cannot import name Posts

root url in _config.yml doesn't appear to be used anywhere

The root value in my _config.pym is as follows

 root: /dev/phil/wiki

but When I run

crotal generate

the links in the resulting HTML are still relative to / not /dev/phil/wiki.

Is there a different way to generate the site for use in production which gives the links the correct base_url? Based on the code I don't think that

crotal deploy

is going to work.

cannot use crotal

crotal installed with sudo pip install crotal without errors, but by running:
└──[$] → crotal init my_web
Traceback (most recent call last):
File "/usr/sbin/crotal", line 9, in
load_entry_point('crotal==0.7.0', 'console_scripts', 'crotal')()
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 339, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2470, in load_entry_point
return ep.load()
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2184, in load
['name'])
File "/usr/lib/python3.4/site-packages/crotal/main.py", line 77
print 'Only support rsync for now.'
^
SyntaxError: Missing parentheses in call to 'print'

Any idea?

Crotal broken after update from 0.6.0 to 0.9.7

Updated crotal, now it doesn't work anymore.
Why:
There are not "tags: " entries in my post source files. That wasn't a problem in version 0.6.
But with the most recent version, site generation doesn't work any more.
If I run the generate command, the I get an attribute error:

Traceback (most recent call last):
  File "/home/user/venvs/blog/bin/crotal", line 9, in <module>
    load_entry_point('crotal==0.9.7', 'console_scripts', 'crotal')()
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/main.py", line 66, in main
    func(**vars(args))
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/command.py", line 74, in generate
    site = Site(path=utils.locate_base_dir(), full=full, output=output)
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/site.py", line 33, in __init__
    model.load(self.database, self.config, self.update_data)
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/models/base.py", line 110, in load
    cls.load_main_items(config)
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/models/base.py", line 130, in load_main_items
    obj = cls.load_single_file(file_path, config)
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/models/base.py", line 152, in load_single_file
    item = cls.from_file(file_path, config)
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/models/base.py", line 164, in from_file
    return cls.parse_content(file_path, content, config)
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/models/base.py", line 186, in parse_content
    return cls(**attributes)
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/models/base.py", line 86, in __init__
    self.create()
  File "/home/user/venvs/blog/local/lib/python2.7/site-packages/crotal/models/post.py", line 106, in create
    self.tags = [Tag.add(item, self) for item in self.raw_tags]
AttributeError: 'Post' object has no attribute 'raw_tags'

No syntax highligting in generated html page

There is no syntax highlighting in source code block for default theme. I think there is missing some css style for code highlighting, because the generated html is formatted with highlighting css classes.

INPUT:
screen shot 2014-01-31 at 11 03 45 am

HTML:
screen shot 2014-01-31 at 11 08 13 am

IN BROWSER:
sh

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.