ttbp/README.html

160 lines
5.9 KiB
HTML
Raw Normal View History

2016-05-22 05:52:29 +00:00
<p><em>a command-line based blogging platform running on tilde.town</em></p>
2017-11-23 04:37:15 +00:00
<p><code>ttbp</code> stands for "tilde.town blogging platform", the original working name for
2016-05-22 05:52:29 +00:00
this project.</p>
2016-09-08 23:02:56 +00:00
<p><img src="http://tilde.town/~endorphant/ttbp/screenshots/ttbp-main.png" alt="ttbp main menu screenshot" /></p>
<p><img src="http://tilde.town/~endorphant/ttbp/screenshots/ttbp-entries.png" alt="ttbp entries view screenshot" /></p>
<p><img src="http://tilde.town/~endorphant/ttbp/screenshots/ttbp-compose.png" alt="ttbp compose view screenshot" /></p>
<p><code>ttbp</code> runs from the command line, providing a hub for writing personal blog
2017-11-23 04:37:15 +00:00
posts and reading posts written by other users of tilde.town. it's a little bit
2016-09-08 23:02:56 +00:00
like livejournal or dreamwidth or tumblr. you can opt to publish your posts to
a public html file hosted on your tilde page, or keep all your entries private
to the tilde.town server.</p>
2017-11-23 04:37:15 +00:00
<p>to use, run <code>feels</code> while logged in to tilde.town</p>
2016-05-22 05:52:29 +00:00
2017-11-23 04:37:15 +00:00
<p>(<code>feels</code> is a tilde.town specific command; if you're running this locally, or on
a different server, run <code>ttbp</code> from the command line)</p>
2016-05-22 05:52:29 +00:00
2017-11-23 04:37:15 +00:00
<h3 id="quickstart">QUICK START</h3>
2016-09-08 23:02:56 +00:00
<p>no coding or html experience is necessary to get started. just log in to your
tilde.town account and enter:</p>
2017-11-23 04:37:15 +00:00
<p><code>feels</code></p>
2016-09-08 23:02:56 +00:00
<p>ttbp will ask you a few questions to get you started. after that, writing and
reading entries all happen within the program.</p>
2017-11-23 04:37:15 +00:00
<p>that's it!</p>
2016-09-08 23:02:56 +00:00
2017-11-23 04:37:15 +00:00
<h3 id="support">SUPPORT</h3>
2016-09-08 23:02:56 +00:00
2017-11-23 04:37:15 +00:00
<p>if you're having trouble getting started, or run into program errors or strange
behavior, please send internal tilde.town mail to ~endorphant and i'll try to
2016-09-08 23:02:56 +00:00
sort things out!</p>
2017-11-23 04:37:15 +00:00
<h3 id="writingentries">writing entries</h3>
2016-05-22 05:52:29 +00:00
<p>entries are recorded as plaintext files in your ~/.ttbp/entries
directory. you can edit them there directly, or fix old entries, or
delete entries.</p>
<p><em>warning</em>: changing old entries might cause strange things to
happen with timestamps. the main program looks at the filename
first for setting the date, then the last modified time to sort
recent posts. it expects YYYMMDD.txt as the filename; anything else
2017-11-23 04:37:15 +00:00
won't show up as a valid entry. yes, this means you can post things out
2016-05-22 05:52:29 +00:00
of date order by creating files with any date you want.</p>
2017-11-23 04:37:15 +00:00
<h4 id="generalentrywritingnotes">general entry-writing notes</h4>
2016-05-22 05:52:29 +00:00
<ul>
<li>you can use <a href="https://daringfireball.net/projects/markdown/syntax">markdown</a></li>
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<li>you can use html</li>
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<li>you can also put things between <code>&lt;!-- comments --&gt;</code> to have them show up
in the feed but not render in a browser (but people can still read
them with view-source)</li>
</ul>
2017-11-23 04:37:15 +00:00
<h3 id="privacy">privacy</h3>
2016-05-22 05:52:29 +00:00
<p>when you start your ttbp, you have the option of publishing or not publishing
your blog.</p>
<p>if you opt to publish, the program creates a directory <code>~/.ttbp/www</code>
where it stores all html files it generates, and symlinks this from your
<code>~/public_html</code> with your chosen blog directory. your blog will also be listed
on the <a href="https://tilde.town/~endorphant/ttbp">main ttbp page</a>.</p>
<p>if you opt to not publish, your entires will never be accessible from outside
of the tilde.town network; other tilde.town users will still be able to read
your entries through the ttbp interface, or by directly accessing your
<code>~/.ttbp/entries</code> directory.</p>
<p>if you want to further protect your entries, you can <code>chmod 700</code> your entries
directory.</p>
2017-11-23 04:37:15 +00:00
<h3 id="changingyourpagelayout">changing your page layout</h3>
2016-05-22 05:52:29 +00:00
<p>you can modify how your blog looks by editing the stylesheet or
header and footer files. the program sets you up with basic
default. if you break your page somehow, you can force the program to
regenerate your configuration by deleting your ~/.ttbp directory entirely.
<strong>you might want to back up your ~/.ttbp/entries directory before you do
this.</strong></p>
<ul>
<li>to modify your stylesheet, edit your ~/.ttbp/config/style.css
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<ul>
2017-11-23 04:37:15 +00:00
<li>(future feature: having multiple stylesheets you can select)</li></ul>
2016-05-22 05:52:29 +00:00
</li>
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<li>to modify the page header, edit your ~/.ttbp/config/header.txt
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<ul>
2017-11-23 04:37:15 +00:00
<li>you might note that there's a place marked off in the default header where
you can safely put custom HTML elements!</li></ul>
2016-05-22 05:52:29 +00:00
</li>
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<li>to modify the page footer, edit your ~/.ttbp/config/footer.txt</li>
</ul>
2017-11-23 04:37:15 +00:00
<h3 id="generaltipstroubleshooting">general tips/troubleshooting</h3>
2016-05-22 05:52:29 +00:00
<ul>
<li>add <code>alias ttbp="~endorphant/bin/ttbp"</code> to your .bash_aliases for fewer keystrokes</li>
2017-11-23 04:37:15 +00:00
<li>(similarly, <code>alias ttbp-beta="~endorphant/bin/ttbp-beta"</code>)</li>
2017-11-23 04:37:15 +00:00
<li>if the date looks like it's ahead or behind, it's because you haven't set
your local timezone yet. here are some
<a href="http://www.cyberciti.biz/faq/linux-unix-set-tz-environment-variable/">timezone setting instructions</a></li>
2016-05-22 05:52:29 +00:00
</ul>
2017-11-23 04:37:15 +00:00
<h3 id="futurefeatures">future features</h3>
2016-05-22 05:52:29 +00:00
<p>these are a few ideas being kicked around, or under active development:</p>
<ul>
<li>better entry privacy/publish control options</li>
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<li>stylesheet/theme selector</li>
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<li>responding to entries</li>
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<li>paginated list view</li>
2017-11-23 04:37:15 +00:00
2016-05-22 05:52:29 +00:00
<li>better entry display within ttbp</li>
</ul>
2017-11-23 04:37:15 +00:00
<h3 id="dependencies">dependencies</h3>
2016-09-08 23:02:56 +00:00
<p>(this section is only relevant if you plan on forking the repo and running an
instance of this yourself)</p>
<ul>
<li><a href="https://pypi.python.org/pypi/mistune">mistune</a></li>
2017-11-23 04:37:15 +00:00
2016-09-08 23:02:56 +00:00
<li><a href="https://pypi.python.org/pypi/inflect">inflect</a></li>
</ul>
2017-11-23 04:37:15 +00:00
<h3 id="contributing">contributing</h3>
2016-09-08 23:02:56 +00:00
2017-11-23 04:37:15 +00:00
<p>please check out my <a href="https://github.com/modgethanc/ttbp/blob/master/.github/CONTRIBUTING.md">contributor
guidelines</a>
on github if you'd like to get involved with development!</p>
2016-09-08 23:02:56 +00:00
2017-11-23 04:37:15 +00:00
<p>if you find any bugs or strange behavior, please message me locally on tildemail
or open a github issue and i'll get back to you as soon as i can.</p>
2016-09-08 23:02:56 +00:00
2017-11-23 04:37:15 +00:00
<p>if you're interested in helping with the code, please drop me some tildemail!</p>