Merge lp:~stefanor/ibid/pandoc-man-511899 into lp:~ibid-core/ibid/old-trunk-1.6

Proposed by Stefano Rivera
Status: Merged
Approved by: Stefano Rivera
Approved revision: 914
Merged at revision: 915
Proposed branch: lp:~stefanor/ibid/pandoc-man-511899
Merge into: lp:~ibid-core/ibid/old-trunk-1.6
Diff against target: 1173 lines (+554/-501)
12 files modified
man/Makefile (+13/-0)
man/README (+4/-0)
man/ibid-db.1.md (+62/-57)
man/ibid-factpack.1.md (+61/-56)
man/ibid-knab-import.1.md (+47/-41)
man/ibid-memgraph.1.md (+41/-36)
man/ibid-objgraph.1.md (+48/-47)
man/ibid-pb-client.1.md (+43/-47)
man/ibid-plugin.1.md (+64/-64)
man/ibid-setup.1.md (+35/-32)
man/ibid.1.md (+35/-26)
man/ibid.ini.5.md (+101/-95)
To merge this branch: bzr merge lp:~stefanor/ibid/pandoc-man-511899
Reviewer Review Type Date Requested Status
Michael Gorven Approve
Jonathan Hitchcock Approve
Max Rabkin Approve
Review via email: mp+21400@code.launchpad.net

Commit message

Convert manpages to Markdown and generate with pandoc

To post a comment you must log in.
lp:~stefanor/ibid/pandoc-man-511899 updated
913. By Stefano Rivera

Correct spelling

914. By Stefano Rivera

Escape -- to prevent rendering as dash

Revision history for this message
Max Rabkin (max-rabkin) wrote :

Approved once the double-hyphen issue is fixed.

review: Approve
Revision history for this message
Jonathan Hitchcock (vhata) :
review: Approve
Revision history for this message
Keegan Carruthers-Smith (keegan-csmith) wrote :

I thought pandoc supported restructured text? Is it not more consistent to stick with rst?

Revision history for this message
Stefano Rivera (stefanor) wrote :

> I thought pandoc supported restructured text? Is it not more consistent to
> stick with rst?

Yes, that was my original intention. However it doesn't seem to support building the man-page header fields when converting from rst to nroff.
I switched and also noted that markdown would be conciser than the equivalent rst, which was enough to convince me to stick with it.

Revision history for this message
Michael Gorven (mgorven) wrote :

 review approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'man/Makefile'
