Skip to content

Commit

Permalink
Initial import of vuxi, a minimalist static Wiki compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Jan 10, 2010
0 parents commit a1bfee7
Show file tree
Hide file tree
Showing 8 changed files with 2,013 additions and 0 deletions.
105 changes: 105 additions & 0 deletions data/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
body {
font: 10pt Helvetica, Verdana, sans-serif;
line-height: 1.333em;
}

.hfeed {
margin: 0.33em;
width: 45em;
position: relative;
}

h1, h2 {
font-family: "Helvetica Neue", Helvetica, Verdana, sans-serif;
font-weight: bold;
line-height: 1.2;
}
h1 {
font-size: 1.41em;
width: 66%;
}
h2 { font-size: 1.2em; }
h3,h4,h5,h6 { font-size: 1em; }

.entry-content {
margin-top: 2.5em;
}

.entry-content code {
font-family: Monaco, "Courier New", monospace;
font-size: 0.9em;
}

.entry-content blockquote {
font-style: italic;
margin: 0 1em;
}

.entry-content ul {
list-style-type: none;
padding: 0 0 0 2em;
}

a {
text-decoration: none;
font-weight: bold;
color: #000;
}

a:hover {
text-decoration: underline;
}

address {
font-style: normal;
}

.footer, #recent {
margin-top: 2.5em;
}

#recent ul {
list-style-type: none;
display: inline;
margin: 0;
padding: 0 0 0 1em;
}

#recent li + li:before {
content: "\2044";
padding: 0 0.8em 0 0.5em;
}

#recent li {
display: inline;
}

#search {
text-align: right;
height: 0;
position: absolute;
top: 0.3em;
right: 0;
}

input {
font: bold 12px Helvetica, Verdana, sans-serif;
font-weight: bold;
border: 1px solid #000;
background-color: #ffffff;
margin: 0;
padding: 2px;
}

input[type=submit] {
border: none;
cursor: pointer;
}

form a {
padding-right: 0.33em;
}

abbr {
border-bottom: 1px dotted black;
}
44 changes: 44 additions & 0 deletions template/all.ht
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>vuxu.org: All pages</title>
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="alternate" type="application/atom+xml" title="Atom" href="http://vuxu.org/index.atom">
</head>
<body>

<div class="hfeed">
<div class="hentry">
<h1 class="entry-title">
<a href="/">vuxu.org</a>:
<a href="all" rel="bookmark">All pages</a>
</h1>

<form method="get" action="http://www.google.com/search" id="search">
<a href="/">home</a>
<a href="all">all</a>
<input type="hidden" name="sitesearch" value="vuxu.org">
<input type="text" name="q" size="16" maxlength="255" value="">
<input type="submit" value="search">
</form>

<div class="entry-content">
All pages:
<ul>
$ sort_by { |e| e[:title].downcase }.each { |e|
<li><a href="${e[:id]}">${e[:title]}</a> [${e[:id]}]</li>
$ }
</ul>
</div>
</div>

<div class="footer">
<address class="author vcard">
Copyright &#169; 2007&#8211;2010 <a class="email fn" href="mailto:chneukirchen@gmail.com">Christian Neukirchen</a>.
</address>
</div>
</div>
</body>
</html>
39 changes: 39 additions & 0 deletions template/atom.ht
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">vuxu.org</title>
<link rel="alternate" type="text/html"
href="http://vuxu.org/" />
<link rel="self" href="http://vuxu.org/index.atom" />
<author>
<name>Christian Neukirchen</name>
<uri>http://chneukirchen.org/</uri>
<email>chneukirchen@gmail.com</email>
</author>
<id>tag:vuxu.org,2010:vuxu-feed</id>
<generator version="1.0">vuxi.rb</generator>
<rights type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Copyright © 2007–2010 Christian Neukirchen, chneukirchen@gmail.com
Verbatim copying is permitted as long as this message is preserved.
</div>
</rights>
<updated>${self[:time].iso8601}</updated>
$ self[:entries].each { |entry|
<entry>
<title>${entry[:title]}</title>
<author>
<name>Christian Neukirchen</name>
<uri>http://chneukirchen.org/</uri>
<email>chneukirchen@gmail.com</email>
</author>
<link rel="alternate" type="text/html"
href="http://vuxu.org/${entry[:id]}" />
<id>tag:vuxu.org,2010:vuxu-${entry[:id]}</id>
<updated>${entry[:updated].iso8601}</updated>
<published>${entry[:date].iso8601}</published>
<content type="html">
${format(entry)}
</content>
</entry>
$ }
</feed>
55 changes: 55 additions & 0 deletions template/page.ht
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>vuxu.org: ${self[:title]}</title>
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="alternate" type="application/atom+xml" title="Atom" href="http://vuxu.org/index.atom">
</head>
<body>

<div class="hfeed">
<div class="hentry">
<h1 class="entry-title">
<a href="/">vuxu.org</a>:
<abbr class="published" title="${self[:date].iso8601}">
<a href="${self[:id]}" rel="bookmark">${self[:title]}</a>
</abbr>
</h1>

<form method="get" action="http://www.google.com/search" id="search">
<a href="/">home</a>
<a href="all">all</a>
<input type="hidden" name="sitesearch" value="vuxu.org">
<input type="text" name="q" size="16" maxlength="255" value="">
<input type="submit" value="search">
</form>

$ if self[:recent]
<div id="recent">
Last changed:
<ul >
$ self[:recent].each { |e|
<li><a href="${e[:id]}">${e[:title]}</a></li>
$ }
</ul>
</div>
$ end

<div class="entry-content">
$:{format self}
</div>
</div>

<div class="footer">
<div>Created: ${self[:date].rfc2822}</div>
<div>Updated: ${self[:updated].rfc2822}</div>
<address class="author vcard">
Copyright &#169; 2007&#8211;2010 <a class="email fn" href="mailto:chneukirchen@gmail.com">Christian Neukirchen</a>.
</address>
</div>
</div>
</body>
</html>

Loading

0 comments on commit a1bfee7

Please sign in to comment.