Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated documentation

  • Loading branch information...
commit c120258896258087f01afa3b37a0f9e0fef2b5e1 1 parent 3687d40
@tomdyson authored
View
7 static/styles-site.css
@@ -23,10 +23,13 @@ body, h1, h2, h4, h5, h6,ol, ul, li, p, input, textarea, select {
font-size: 12px;
}
-p a, .entry a {
+p, li {font-size: 12px;line-height: 16px;}
+
+p a, .entry a, li a {
color: #588E03;
border-bottom: 1px dotted #588E03;
- text-decoration: none; }
+ text-decoration: none;
+ }
#menu a {
color: brown;
View
3  templates/about-api.html
@@ -2,6 +2,7 @@
{% block content %}
<p>
- wordoff has an api
+ Use wordoff through its API by POSTing to the <strong>/api/clean</strong> method with a single <strong>html</strong> argument:
</p>
+ <pre>curl -d html=&lt;Dirty HTML&gt; http://wordoff.org/api/clean</pre>
{% endblock %}
View
22 templates/about.html
@@ -2,12 +2,24 @@
{% block content %}
<p>
- wordoff applies the following rules to strip the cruft that is pasted into
- wysiwyg editors from word:
+ Wordoff applies the following rules to strip the cruft that is pasted into
+ WYSIWYG editors from Word:</p>
<ul>
- <li>all attributes are removed</li>
- <li>spans are removed</li>
- <li>empty elements are removed</li>
+ <li>Attributes are removed for all elements except &lt;a&gt;s</li>
+ <li>&lt;span&gt;s and &lt;div&gt;s are removed</li>
+ <li>Empty elements are removed</li>
+ <li>Consecutive line breaks are reduced to two</li>
</ul>
+<p>
+ Wordoff is written in Python and runs on Django in Google App Engine. It was designed as a demonstration
+ project for a short talk at <a href = "http://oxford.geeknights.net/2008/jun-25th/">Oxford Geek Nights</a>.
+ The logo uses the <a href = "http://www.dafont.com/sketch-rockwell.font">Sketch Rockwell</a> font.
+</p>
+<p>
+ Please improve Wordoff:
</p>
+<ul>
+ <li>Issues - <a href = "http://wordoff.lighthouseapp.com/projects/13552-wordoff/tickets/new">Wordoff @ Lighthouse</a></li>
+ <li>Git - <a href = "git://github.com/tomdyson/wordoff.git">git://github.com/tomdyson/wordoff.git</a></li>
+</ul>
{% endblock %}
View
1  templates/base.html
@@ -26,7 +26,6 @@
<a href = "/">start</a> |
<a href="/about">about</a> |
<a href="/api">api</a> |
- <a href = "http://wordoff.lighthouseapp.com/projects/13552-wordoff/tickets/new">bugs</a> |
&copy; <a href = "http://www.throwingbeans.org/">tom dyson</a> 2008
</div>
View
2  wordoff.py
@@ -46,7 +46,7 @@ def superClean(str):
clean = stripAttributes(str)
cleaner = stripSpans(clean)
cleaner = stripDivs(cleaner)
- cleaner = xenophobia(cleaner)
+ #cleaner = xenophobia(cleaner)
cleaner = stripEmptyElements(cleaner)
cleaner = stripEmptyElements(cleaner)
cleaner = stripEmptyElements(cleaner)
Please sign in to comment.
Something went wrong with that request. Please try again.