--- man/Makefile 1970-01-01 00:00:00 +0000
+++ man/Makefile 2010-03-20 10:39:26 +0000
@@ -0,0 +1,13 @@
1MANPAGES=$(patsubst %.md,%,$(wildcard *.md))
2
3all: $(MANPAGES)
4
5clean:
6 rm -f $(MANPAGES)
7
8%: %.md
9# Incorrect escaping in code blocks:
10# http://code.google.com/p/pandoc/issues/detail?id=223
11 pandoc -s -t man $< | sed -e '/^[^.]/ s/\\"/"/g' > $@
12
13.PHONY: all clean
014
=== added file 'man/README'
--- man/README 1970-01-01 00:00:00 +0000
+++ man/README 2010-03-20 10:39:26 +0000
@@ -0,0 +1,4 @@
1All files in this directory are:
2
3Copyright (c) 2010, Stefano Rivera
4Released under terms of the MIT/X/Expat Licence. See COPYING for details.
05
=== renamed file 'man/ibid-db.1' => 'man/ibid-db.1.md'
--- man/ibid-db.1 2010-03-08 20:27:21 +0000
+++ man/ibid-db.1.md 2010-03-20 10:39:26 +0000
@@ -1,59 +1,64 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID-DB(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID-DB "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid-db \- Database management utility for Ibid5# NAME
6.SH SYNOPSIS6
7.B ibid-db command7ibid-db - Database management utility for Ibid
8.RI [ options ...]8
9.SH DESCRIPTION9# SYNOPSIS
10This utility is for offline management of your Ibid bot's database.10
11Used for import, export, and upgrades.11**ibid-db** *command* [*options*...]
12.P12
13# DESCRIPTION
14
15This utility is for offline management of your Ibid bot's database. Used for
16import, export, and upgrades.
17
13The export format is DBMS-agnostic and can be used to migrate between different18The export format is DBMS-agnostic and can be used to migrate between different
14databases.19databases.
15.SH COMMANDS20
16.TP21# COMMANDS
17\fB\-e\fR \fIFILE\fR, \fB\-\-export\fR=\fIFILE\fR22
18Export DB contents to \fIFILE\fR.23**-e** *FILE*, **-\-export**=*FILE*
19Export format is JSON.24: Export DB contents to *FILE*.
20.IP25 Export format is JSON.
21FILE can be \fB\-\fR for stdin/stdout or can end in \fB.gz\fR for automatic26 *FILE* can be **-** for *stdout* or can end in **.gz** for automatic gzip
22gzip compression.27 compression.
23.TP28
24\fB\-i\fR \fIFILE\fR, \fB\-\-import\fR=\fIFILE\fR29**-i** *FILE*, **-\-import**=*FILE*
25Import DB contents from \fIFILE\fR as exported by this utility.30: Import DB contents from *FILE* as exported by this utility.
26.IP31 *FILE* can be **-** for *stdin* or can end in **.gz** for automatic gzip
27FILE can be \fB\-\fR for stdin/stdout or can end in \fB.gz\fR for automatic32 compression.
28gzip compression.33
29.IP34: **Note:** The DB must be empty first.
30.B Note:35
31The DB must be empty first.36**-u**, **-\-upgrade**
32.TP37: Upgrade DB schema to the latest version.
33\fB\-u\fR, \fB\-\-upgrade\fR38 You need to run this after upgrading your bot.
34Upgrade DB schema to the latest version.39
35You need to run this after upgrading your bot.40: **Note:** You should backup first.
36.IP41
37.B Note:42# OPTIONS
38You should backup first.43
39.SH OPTIONS44**-\-version**
40.TP45: Show the program's version and exit.
41\fB\-\-version\fR46
42Show the program's version and exit.47**-h**, **-\-help**
43.TP48: Show a help message and exit.
44\fB\-h\fR, \fB\-\-help\fR49
45Show a help message and exit.50**-v**, **-\-verbose**
46.TP51: Turn on debugging output to stderr.
47\fB\-v\fR, \fB\-\-verbose\fR52
48Turn on debugging output to stderr.53# FILES
49.SH FILES54
50.TP55*ibid.ini*
51.I ibid.ini56: Locates the database to act upon by looking for the
52Locates the database to act upon by looking for the \fB[databases].ibid\fR value57 [**databases**].**ibid** value in the bot configuration file in the current
53in the bot configuration file in the current directory.58 directory.
54.SH SEE ALSO59
55.BR ibid (1),60# SEE ALSO
56.BR ibid.ini (5),61`ibid` (1),
57.BR ibid-setup (1),62`ibid.ini` (5),
58.UR http://ibid.omnia.za.net/63`ibid-setup` (1),
59.BR http://ibid.omnia.za.net/64http://ibid.omnia.za.net/
6065
=== renamed file 'man/ibid-factpack.1' => 'man/ibid-factpack.1.md'
--- man/ibid-factpack.1 2010-03-08 20:27:21 +0000
+++ man/ibid-factpack.1.md 2010-03-20 10:39:26 +0000
@@ -1,65 +1,70 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID-FACTPACK(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID-FACTPACK "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid-factpack \- Factoid-package management utility for Ibid5# NAME
6.SH SYNOPSIS6
7.B ibid-factpack7ibid-factpack - Factoid-package management utility for Ibid
8.RB [ -s ]8
9.I factpack-file9# SYNOPSIS
10.br10
11.B ibid-factpack -r11**ibid-factpack** [**-s**] *factpack-file*
12.RB [ -f ]12**ibid-factpack** **-r** [**-f**] *factpack-name*
13.I factpack-name13**ibid-factpack** **-h**
14.br14
15.B ibid-factpack -h15# DESCRIPTION
16.SH DESCRIPTION16
17This utility is for adding and removing sets of packaged factoids, known as17This utility is for adding and removing sets of packaged factoids, known as
18factpacks, from your Ibid's factoid database.18factpacks, from your Ibid's factoid database.
19.P19
20The default mode is factpack loading.20The default mode is factpack loading.
21The \fIfactpack-file\fR specified is loaded into the bot's database.21The *factpack-file* specified is loaded into the bot's database.
22Should the pack contain any facts with the same name as an existing fact in the22Should the pack contain any facts with the same name as an existing fact in the
23bot's database, loading will be aborted, unless the \fB-s\fR option is23bot's database, loading will be aborted, unless the *-s* option is supplied.
24supplied.24
25.P25Factpacks can be gzipped if the filename ends with **.gz**.
26Factpacks can be gzipped if the filename ends with \fB\.gz\fR.26
27.P27When invoked with the **-r** option, the named factpack (original import
28When invoked with the \fB-r\fR option, the named factpack (original import
29filename minus the extension) will be removed from the bot.28filename minus the extension) will be removed from the bot.
30If any of the facts contained in that pack were modified while loaded in the29If any of the facts contained in that pack were modified while loaded in the
31bot, unloading will be aborted, unless the \fB-f\fR option is supplied.30bot, unloading will be aborted, unless the **-f** option is supplied.
32.SH OPTIONS31
33.TP32# OPTIONS
34\fB\-r\fR, \fB\-\-remove\fR33
35Remove the named factpack, rather than importing.34**-r**, **-\-remove**
36.TP35: Remove the named factpack, rather than importing.
37\fB\-f\fR, \fB\-\-force\fR36
38Force removal, if facts in the factpack were modified by users.37**-f**, **-\-force**
39.TP38: Force removal, if facts in the factpack were modified by users.
40\fB\-s\fR, \fB\-\-skip\fR39
41Skip facts that clash with existing factoids, during import.40**-s**, **-\-skip**
42.TP41: Skip facts that clash with existing factoids, during import.
43\fB\-h\fR, \fB\-\-help\fR42
44Show a help message and exit.43**-h**, **-\-help**
45.SH FACTPACKS44: Show a help message and exit.
45
46# FACTPACKS
47
46Factpacks are JSON-encoded text files containing a list of facts.48Factpacks are JSON-encoded text files containing a list of facts.
47Each fact is a tuple of two lists: fact-names, fact-values.49Each fact is a tuple of two lists: fact-names, fact-values.
48The same substitutions are available as in normal online Factoids.50The same substitutions are available as in normal online Factoids.
49.SS Example:51
50.nf52## Example:
51[53
52 [["Hello", "Hi"], ["<reply> Hi There", "<action> waves"]],54 [
53 [["Bye"], ["<reply> kbye $who", "<reply> Cheers"]]55 [["Hello", "Hi"], ["<reply> Hi There", "<action> waves"]],
54]56 [["Bye"], ["<reply> kbye $who", "<reply> Cheers"]]
55.fi57 ]
56.SH FILES58
57.TP59# FILES
58.I ibid.ini60
59Locates the database to act upon by looking for the \fB[databases].ibid\fR value61*ibid.ini*
60in the bot configuration file in the current directory.62: Locates the database to act upon by looking for the
61.SH SEE ALSO63 [**databases**].**ibid** value in the bot configuration file in the current
62.BR ibid (1),64 directory.
63.BR ibid.ini (5),65
64.UR http://ibid.omnia.za.net/66# SEE ALSO
65.BR http://ibid.omnia.za.net/67
68`ibid` (1),
69`ibid.ini` (5),
70http://ibid.omnia.za.net/
6671
=== renamed file 'man/ibid-knab-import.1' => 'man/ibid-knab-import.1.md'
--- man/ibid-knab-import.1 2010-03-08 20:27:21 +0000
+++ man/ibid-knab-import.1.md 2010-03-20 10:39:26 +0000
@@ -1,44 +1,50 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID-KNAB-IMPORT(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID-DB "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid-knab-import \- Knab->Ibid Import utility5# NAME
6.SH SYNOPSIS6
7.B ibid-knab-import7ibid-knab-import - Knab->Ibid Import utility
8.I knab-sa-url8
9.I source9# SYNOPSIS
10.RI [ config-file ]10
11.SH DESCRIPTION11**ibid-knab-import** *knab-sa-url* *source* [*config-file*]
12This utility imports users, last seen information, factoids, and URLs12
13from a Knab bot's database into an Ibid.13# DESCRIPTION
14.P14
15This utility imports users, last seen information, factoids, and URLs from a
16Knab bot's database into an Ibid.
17
15For best results, import directly into a brand new, clean Ibid install.18For best results, import directly into a brand new, clean Ibid install.
16.P19
17On import, strings are converted to Unicode, guessing UTF-8 and falling back to20On import, strings are converted to Unicode, guessing UTF-8 and falling back to
18detection.21detection.
19.SH OPTIONS22
20.TP23# OPTIONS
21.I knab-sa-url24
22The SQLAlchemy URI for the Knab's database.25*knab-sa-url*
23The format is26: The SQLAlchemy URI for the Knab's database.
24.BI mysql:// user : pass @ hostname / dbname27 The format is **mysql://**_user_**:**_pass_**@**_hostname_**/**_dbname_
25.TP28
26.I source29*source*
27The name in the Ibid bot for the source that the Knab was previously connected to.30: The name in the Ibid bot for the source that the Knab was previously
28.TP31 connected to.
29.I config-file32
30If supplied, this is configuration file is used for locating the Ibid's33*config-file*
31database rather than \fBibid.ini\fR.34: If supplied, this is configuration file is used for locating the Ibid's
32.SH FILES35 database rather than **ibid.ini**.
33.TP36
34.I ibid.ini37# FILES
35Locates the database to act upon by looking for the \fB[databases].ibid\fR value38
36in the bot configuration file in the current directory.39*ibid.ini*
37.SH SEE ALSO40: Locates the database to act upon by looking for the
38.BR ibid (1),41 [**databases**].**ibid** value in the bot configuration file in the current
39.BR ibid.ini (5),42 directory.
40.BR ibid-setup (1),43
41.UR http://ibid.omnia.za.net/44# SEE ALSO
42.BR http://ibid.omnia.za.net/ ,45
43.UR http://knab.omnia.za.net/46`ibid` (1),
44.BR http://knab.omnia.za.net/47`ibid.ini` (5),
48`ibid-setup` (1),
49http://ibid.omnia.za.net/,
50http://knab.omnia.za.net/
4551
=== renamed file 'man/ibid-memgraph.1' => 'man/ibid-memgraph.1.md'
--- man/ibid-memgraph.1 2010-03-08 20:27:21 +0000
+++ man/ibid-memgraph.1.md 2010-03-20 10:39:26 +0000
@@ -1,39 +1,44 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID-MEMGRAPH(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID-MEMGRAPH "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid-memgraph \- Memory usage graph generation utility for Ibid5# NAME
6.SH SYNOPSIS6
7.B ibid-memgraph7ibid-memgraph - Memory usage graph generation utility for Ibid
8.RB [ options ...]8
9.I logfile9# SYNOPSIS
10.br10
11.B ibid-memgraph -h11**ibid-memgraph** [*options*...] *logfile*
12.SH DESCRIPTION12**ibid-memgraph** **-h**
13
14# DESCRIPTION
15
13This utility is for graphing memory usage from an Ibid bot configured to16This utility is for graphing memory usage from an Ibid bot configured to
14log such usage.17log such usage.
15.P18
16Matplotlib is required for graphing.19Matplotlib is required for graphing.
17.SH OPTIONS20
18.TP21# OPTIONS
19\fB\-o\fR \fIFILE\fR, \fB\-\-output\fR=\fIFILE\fR22
20Output to \fIFILE\fR instead of displaying interactive graph GUI.23**-o** *FILE*, **-\-output**=*FILE*
21\fIFILE\fR can be any format supported by Matplotlib, detected by the file24: Output to *FILE* instead of displaying interactive graph GUI.
22extension.25 *FILE* can be any format supported by Matplotlib, detected by the file
23.TP26 extension.
24\fB\-d\fR \fIDPI\fR, \fB\-\-dpi\fR=\fIDPI\fR27
25When outputting in raster formats, use \fIDPI\fR output DPI.28**-d** *DPI*, **-\-dpi**=*DPI*
26.TP29 When outputting in raster formats, use *DPI* output DPI.
27\fB\-h\fR, \fB\-\-help\fR30
28Show a help message and exit.31**-h**, **-\-help**
29.SH FILES32 Show a help message and exit.
30.TP33
31.I logfile34# FILES
32A log file generated by loading the \fBmemory\fR plugin into Ibid, which will35
33periodically log memory usage.36*logfile*
34It can be gzip compressed, if the filename ends in \fB.gz\fR.37: A log file generated by loading the **memory** plugin into Ibid, which will
35.SH SEE ALSO38 periodically log memory usage.
36.BR ibid (1),39 It can be gzip compressed, if the filename ends in **.gz**.
37.BR ibid-objgraph (1),40
38.UR http://ibid.omnia.za.net/41# SEE ALSO
39.BR http://ibid.omnia.za.net/42`ibid` (1),
43`ibid-objgraph` (1),
44http://ibid.omnia.za.net/
4045
=== renamed file 'man/ibid-objgraph.1' => 'man/ibid-objgraph.1.md'
--- man/ibid-objgraph.1 2010-03-08 20:27:21 +0000
+++ man/ibid-objgraph.1.md 2010-03-20 10:39:26 +0000
@@ -1,50 +1,51 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID-OBJGRAPH(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID-OBJGRAPH "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid-objgraph \- Memory usage graph generation utility for Ibid5# NAME
6.SH SYNOPSIS6
7.B ibid-objgraph7ibid-objgraph - Memory usage graph generation utility for Ibid
8.RB [ options ...]8
9.IR "logfile type" ...9# SYNOPSIS
10.br10
11.B ibid-objgraph11**ibid-objgraph** [*options*...] *logfile* *type*...
12.BI "-e " TIME12**ibid-objgraph** [*options*...] **-e** *TIME* *logfile*
13.RB [ options ...]13**ibid-objgraph** **-h**
14.I logfile14
15.br15# DESCRIPTION
16.B ibid-objgraph -h16
17.SH DESCRIPTION
18This utility is for graphing object-type usage from an Ibid bot17This utility is for graphing object-type usage from an Ibid bot
19configured to log such usage.18configured to log such usage.
20.P19
21Matplotlib is required for graphing.20Matplotlib is required for graphing.
22.SH OPTIONS21
23.TP22# OPTIONS
24\fB\-e\fR \fITIME\fR, \fB\-\-examine\fR=\fITIME\fR23
25Examine the object usage at time \fITIME\fR, and print a sorted list of type24**-e** *TIME*, **-\-examine**=*TIME*
26statistics at that time.25: Examine the object usage at time *TIME*, and print a sorted list of type
27This function can be useful in determining which types to graph, when chasing26 statistics at that time.
28down a detected leak.27 This function can be useful in determining which types to graph, when
29.TP28 chasing down a detected leak.
30\fB\-o\fR \fIFILE\fR, \fB\-\-output\fR=\fIFILE\fR29
31Output to \fIFILE\fR instead of displaying interactive graph GUI.30**-o** *FILE*, **-\-output**=*FILE*
32\fIFILE\fR can be any format supported by Matplotlib, detected by the file31: Output to *FILE* instead of displaying interactive graph GUI.
33extension.32 *FILE* can be any format supported by Matplotlib, detected by the file
34.TP33 extension.
35\fB\-d\fR \fIDPI\fR, \fB\-\-dpi\fR=\fIDPI\fR34
36When outputting in raster formats, use \fIDPI\fR output DPI.35**-d** *DPI*, **-\-dpi**=*DPI*
37.TP36: When outputting in raster formats, use *DPI* output DPI.
38\fB\-h\fR, \fB\-\-help\fR37
39Show a help message and exit.38**-h**, **-\-help**
40.SH FILES39 Show a help message and exit.
41.TP40
42.I logfile41# FILES
43A log file generated by loading the \fBmemory\fR plugin into Ibid, which will42
44periodically log object usage.43*logfile*
45It can be gzip compressed, if the filename ends in \fB.gz\fR.44: A log file generated by loading the **memory** plugin into Ibid, which will
46.SH SEE ALSO45 periodically log object usage.
47.BR ibid (1),46 It can be gzip compressed, if the filename ends in **.gz**.
48.BR ibid-memgraph (1),47
49.UR http://ibid.omnia.za.net/48# SEE ALSO
50.BR http://ibid.omnia.za.net/49`ibid` (1),
50`ibid-memgraph` (1),
51http://ibid.omnia.za.net/
5152
=== renamed file 'man/ibid-pb-client.1' => 'man/ibid-pb-client.1.md'
--- man/ibid-pb-client.1 2010-03-08 20:27:21 +0000
+++ man/ibid-pb-client.1.md 2010-03-20 10:39:26 +0000
@@ -1,54 +1,50 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID-PB-CLIENT(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID-PB-CLIENT "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid-pb-client \- RPC Client for Ibid5# NAME
6.SH SYNOPSIS6
7.B ibid-pb-client7ibid-pb-client - RPC Client for Ibid
8.RI [ options ...]8
9.BI message " message"9# SYNOPSIS
10.br10
11.B ibid-pb-client11**ibid-pb-client** [*options*...] **message** *message*
12.RI [ options ...]12**ibid-pb-client** [*options*...] **plugin** *feature* *method* [*parameter*...]
13.BI plugin " feature method"13**ibid-pb-client** **-h**
14.RI [ parameter ...]14
15.br15# DESCRIPTION
16.B ibid-pb-client -h16
17.SH DESCRIPTION
18This utility is for passing events to a running Ibid bot, or executing17This utility is for passing events to a running Ibid bot, or executing
19RPC-exposed functions remotely.18RPC-exposed functions remotely.
20.P19
21It communicates with the \fBpb\fR source on the Ibid.20It communicates with the **pb** source on the Ibid.
22.P21
23.I message22*message* is a text message as could be sent to the bot by an IM source.
24is a text message as could be sent to the bot by an IM source.
25The message is processed normally by the bot.23The message is processed normally by the bot.
26.P24
27.I feature25*feature* is the name of the feature to invoke exposed method **method** on,
28is the name of the feature to invoke exposed method \fImethod\fR on,
29directly.26directly.
30.IR parameter s27*parameter*s are passed directly to the method.
31are passed directly to the method.28They can be specified positionally or by key, using the same syntax as Python:
32They can be specified positionally or by key, using the same syntax as29_key_**=**_value_.
33Python:
34.IR key = value .
35They may be encoded in JSON, if not valid JSON they will be treated as30They may be encoded in JSON, if not valid JSON they will be treated as
36strings.31strings.
37.P32
38The output is a JSON-encoded response.33The output is a JSON-encoded response.
39.SH OPTIONS34
40.TP35# OPTIONS
41\fB\-s\fR \fIHOSTNAME\fR, \fB\-\-server\fR=\fISERVER\fR36
42Connect to the Ibid running on \fISERVER\fR, by default it connects to37**-s** *SERVER*, **-\-server**=*SERVER*
43\fIlocalhost\fR.38: Connect to the Ibid running on *SERVER*, by default it connects to
44.TP39 *localhost*.
45\fB\-p\fR \fIFILE\fR, \fB\-\-port\fR=\fIPORT\fR40
46Connect to the \fBpb\fR source running on port \fIPORT\fR, by default41**-p** *PORT*, **-\-port**=*PORT*
478789.42: Connect to the **pb** source running on port *PORT*, by default 8789.
48.TP43
49\fB\-h\fR, \fB\-\-help\fR44**-h**, **-\-help**
50Show a help message and exit.45: Show a help message and exit.
51.SH SEE ALSO46
52.BR ibid (1),47# SEE ALSO
53.UR http://ibid.omnia.za.net/48
54.BR http://ibid.omnia.za.net/49`ibid` (1),
50http://ibid.omnia.za.net/
5551
=== renamed file 'man/ibid-plugin.1' => 'man/ibid-plugin.1.md'
--- man/ibid-plugin.1 2010-03-08 20:27:21 +0000
+++ man/ibid-plugin.1.md 2010-03-20 10:39:26 +0000
@@ -1,71 +1,71 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID-PLUGIN(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID-PLUGIN "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5# NAME
6
5ibid-plugin \- Plugin testing developer environment for Ibid7ibid-plugin \- Plugin testing developer environment for Ibid
6.SH SYNOPSIS8
7.B ibid-plugin9# SYNOPSIS
8.RI [ options ...]10
9.RI [ plugin\fR[\fB- ]| plugin\fB.\fIProcessor [\fB-\fR]...]11**ibid-plugin** [*options*...] [*plugin*[**-**]|_plugin_**.**_Processor_[**-**]...]
10.SH DESCRIPTION12
11This utility is for testing Ibid plugins without the full bot13# DESCRIPTION
12environment.14
15This utility is for testing Ibid plugins without the full bot environment.
13This means testing can be performed offline and without loading all the16This means testing can be performed offline and without loading all the
14available plugins.17available plugins.
15.P18
16This should be run in a configured Ibid bot directory.19This should be run in a configured Ibid bot directory.
17.P20
18All the listed plugins and Processors will be loaded on start-up.21All the listed plugins and Processors will be loaded on start-up.
19Naming a plugin loads the complete plugin.22Naming a plugin loads the complete plugin.
20Suffixing a \fB-\fR to the name, ignores that plugin or Processor23Suffixing a **-** to the name, ignores that plugin or Processor instead of
21instead of loading it.24loading it.
22.SH OPTIONS25
23.TP26# OPTIONS
24\fB\-c\fR, \fB\-\-configured\fR27
25Load all configured plugins, instead of only the core and requested28**-c**, **-\-configured**
26plugins.29: Load all configured plugins, instead of only the core and requested
27.TP30 plugins.
28\fB\-o\fR, \fB\-\-only\fR31
29Don't load the Ibid core plugins, only the plugins requested.32**-o**, **-\-only**
30Note that without the \fBcore\fR plugin to pre- and post-process events,33: Don't load the Ibid core plugins, only the plugins requested.
31most other plugins won't function correctly.34 Note that without the **core** plugin to pre- and post-process events, most
32.TP35 other plugins won't function correctly.
33\fB\-p\fR, \fB\-\-public\fR36
34By default, \fBibid-plugin\fR emulates a private conversation with the37**-p**, **-\-public**
35bot.38: By default, **ibid-plugin** emulates a private conversation with the bot.
36With this option, the conversation is considered to be public and the39 With this option, the conversation is considered to be public and the
37bot will have to be addressed to provoke a response.40 bot will have to be addressed to provoke a response.
38.TP41
39\fB\-v\fR, \fB\-\-verbose\fR42**-v**, **-\-verbose**
40Increase verbosity.43: Increase verbosity.
41The final form of each \fIEvent\fR object will be displayed before any responses.44 The final form of each *Event* object will be displayed before any
42.TP45 responses.
43\fB\-h\fR, \fB\-\-help\fR46
47**-h**, **-\-help**
44Show a help message and exit.48Show a help message and exit.
45.SH FILES49
46.TP50# FILES
47.I ibid.ini51
48Locates the database to act upon by looking for the \fB[databases].ibid\fR value52*ibid.ini*
49in the bot configuration file in the current directory.53: Locates the database to act upon by looking for the
50.SH BUGS54 [**databases**].**ibid** value in the bot configuration file in the current
51\fBibid-plugin\fR doesn't emulate a complete Ibid environment, and will55 directory.
52ignore all of the following:56
53.TP57# BUGS
54*58
55Delayed and periodically executed functions.59**ibid-plugin** doesn't emulate a complete Ibid environment, and will ignore
56.TP60all of the following:
57*61
58Messages to alternate sources.62* Delayed and periodically executed functions.
59.TP63* Messages to alternate sources.
60*64* Messages directly dispatched, rather than added to responses.
61Messages directly dispatched, rather than added to responses.65* Permissions. All permissions are granted to the user.
62.TP66
63*67# SEE ALSO
64Permissions.68`ibid` (1),
65All permissions are granted to the user.69`ibid.ini` (5),
66.SH SEE ALSO70`ibid-setup` (1),
67.BR ibid (1),71http://ibid.omnia.za.net/
68.BR ibid.ini (5),
69.BR ibid-setup (1),
70.UR http://ibid.omnia.za.net/
71.BR http://ibid.omnia.za.net/
7272
=== renamed file 'man/ibid-setup.1' => 'man/ibid-setup.1.md'
--- man/ibid-setup.1 2010-03-08 20:27:21 +0000
+++ man/ibid-setup.1.md 2010-03-20 10:39:26 +0000
@@ -1,33 +1,36 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID-SETUP(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID-SETUP "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid-setup \- Create a basic configuration file and database for an Ibid5# NAME
6bot6
7.SH SYNOPSIS7ibid-setup - Create a basic configuration file and database for an Ibid bot
8.B ibid-setup8
9.SH DESCRIPTION9# SYNOPSIS
10This program sets up everything that a new Ibid bot needs before it can10
11run.11**ibid-setup**
12
13# DESCRIPTION
14
15This program sets up everything that a new Ibid bot needs before it can run.
12It asks a series of questions about the new bot, and writes out a basic16It asks a series of questions about the new bot, and writes out a basic
13configuration file -17configuration file - `ibid.ini` (5) - to the current directory.
14.BR ibid.ini (5)18It also creates a database for the bot, by default a SQLite database in the
15- to the current directory.19current directory.
16It also creates a database for the bot, by default a SQLite database in20
17the current directory.21This should be run in the directory which will become the new Ibid bot's base.
18.P22
19This should be run in the directory which will become the new Ibid bot's23Should there be an existing **ibid.ini** in the current directory, it will be
20base.24used, and the only questions asked will be for adding an administrative user.
21.P25These can safely be skipped with a **^C**.
22Should there be an existing \fBibid.ini\fR in the current directory, it26
23will be used, and the only questions asked will be for adding an27# FILES
24administrative user. These can safely be skipped with a \fB^C\fR.28
25.SH FILES29*ibid.ini*
26.TP30: The Ibid bot's configuration file, will be created if it doesn't exist.
27.I ibid.ini31
28The Ibid bot's configuration file, will be created if it doesn't exist.32# SEE ALSO
29.SH SEE ALSO33
30.BR ibid (1),34`ibid` (1),
31.BR ibid.ini (5),35`ibid.ini` (5),
32.UR http://ibid.omnia.za.net/36http://ibid.omnia.za.net/
33.BR http://ibid.omnia.za.net/
3437
=== renamed file 'man/ibid.1' => 'man/ibid.1.md'
--- man/ibid.1 2010-03-08 20:27:21 +0000
+++ man/ibid.1.md 2010-03-20 10:39:26 +0000
@@ -1,32 +1,41 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID(1) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID "1" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid \- Run an Ibid bot5# NAME
6.SH SYNOPSIS6
7.B ibid7ibid - Run an Ibid bot
8.RI [ config-file ]8
9.SH DESCRIPTION9# SYNOPSIS
10
11**ibid** [*config-file*]
12
13# DESCRIPTION
14
10This runs an Ibid bot in the foreground.15This runs an Ibid bot in the foreground.
11.P16
12There should there be an existing \fBibid.ini\fR (created by17There should there be an existing **ibid.ini** (created by
13.BR ibid-setup (1))18`ibid-setup` (1))
14in the current directory or one should be provided on the command line.19in the current directory or one should be provided on the command line.
15.P20
16Where possible, you should run \fBtwistd \-n ibid\fR instead of this21Where possible, you should run **twistd -n ibid** instead of this
17program, as otherwise some classes of errors go unreported.22program, as otherwise some classes of errors go unreported.
18.RB "See " BUGS .23See **BUGS**.
19.SH BUGS24
25# BUGS
26
20Exceptions in twisted callbacks can go unnoticed in this program.27Exceptions in twisted callbacks can go unnoticed in this program.
21That has no harmful effects, but the developers may miss out on some28That has no harmful effects, but the developers may miss out on some
22good bug reports.29good bug reports.
23.SH FILES30
24.TP31# FILES
25.I ibid.ini32
26The Ibid bot's configuration file, will be created if it doesn't exist.33*ibid.ini*
27.SH SEE ALSO34: The Ibid bot's configuration file, will be created if it doesn't exist.
28.BR ibid.ini (5),35
29.BR ibid-setup (1),36# SEE ALSO
30.BR twistd (1),37
31.UR http://ibid.omnia.za.net/38`ibid.ini` (5),
32.BR http://ibid.omnia.za.net/39`ibid-setup` (1),
40`twistd` (1),
41http://ibid.omnia.za.net/
3342
=== renamed file 'man/ibid.ini.5' => 'man/ibid.ini.5.md'
--- man/ibid.ini.5 2010-03-08 20:27:21 +0000
+++ man/ibid.ini.5.md 2010-03-20 10:39:26 +0000
@@ -1,113 +1,119 @@
1.\" Copyright (c) 2010, Stefano Rivera1% IBID.INI(5) Ibid Multi-protocol Bot | Ibid 0.1
2.\" Released under terms of the MIT/X/Expat Licence. See COPYING for details.2% Stefano Rivera
3.TH IBID.INI "5" "March 2010" "Ibid 0.1" "Ibid - Multi-protocol Bot"3% March 2010
4.SH NAME4
5ibid.ini \- Configuration file for Ibid5# NAME
6.SH DESCRIPTION6
7ibid.ini - Configuration file for Ibid
8
9# DESCRIPTION
10
7ibid.ini contains all the configuration for an Ibid bot.11ibid.ini contains all the configuration for an Ibid bot.
8.P12
9A complete description of the contents of this file is out of the scope of this13A complete description of the contents of this file is out of the scope of this
10manpage.14manpage.
11For more details see the Ibid documentation:15For more details see the Ibid documentation: http://ibid.omnia.za.net/docs/
12.UR http://ibid.omnia.za.net/docs/16
13.BR http://ibid.omnia.za.net/docs/17Lines beginning with **#** are considered to be comments and ignored.
14.P18To use a **#** symbol in an option (e.g. an IRC channel name), quote the
15Lines beginning with \fB#\fR are considered to be comments and ignored.19option with double-quotes, e.g. **channels**=**"#ibid",**
16To use a \fB#\fR symbol in an option (e.g. an IRC channel name), quote the20
17option with double-quotes, e.g.
18.BR channels = """#ibid"","
19.P
20This file will be written to by the bot when configuration settings are21This file will be written to by the bot when configuration settings are
21altered online.22altered online.
22It can also be edited manually and a running bot told to23It can also be edited manually and a running bot told to
23\fB"reload config"\fR.24**"reload config"**.
24Manual edits and comments will be preserved when the bot modifies its25Manual edits and comments will be preserved when the bot modifies its
25own configuration, provided that they have not been edited since bot26own configuration, provided that they have not been edited since bot
26start-up or the last config reload.27start-up or the last config reload.
27.SH SECTIONS28
28.SS auth29# SECTIONS
30
31## auth
32
29Settings related to permissions and authentication.33Settings related to permissions and authentication.
30Permissions listed in \fBauth.permissions\fR are granted to all users unless34Permissions listed in **auth**.**permissions** are granted to all users unless
31revoked by source or account.35revoked by source or account.
32.SS sources36
37## sources
38
33Sources are Ibid connections to an IM service.39Sources are Ibid connections to an IM service.
34They range from IRC networks to the bot's built-in HTTP server.40They range from IRC networks to the bot's built-in HTTP server.
35.P41
36Each source is configured in a section named after the source.42Each source is configured in a section named after the source.
37The source name will define the driver that the source should use, unless a43The source name will define the driver that the source should use, unless a
38\fBtype\fR option is provided.44**type** option is provided.
39.P45
40Sources can be disabled by setting46Sources can be disabled by setting
41.BR disabled = True .47**disabled**=**True**.
42.SS plugins48
49## plugins
50
43Plugin configuration.51Plugin configuration.
44Each plugin is configured within a section named after the plugin.52Each plugin is configured within a section named after the plugin.
45.P53
46.TP54**cachedir**
47.B cachedir55: The directory that temporary files (such as downloaded data), useful to be
48The directory that temporary files (such as downloaded data), useful to be the56 the bot but expendable, is stored in.
49bot but expendable, is stored in.57
50.TP58**core**.**autoload**
51.B core.autoload59: If **True**, all plugins not explicitly ignored will be loaded.
52If \fBTrue\fR, all plugins not explicitly ignored will be loaded.60 (Note that some plugins mark themselves as non-auto-loadable).
53(Note that some plugins mark themselves as non-auto-loadable).61 Defaults to **True**.
54Defaults to \fBTrue\fR.62
55.TP63**core**.**load**
56.B core.load64: The list of plugins (or **plugin**.**Processor**s) to load.
57The list of plugins (or \fBplugin\fR.\fBProcessor\fRs) to load.65
58.TP66**core**.**noload**
59.B core.noload67: The list of plugins (or **plugin**.**Processor**s) to ignore and not load.
60The list of plugins (or \fBplugin\fR.\fBProcessor\fRs) to ignore and not load.68
61.TP69**core**.**names**
62.B core.names70: The names that the bot should respond to.
63The names that the bot should respond to.71
64.TP72**core**.**ignore**
65.B core.ignore73: Nicks that the bot should completely ignore (e.g. other bots).
66Nicks that the bot should completely ignore (e.g. other bots).74
67.SH EXAMPLE75# EXAMPLE
68.nf76
69botname = joebot77 botname = joebot
70logging = logging.ini78 logging = logging.ini
7179
72[auth]80 [auth]
73 methods = password,81 methods = password,
74 timeout = 30082 timeout = 300
75 permissions = +factoid, +karma, +sendmemo, +recvmemo, +feeds, +publicresponse83 permissions = +factoid, +karma, +sendmemo, +recvmemo, +feeds, +publicresponse
7684
77[sources]85 [sources]
78 [[telnet]]86 [[telnet]]
79 [[timer]]87 [[timer]]
80 [[http]]88 [[http]]
81 url = http://joebot.example.com89 url = http://joebot.example.com
82 [[smtp]]90 [[smtp]]
83 [[pb]]91 [[pb]]
84 [[atrum]]92 [[atrum]]
85 channels = "#ibid",93 channels = "#ibid",
86 nick = $botname94 nick = $botname
87 type = irc95 type = irc
88 auth = hostmask, nickserv96 auth = hostmask, nickserv
89 server = irc.atrum.org97 server = irc.atrum.org
9098
91[plugins]99 [plugins]
92 cachedir = /tmp/ibid100 cachedir = /tmp/ibid
93 [[core]]101 [[core]]
94 names = $botname, bot, ant102 names = $botname, bot, ant
95 ignore = ,103 ignore = ,
96104
97[databases]105 [databases]
98 ibid = sqlite:///ibid.db106 ibid = sqlite:///ibid.db
99.fi107
100.SH FILES108# FILES
101.TP109
102.I logging.ini110*logging*.*ini*
103A standard Python \fBlogging.config\fR configuration file describing111: A standard Python **logging**.**config** configuration file describing
104loggers, handlers, and formatters for log messages.112 loggers, handlers, and formatters for log messages.
105See113 See http://docs.python.org/library/logging.html
106.UR http://docs.python.org/library/logging.html114
107.BR http://docs.python.org/library/logging.html115# SEE ALSO
108.SH SEE ALSO116`ibid` (1),
109.BR ibid (1),117`ibid.ini` (5),
110.BR ibid.ini (5),118`twistd` (1),
111.BR twistd (1),119http://ibid.omnia.za.net/
112.UR http://ibid.omnia.za.net/
113.BR http://ibid.omnia.za.net/

Subscribers

People subscribed via source and target branches