Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed assets/images/fork-me.png
Binary file not shown.
Binary file removed assets/images/logo.jpg
Binary file not shown.
114 changes: 62 additions & 52 deletions example.html
Original file line number Diff line number Diff line change
@@ -1,78 +1,88 @@
<html>
<head>
<title>Developer's Notes</title>
<title>DNote's Own Notes</title>
<style>
body { margin: 0; padding: 0; }
body { margin: 0; padding: 0; font-size: 0.8em; }
.main {
width: 800px;
margin: 0 auto;
border: 1px solid #ccc;
border: 0px solid #ccc;
padding: 0 20px 20px 20px;
}
h1 { margin: 25px 0; }
h2,h3,h4 { margin: 5px 0; padding: 0; color: 880044; }
h3 { color: 004488; }
h4 { color: 888844; }
h1 { margin: 25px 0; font-size: 3em; }
h2,h3,h4 { margin: 5px 0; padding: 0; color: #444; }
h2 { letter-spacing: 2px; border-top: 4px solid #ddd; padding: 5px 0; }
ul { margin: 0; padding: 0; text-align: left; }
li { margin: 0; padding: 0; text-align: left; }
a { color: #4488ff; }
sup { font-size: 0.8em; }
</style>
<link rel="stylesheet" href="notes.css" type="text/css">
</head>
<body>
<div class="main">
<h1>Developer's Notes</h1>
<h1>DNote's Own Notes</h1>
<div class="notes">
<h2>CREDIT</h2>
<h2 class="TEST">TEST</h2>
<ol class="set test">
<li><h3><a href="lib/dnote.rb">lib/dnote.rb</a></h3><ol class="file" href="lib/dnote.rb">
<li class="note test" ref="4">
This is a test of an arbitrary label. <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote.rb#L4">4</a></sup>
</li>
</ol></li>
</ol>
<h2 class="CREDIT">CREDIT</h2>
<ol class="set credit">
<li><h3><a href="lib/dnote/string.rb">lib/dnote/string.rb</a></h3><ol class="file" href="lib/dnote/string.rb">
<li class="note credit" ref="19">Trans <sup>19</sup></li>
<li class="note credit" ref="37">Gavin Sinclair <sup>37</sup></li>
<li class="note credit" ref="50">Gavin Sinclair <sup>50</sup></li>
<li class="note credit" ref="51">Trans <sup>51</sup></li>
<li><h3><a href="lib/dnote/core_ext.rb">lib/dnote/core_ext.rb</a></h3><ol class="file" href="lib/dnote/core_ext.rb">
<li class="note credit" ref="20">
Trans <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/core_ext.rb#L20">20</a></sup>
</li>
<li class="note credit" ref="35">
Gavin Sinclair <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/core_ext.rb#L35">35</a></sup>
</li>
<li class="note credit" ref="46">
Gavin Sinclair <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/core_ext.rb#L46">46</a></sup>
</li>
<li class="note credit" ref="47">
Trans <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/core_ext.rb#L47">47</a></sup>
</li>
</ol></li>
</ol>
<h2>TODO</h2>
<h2 class="TODO">TODO</h2>
<ol class="set todo">
<li><h3><a href="test/cases/notes_case.rb">test/cases/notes_case.rb</a></h3><ol class="file" href="test/cases/notes_case.rb">
<li class="note todo" ref="27">Do something or another!&quot;, 1, &quot;foo.rb&quot; <sup>27</sup></li>
<li class="note todo" ref="34">Do something or another!&quot;, 1, &quot;foo.rb&quot; <sup>34</sup></li>
</ol></li>
<li><h3><a href="lib/dnote/notes.rb">lib/dnote/notes.rb</a></h3><ol class="file" href="lib/dnote/notes.rb">
<li class="note todo" ref="16">Add ability to read header notes. They often
have a outline format, rather then the single line. <sup>16</sup></li>
<li class="note todo" ref="73">Play gold with Notes#parse. <sup>73</sup></li>
<li class="note todo" ref="79">should this be done? <sup>79</sup></li>
<li class="note todo" ref="134">ruby-1.9.1-p378 reports: `match&apos;: invalid byte sequence in UTF-8 <sup>134</sup></li>
<li class="note todo" ref="254">Would to_xoxo be better organized by label and or file? <sup>254</sup></li>
</ol></li>
<li><h3><a href="lib/plugins/syckle/dnote.rb">lib/plugins/syckle/dnote.rb</a></h3><ol class="file" href="lib/plugins/syckle/dnote.rb">
<li class="note todo" ref="18">Should this service be part of the +site+ cycle? <sup>18</sup></li>
<li class="note todo" ref="79">Is #trial? correct? <sup>79</sup></li>
</ol></li>
<li><h3><a href="work/site.rb">work/site.rb</a></h3><ol class="file" href="work/site.rb">
<li class="note todo" ref="102">Don&apos;t use chdir. <sup>102</sup></li>
</ol></li>
<li><h3><a href="lib/dnote/format.rb">lib/dnote/format.rb</a></h3><ol class="file" href="lib/dnote/format.rb">
<li class="note todo" ref="6">Need good CSS file. <sup>6</sup></li>
<li class="note todo" ref="8">Need XSL? <sup>8</sup></li>
<li class="note todo" ref="12">
Need good CSS file. <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/format.rb#L12">12</a></sup>
</li>
<li class="note todo" ref="14">
Need XSL? <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/format.rb#L14">14</a></sup>
</li>
</ol></li>
</ol>
<h2>TEST</h2>
<ol class="set test">
<li><h3><a href="lib/dnote.rb">lib/dnote.rb</a></h3><ol class="file" href="lib/dnote.rb">
<li class="note test" ref="31">This is a test of arbitraty labels. <sup>31</sup></li>
</ol></li>
</ol>
<h2>NOTE</h2>
<ol class="set note">
<li><h3><a href="lib/dnote.rb">lib/dnote.rb</a></h3><ol class="file" href="lib/dnote.rb">
<li class="note note" ref="6">Toying with the idea of making DNote a class. <sup>6</sup></li>
<li><h3><a href="lib/dnote/note.rb">lib/dnote/note.rb</a></h3><ol class="file" href="lib/dnote/note.rb">
<li class="note todo" ref="70">
Add +url+? <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/note.rb#L70">70</a></sup>
</li>
<li class="note todo" ref="71">
Add +code+? Problem is that xml needs code in CDATA. <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/note.rb#L71">71</a></sup>
</li>
</ol></li>
<li><h3><a href="lib/dnote/string.rb">lib/dnote/string.rb</a></h3><ol class="file" href="lib/dnote/string.rb">
<li class="note note" ref="17">This may still need a bit of tweaking. <sup>17</sup></li>
</ol></li>
<li><h3><a href="work/command.rb">work/command.rb</a></h3><ol class="file" href="work/command.rb">
<li class="note note" ref="139">If DNote were a class. <sup>139</sup></li>
<li><h3><a href="lib/dnote/notes.rb">lib/dnote/notes.rb</a></h3><ol class="file" href="lib/dnote/notes.rb">
<li class="note todo" ref="20">
Add ability to read header notes. They often
have a outline format, rather then the single line. <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/notes.rb#L20">20</a></sup>
</li>
<li class="note todo" ref="97">
Play golf with Notes#parse. <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/notes.rb#L97">97</a></sup>
</li>
<li class="note todo" ref="103">
should this be done? <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/notes.rb#L103">103</a></sup>
</li>
<li class="note todo" ref="315">
Continue to add comment types. <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/notes.rb#L315">315</a></sup>
</li>
<li class="note todo" ref="356">
Would to_xoxo be better organized by label and or file? <sup><a href="https://github.com/rubyworks/dnote/blob/master/lib/dnote/notes.rb#L356">356</a></sup>
</li>
</ol></li>
</ol>
</div>
Expand Down
1 change: 1 addition & 0 deletions example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"label":"TEST","text":"This is a test of an arbitrary label.","file":"lib/dnote.rb","line":4,"code":""},{"label":"CREDIT","text":"Trans","file":"lib/dnote/core_ext.rb","line":20,"code":""},{"label":"CREDIT","text":"Gavin Sinclair","file":"lib/dnote/core_ext.rb","line":35,"code":""},{"label":"CREDIT","text":"Gavin Sinclair","file":"lib/dnote/core_ext.rb","line":46,"code":""},{"label":"CREDIT","text":"Trans","file":"lib/dnote/core_ext.rb","line":47,"code":""},{"label":"TODO","text":"Need good CSS file.","file":"lib/dnote/format.rb","line":12,"code":""},{"label":"TODO","text":"Need XSL?","file":"lib/dnote/format.rb","line":14,"code":""},{"label":"TODO","text":"Add +url+?","file":"lib/dnote/note.rb","line":70,"code":""},{"label":"TODO","text":"Add +code+? Problem is that xml needs code in CDATA.","file":"lib/dnote/note.rb","line":71,"code":""},{"label":"TODO","text":"Add ability to read header notes. They often\nhave a outline format, rather then the single line.","file":"lib/dnote/notes.rb","line":20,"code":""},{"label":"TODO","text":"Play golf with Notes#parse.","file":"lib/dnote/notes.rb","line":97,"code":""},{"label":"TODO","text":"should this be done?","file":"lib/dnote/notes.rb","line":103,"code":""},{"label":"TODO","text":"Continue to add comment types.","file":"lib/dnote/notes.rb","line":315,"code":""},{"label":"TODO","text":"Would to_xoxo be better organized by label and or file?","file":"lib/dnote/notes.rb","line":356,"code":""}]
42 changes: 42 additions & 0 deletions example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Developer's Notes
=================

TEST
----

### file://lib/dnote.rb

* TEST: This is a test of an arbitrary label. (4)

CREDIT
------

### file://lib/dnote/core_ext.rb

* CREDIT: Trans (20)
* CREDIT: Gavin Sinclair (35)
* CREDIT: Gavin Sinclair (46)
* CREDIT: Trans (47)

TODO
----

### file://lib/dnote/format.rb

* TODO: Need good CSS file. (12)
* TODO: Need XSL? (14)

### file://lib/dnote/note.rb

* TODO: Add +url+? (70)
* TODO: Add +code+? Problem is that xml needs code in CDATA. (71)

### file://lib/dnote/notes.rb

* TODO: Add ability to read header notes. They often
have a outline format, rather then the single line. (20)
* TODO: Play golf with Notes#parse. (97)
* TODO: should this be done? (103)
* TODO: Continue to add comment types. (315)
* TODO: Would to_xoxo be better organized by label and or file? (356)

106 changes: 58 additions & 48 deletions example.xml
Original file line number Diff line number Diff line change
@@ -1,51 +1,61 @@
<?xml version="1.0" ?>
<notes>
<label name="CREDIT">
<file src="lib/dnote/string.rb">
<note line="19" type="CREDIT">Trans</note>
<note line="37" type="CREDIT">Gavin Sinclair</note>
<note line="50" type="CREDIT">Gavin Sinclair</note>
<note line="51" type="CREDIT">Trans</note>
</file>
</label>
<label name="TODO">
<file src="test/cases/notes_case.rb">
<note line="27" type="TODO">Do something or another!&quot;, 1, &quot;foo.rb&quot;</note>
<note line="34" type="TODO">Do something or another!&quot;, 1, &quot;foo.rb&quot;</note>
</file>
<file src="lib/dnote/notes.rb">
<note line="16" type="TODO">Add ability to read header notes. They often have a outline format, rather then the single line.</note>
<note line="73" type="TODO">Play gold with Notes#parse.</note>
<note line="79" type="TODO">should this be done?</note>
<note line="134" type="TODO">ruby-1.9.1-p378 reports: `match&apos;: invalid byte sequence in UTF-8</note>
<note line="254" type="TODO">Would to_xoxo be better organized by label and or file?</note>
</file>
<file src="lib/plugins/syckle/dnote.rb">
<note line="18" type="TODO">Should this service be part of the +site+ cycle?</note>
<note line="79" type="TODO">Is #trial? correct?</note>
</file>
<file src="work/site.rb">
<note line="102" type="TODO">Don&apos;t use chdir.</note>
</file>
<file src="lib/dnote/format.rb">
<note line="6" type="TODO">Need good CSS file.</note>
<note line="8" type="TODO">Need XSL?</note>
</file>
</label>
<label name="TEST">
<file src="lib/dnote.rb">
<note line="31" type="TEST">This is a test of arbitraty labels.</note>
</file>
</label>
<label name="NOTE">
<file src="lib/dnote.rb">
<note line="6" type="NOTE">Toying with the idea of making DNote a class.</note>
</file>
<file src="lib/dnote/string.rb">
<note line="17" type="NOTE">This may still need a bit of tweaking.</note>
</file>
<file src="work/command.rb">
<note line="139" type="NOTE">If DNote were a class.</note>
</file>
</label>
<label name="TEST">
<file src="lib/dnote.rb">
<note line="4" type="TEST">
This is a test of an arbitrary label.
</note>
</file>
</label>
<label name="CREDIT">
<file src="lib/dnote/core_ext.rb">
<note line="20" type="CREDIT">
Trans
</note>
<note line="35" type="CREDIT">
Gavin Sinclair
</note>
<note line="46" type="CREDIT">
Gavin Sinclair
</note>
<note line="47" type="CREDIT">
Trans
</note>
</file>
</label>
<label name="TODO">
<file src="lib/dnote/format.rb">
<note line="12" type="TODO">
Need good CSS file.
</note>
<note line="14" type="TODO">
Need XSL?
</note>
</file>
<file src="lib/dnote/note.rb">
<note line="70" type="TODO">
Add +url+?
</note>
<note line="71" type="TODO">
Add +code+? Problem is that xml needs code in CDATA.
</note>
</file>
<file src="lib/dnote/notes.rb">
<note line="20" type="TODO">
Add ability to read header notes. They often have a outline format, rather then the single line.
</note>
<note line="97" type="TODO">
Play golf with Notes#parse.
</note>
<note line="103" type="TODO">
should this be done?
</note>
<note line="315" type="TODO">
Continue to add comment types.
</note>
<note line="356" type="TODO">
Would to_xoxo be better organized by label and or file?
</note>
</file>
</label>
</notes>
Loading