summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-09 15:54:16 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-09 15:54:16 (GMT)
commit61abce0b2b0b639d1917857c0f7d148479b6701a (patch)
tree165e35828879a7c43ea61434a230f45507709585
parent7b75b5f480824f8a42e6a0f886272b7eb51db9ae (diff)
downloadswift-61abce0b2b0b639d1917857c0f7d148479b6701a.zip
swift-61abce0b2b0b639d1917857c0f7d148479b6701a.tar.bz2
Some documentation tweaks.
-rw-r--r--BuildTools/DocBook/Stylesheets/html/docbook.xsl1
-rw-r--r--Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp23
-rw-r--r--Documentation/SwiftenDevelopersGuide/documentation.css40
3 files changed, 54 insertions, 10 deletions
diff --git a/BuildTools/DocBook/Stylesheets/html/docbook.xsl b/BuildTools/DocBook/Stylesheets/html/docbook.xsl
index c97545e..657829c 100644
--- a/BuildTools/DocBook/Stylesheets/html/docbook.xsl
+++ b/BuildTools/DocBook/Stylesheets/html/docbook.xsl
@@ -7,6 +7,7 @@
<xsl:include href="../common/inline.xsl" />
<xsl:output method="html" encoding="UTF-8" indent="no"/>
+ <xsl:param name="html.stylesheet" select="'documentation.css'"/>
<xsl:param name="use.extensions" select="0"/>
<xsl:param name="section.autolabel" select="'1'"/>
diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp
index a03c3db..f332fc8 100644
--- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp
+++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp
@@ -14,16 +14,8 @@ using namespace boost;
Client* client;
-void handleConnected() {
- std::cout << "Connected" << std::endl;
-}
-
-void handleMessageReceived(Message::ref message) {
- // Echo back the incoming message
- message->setTo(message->getFrom());
- message->setFrom(JID());
- client->sendMessage(message);
-}
+void handleConnected();
+void handleMessageReceived(Message::ref message);
int main(int, char*) {
SimpleEventLoop eventLoop;
@@ -38,3 +30,14 @@ int main(int, char*) {
delete client;
return 0;
}
+
+void handleConnected() {
+ std::cout << "Connected" << std::endl;
+}
+
+void handleMessageReceived(Message::ref message) {
+ // Echo back the incoming message
+ message->setTo(message->getFrom());
+ message->setFrom(JID());
+ client->sendMessage(message);
+}
diff --git a/Documentation/SwiftenDevelopersGuide/documentation.css b/Documentation/SwiftenDevelopersGuide/documentation.css
new file mode 100644
index 0000000..937a6ac
--- /dev/null
+++ b/Documentation/SwiftenDevelopersGuide/documentation.css
@@ -0,0 +1,40 @@
+html{
+ font-family: "Lucida Grande", "Segoe UI", sans-serif;
+ color: #111;
+ background: #EEE;
+ font-size: 62.5%;
+}
+
+body{
+ width: 640px;
+ float: left;
+ margin: 20px;
+ padding: 10px 30px;
+ font-size: 1.3em;
+ line-height: 1.5em;
+}
+
+a{
+ color: #669;
+}
+
+a:visited{
+ color: #444;
+}
+
+a:hover{
+ color: #000;
+}
+
+pre {
+ background: #EEE;
+ padding: 5px 20px 5px 20px;
+}
+
+p.remark {
+ background: yellow;
+}
+
+div.toc {
+ border-bottom: thin solid #AAA;
+}