Code Monkey home page Code Monkey logo

d's Introduction

d's People

Contributors

mattijs avatar sjl 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  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

d's Issues

Not working for a file

I ran d in a directory with a .pdf and a .md. It failed with the following error:

Traceback (most recent call last):
  File "/Users/user/.pyenv/versions/3.3.4/bin/d", line 22, in <module>
    render_files(options.source, options.target)
  File "/Users/user/.pyenv/versions/3.3.4/lib/python3.3/site-packages/d/base.py", line 243, in render_files
    j(source, filename), _get_target(filename, destination), 'content')
  File "/Users/user/.pyenv/versions/3.3.4/lib/python3.3/site-packages/d/base.py", line 187, in _render
    data = _read(f)
  File "/Users/user/.pyenv/versions/3.3.4/lib/python3.3/site-packages/d/base.py", line 57, in _read
    return f.read().decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

Page without title causes a stack trace

Say you make a file called foo.markdown and don't put a level one heading, the program crashes with:

  File "/Network/Cluster/home/kamil/.virtualenvs/docs/bin/d", line 13, in <module>
    main()
  File "/Network/Cluster/home/kamil/.virtualenvs/docs/lib/python2.6/site-packages/d/base.py", line 215, in main
    render_files()
  File "/Network/Cluster/home/kamil/.virtualenvs/docs/lib/python2.6/site-packages/d/base.py", line 203, in render_files
    chapter_title = render_chapter(title, footer, filename)
  File "/Network/Cluster/home/kamil/.virtualenvs/docs/lib/python2.6/site-packages/d/base.py", line 174, in render_chapter
    return _render(title, footer, path, target, 'content')
  File "/Network/Cluster/home/kamil/.virtualenvs/docs/lib/python2.6/site-packages/d/base.py", line 161, in _render
    content = _linkify_title(_fix_md_toc(content))
  File "/Network/Cluster/home/kamil/.virtualenvs/docs/lib/python2.6/site-packages/d/base.py", line 127, in _linkify_title
    e('.markdown h1').html('<a href="">' + title + '</a>')
TypeError: cannot concatenate 'str' and 'NoneType' objects

pip/easy_install fails

adam@titus /tmp/test
$ easy_install d                                                                          
Searching for d
Reading http://pypi.python.org/simple/d/
Couldn't find index page for 'd' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for d
error: Could not find suitable distribution for Requirement.parse('d')
$ pip install d                                                                               
Downloading/unpacking d
  Could not find any downloads that satisfy the requirement d
No distributions at all found for d
Storing complete log in /Users/adam/.pip/pip.log

U

package.json

chapter/index.html is unfriendly for file browsing

When served, mychapter/index.html does The Right Thing. <- Good

When browsing a build tree, [TOC] "mychapter" just shows the directly (i.e., doesn't load the index.html)

Is this a stub for future "chapter" features? I know the current setup gets extensionless urls, but "mychapter.html" isn't too gross either!

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.