hyde / docs

Hyde documentation
http://hyde.github.io
31 stars 13 forks source link

less executable path not configured properly #8

Closed kartoch closed 12 years ago

kartoch commented 13 years ago

I'm trying to generate the documentation but I've the following error:

kartoch@kartoch-ThinkPad-T500:~/opt/python/hyde-docs$ ~/opt/python/hyde/bin/hyde gen
 17:00:58 hyde.engine Reading site configuration from [/home/kartoch/opt/python/hyde-docs/site.yaml]
 17:00:58 hyde.engine Reading site contents
 17:00:58 hyde.engine Generating site at [/home/kartoch/opt/python/hyde-docs]
 17:00:58 hyde.engine Configuring the template environment
 17:00:58 hyde.engine Generating site to [/home/kartoch/opt/python/hyde-docs/deploy]
Traceback (most recent call last):
  File "/home/kartoch/opt/python/hyde/bin/hyde", line 9, in <module>
    load_entry_point('hyde==0.8.3', 'console_scripts', 'hyde')()
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/main.py", line 10, in main
    Engine().run()
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/engine.py", line 38, in run
    super(Engine, self).run(args)
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/commando.py", line 198, in run
    args.run(self, args)
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/engine.py", line 115, in gen
    gen.generate_all(incremental=incremental)
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/generator.py", line 204, in generate_all
    self.__generate_node__(self.site.content, incremental)
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/generator.py", line 302, in __generate_node__
    self.__generate_resource__(resource, incremental)
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/generator.py", line 332, in __generate_resource__
    resource, text) or text
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/plugin.py", line 44, in __call_plugins__
    res = function(*args)
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/ext/plugins/less.py", line 84, in text_resource_complete
    less = self.app
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/plugin.py", line 95, in __getattribute__
    return super(Plugin, self).__getattribute__(name)
  File "/home/kartoch/opt/python/hyde/local/lib/python2.7/site-packages/hyde/plugin.py", line 262, in app
    self.executable_not_found_message)
jinja2.exceptions.TemplateError: less executable path not configured properly. This plugin expects `less.app` to point to the `less` executable.

I'm on Ubuntu 11.10 and less is available in my system.

davefowler commented 12 years ago

Same issue. Any help on this would be great. Has this only been run on a mac? Where is the dependency on less.app and what is it used for?

Would be great to be able to help out with these docs.

davefowler commented 12 years ago

Note, you can remove the less plugin from the site.yaml file to get the files to serve, though it will be missing the needed css.

navilan commented 12 years ago

Somehow missed this issue before. Docs use the less css compiler: https://github.com/cloudhead/less.js/


If you have nodejs and npm, you can install it with npm install less