Fix up documentation

Fix a few RST snafus so that the README renders properly.
This commit is contained in:
Thierry Carrez 2017-05-22 15:05:39 +02:00
parent 465f277ccb
commit 7284607c6c
1 changed files with 13 additions and 13 deletions

View File

@ -11,10 +11,12 @@ From that information the bot builds a static webpage with discussion
topics currently discussed ("now") and an indicative set of discussion topics currently discussed ("now") and an indicative set of discussion
topics coming up next ("next"). topics coming up next ("next").
NB: Please note that:
* There can only be one "now" topic at a time. If multiple topics are * There can only be one "now" topic at a time. If multiple topics are
discussed at the same time in various corners of the room, they should discussed at the same time in various corners of the room, they should
all be specified in a single "now" command. all be specified in a single "now" command.
* In order to ensure that information is current, entering a "now" command * In order to ensure that information is current, entering a "now" command
wipes out any "next" entry for the same room. You might want to refresh wipes out any "next" entry for the same room. You might want to refresh
those after entering a "now" topic. those after entering a "now" topic.
@ -36,15 +38,15 @@ Copy config.ini.sample to config.ini:
cp config.ini.sample config.ini cp config.ini.sample config.ini
Edit config.ini contents, for example: Edit config.ini contents, for example::
[ircbot] [ircbot]
nick=ptgbot nick=ptgbot
pass= pass=
server=irc.freenode.net server=irc.freenode.net
port=6667 port=6667
channels=testptg channels=testptg
db=html/ptg.json db=html/ptg.json
In one terminal, run the bot:: In one terminal, run the bot::
@ -56,10 +58,8 @@ Join that channel and give a command to the bot::
(note, the bot currently only takes commands from Freenode identified users) (note, the bot currently only takes commands from Freenode identified users)
In another terminal, start the webserver: In another terminal, start the webserver::
cd html && python -m SimpleHTTPServer cd html && python -m SimpleHTTPServer
Open the web page in a web browser: Open the web page in a web browser: http://127.0.0.1:8000/ptg.html
http://127.0.0.1:8000/ptg.html