sjl / d Goto Github PK
View Code? Open in Web Editor NEWMarkdown files to documentation. Nothing else.
Home Page: http://sjl.bitbucket.org/d/
License: MIT License
Markdown files to documentation. Nothing else.
Home Page: http://sjl.bitbucket.org/d/
License: MIT License
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'
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
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
package.json
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.