nini is a static wiki generator. It allows you to write files that reference each other and to generate an html output that includes backlinks
nini input output template.html atom.xml url
Where:
In input
folder, create files that end with .htm. Use [[]] to reference other files in them. For example:
<h1>Coffee</h1> <p>A popular machine is the [[aeropress]]</p>
The above automatically replaces [[aeropress]] with a link, but it requires aeropress.htm
to be created:
<h1>Aeropress</h1> <p>Created by Alan Adler.</p>
Here's an example of a template for entries:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>nini</title> </head> <body> <nav><a href="index.html">home</a> <a href="changelog.html">changelog</a> <a href="feed.atom">atom</a></nav> </body> </html>
Here's a template for the changelog
<h1>changelog</h1> <table width="100%"> </table>
Here's a template for atom.xml
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>ni</title> <link rel="alternate" href="https://wiki.ichi.city"/> <author> <name>m15o</name> </author> <id></id> <updated></updated> <link rel="self" href="/atom.xml"/> <entry> <title>index</title> <link rel="alternate" href="/index.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/index.html</id> </entry> <entry> <title>changelog</title> <link rel="alternate" href="/changelog.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/changelog.html</id> </entry> <entry> <title>htm</title> <link rel="alternate" href="/htm.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/htm.html</id> </entry> <entry> <title>install</title> <link rel="alternate" href="/install.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/install.html</id> </entry> <entry> <title>source</title> <link rel="alternate" href="/source.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/source.html</id> </entry> <entry> <title>nini executable</title> <link rel="alternate" href="/nini-executable.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/nini-executable.html</id> </entry> <entry> <title>go</title> <link rel="alternate" href="/go.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/go.html</id> </entry> <entry> <title>nini</title> <link rel="alternate" href="/nini.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/nini.html</id> </entry> <entry> <title>entry</title> <link rel="alternate" href="/entry.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/entry.html</id> </entry> <entry> <title>static</title> <link rel="alternate" href="/static.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/static.html</id> </entry> <entry> <title>ichi</title> <link rel="alternate" href="/ichi.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/ichi.html</id> </entry> <entry> <title>backlink</title> <link rel="alternate" href="/backlink.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/backlink.html</id> </entry> <entry> <title>html</title> <link rel="alternate" href="/html.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/html.html</id> </entry> <entry> <title>wiki</title> <link rel="alternate" href="/wiki.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/wiki.html</id> </entry> <entry> <title>ichipedia</title> <link rel="alternate" href="/ichipedia.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/ichipedia.html</id> </entry> <entry> <title>ni</title> <link rel="alternate" href="/ni.html"/> <updated>2022-05-26T08:10:41+02:00</updated> <id>/ni.html</id> </entry> </feed>