-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from pineapplemachine/develop
After an arduous and very lengthy review process I have chosen to accept your merge request thank you for all your hard work would you like a raise
- Loading branch information
Showing
21 changed files
with
1,900 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
*.DS_Store | ||
*.pyc | ||
*.xcf | ||
*test.py | ||
|
||
# Manager logs go here | ||
logs/* | ||
|
||
# Outputted raws go here (for my personal testing and stuff anyway) | ||
output/* | ||
backup/* | ||
|
||
# Older DF versions go here (for my help figuring version compatibility) | ||
refs/* | ||
|
||
# Stuff that's just not meant to be committed right now | ||
build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Disclaimer: This is a shitty WIP | ||
|
||
import sys | ||
import os | ||
|
||
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) | ||
|
||
import inspect | ||
|
||
import raws | ||
import pydwarf | ||
|
||
output = 'index.html' | ||
|
||
items = { | ||
'raws.token': raws.token, | ||
'raws.file': raws.file, | ||
'raws.dir': raws.dir, | ||
'raws.color': raws.color, | ||
'raws.tokenfilter': raws.tokenfilter, | ||
'raws.boolfilter': raws.boolfilter, | ||
'pydwarf.session': pydwarf.session, | ||
'pydwarf.urist': pydwarf.urist | ||
} | ||
|
||
alldoc = {} | ||
for itemname, item in items.iteritems(): | ||
itemdoc = {} | ||
alldoc[itemname] = itemdoc | ||
|
||
for membername, member in inspect.getmembers(item): | ||
memdoc = {} | ||
itemdoc[membername] = member | ||
|
||
with open(output, 'wb') as html: | ||
css = 'pre { background-color: #ddd; color: #113 }' | ||
html.write('<html><head><title>%(title)s</title><style>%(style)s</style></head><body>' % {'title': 'PyDwarf docs', 'style': css}) | ||
html.write('<h1 style="font-size: 50; color: #800">Warning: This is a shitty WIP.</h1>') | ||
for itemname in sorted(alldoc.iterkeys()): | ||
itemdoc = alldoc[itemname] | ||
html.write('<h1>%s</h1>' % itemname) | ||
for membername in sorted(itemdoc.iterkeys()): | ||
member = itemdoc[membername] | ||
if callable(member) and membername not in ('__module__', '__str__', '__repr__', '__doc__'): | ||
html.write('<p><b>%s</b><br><pre>%s</pre></p>' % (membername, member.__doc__)) | ||
html.write('</body></html>') | ||
|
||
|
||
|
||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
from response import * | ||
from urist import * | ||
|
||
__version__ = '1.0.0' | ||
__version__ = '1.0.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.