Skip to content

Commit 4e40512

Browse files
committed
First example of a documentation page + makefile to build the doc
1 parent aa67388 commit 4e40512

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ uninstall:
3434
rm -rf $(DESTDIR)$(DATADIR)/poezio
3535
rm -rf $(DESTDIR)$(MANDIR)/man1/poezio.1
3636

37+
doc:
38+
find doc -name \*.txt -exec asciidoc {} \;
3739
pot:
3840
xgettext src/*.py --from-code=utf-8 --keyword=_ -o locale/poezio.pot
41+
42+
.PHONY : doc

README

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ You need python 3.0 (and the associated devel package, to build C modules)
2828
or higher, and the SleekXMPP python library.
2929
In the developpement version, you’ll need this fork of SleekXMPP
3030
http://github.com/louiz/SleekXMPP.
31+
Additionally, you’ll need asciidoc to build the html documentation pages.
32+
You can read the documentation using the .txt files, as well, if you don’t
33+
have asciidoc, or read it on the web.
3134

3235
The simplest way to have up-to-date dependencies and to be able to test
3336
this developpement version is to use the update.sh script that downloads

doc/poezio.txt

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
Poezio documentation
2+
====================
3+
4+
This page is the documentation for poezio.
5+
6+
Poezio is an XMPP console client mostly written in python and a little
7+
bit in C.
8+
9+
It uses curses to draw its user interface.
10+
11+
It has been written to create an XMPP client that could very easily be used by
12+
any IRC user. Its interface tries to be like the ones of famous clients such
13+
as irssi or weechat.
14+
15+
:numbered:
16+
== Usage ==
17+
18+
Poezio is composed of tabs which can be of various types. Each tab type has
19+
a distinct interface, list of commands and list of key shortcuts, in addition
20+
to the global commands and key shortcuts.
21+
22+
23+
=== Commands ===
24+
25+
Commands start with the */* character and can take a list of any number
26+
of arguments, separated by spaces. If an argument should contain a space,
27+
you can use the *"* character to surround this argument.
28+
29+
.The command nick with only one argument
30+
==========================================
31+
/nick "my new nick"
32+
==========================================
33+
34+
.The command status with two arguments
35+
==========================================
36+
/status away "on vacation"
37+
==========================================
38+
39+
.Note
40+
The character *'* cannot be used instead of *"*.
41+
42+
43+
To know the list of all available commands, use the *help* command with no
44+
argument. To know more about the command (what it does and how to use it),
45+
use the *help* command and pass the command name as its first argument.
46+
47+
The list of all global commands is as follow:
48+
49+
[horizontal]
50+
*help*:: [command_name] +
51+
Displays the list of all available commands in the current tab, or displays
52+
the usage of the given command.
53+
*message*:: <jid> [message] +
54+
Open a conversation with the specified JID, and send a message to it,
55+
if specified.
56+
57+
58+
59+
60+
61+
.Get information on the status command
62+
==========================================
63+
/help status
64+
==========================================
65+
66+
67+
=== Tabs ===
68+
This section lists and describes all the tab types.
69+
70+
71+
==== Roster Tab ====
72+
This is the first tab that you will see when starting poezio.
73+
74+
It contains your roster
75+
76+
[glossary]
77+
== Glossary ==
78+
79+
This glossary explains some terms that are used in this documentation.
80+
81+
[glossary]
82+
Roster::
83+
The list of contacts, sorted by groups, status, or anything the client wishes.

0 commit comments

Comments
 (0)