changeset 3:fa68715e621f

- Add more templates as sources to be shown in the IDE, - Add about and template for download
author David Demelier <markand@malikania.fr>
date Mon, 08 Feb 2016 13:21:08 +0100
parents 31a29a1e66d7
children efcb95802d3a
files CMakeLists.txt about.md css/irccd.css documentation.md download.md index.md js/joke.js templates/template.html
diffstat 8 files changed, 111 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Sun Feb 07 11:40:25 2016 +0100
+++ b/CMakeLists.txt	Mon Feb 08 13:21:08 2016 +0100
@@ -27,6 +27,8 @@
 set(TEMPLATE ${irccd-web_SOURCE_DIR}/templates/template.html)
 set(OUTPUT ${CMAKE_BINARY_DIR}/html)
 set(SOURCE ${CMAKE_SOURCE_DIR})
+set(JS ${CMAKE_SOURCE_DIR}/js/joke.js)
+set(CSS ${CMAKE_SOURCE_DIR}/css/irccd.css)
 
 # Prepare output
 file(MAKE_DIRECTORY ${OUTPUT})
@@ -34,7 +36,7 @@
 file(COPY ${CMAKE_SOURCE_DIR}/js DESTINATION ${OUTPUT})
 
 # Define the files to generate.
-set(FILES index documentation support)
+set(FILES about index documentation download support)
 
 # Arguments for specific files.
 set(index_VARS home:yes)
@@ -56,7 +58,7 @@
 
 add_custom_target(
 	files
-	SOURCES ${SOURCES}
+	SOURCES ${SOURCES} ${TEMPLATE} ${CSS} ${JS}
 	DEPENDS ${OUTPUTS}
 )
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/about.md	Mon Feb 08 13:21:08 2016 +0100
@@ -0,0 +1,31 @@
+---
+title: "IRC Client Daemon - About"
+---
+
+<div class="page-header">
+ <h1>About</h1>
+</div>
+
+## History
+
+If you already used irccd in the past, you can skip this section.
+
+At the beginning irccd was a very simple project used internally to record our Mercurial commits over IRC. So I started
+writing `irccd` and it's dedicated tool `irccdctl` to be able to send the commit our messages over our IRC
+channel.
+
+At that time, I was a huge fan of the [Lua][] programming language so I decided to integrate it within irccd to create
+plugins with an API exported by irccd, the whole API was powerful enough to create funny plugins. Then few plugins
+appeared: history, logger, roulette, ask, antiflood, badwords.
+
+Then, when irccd was at a stable stage, I released its first 1.0.0 version the 2013-09-13.
+
+After that, I experienced few rants about Lua, I decided to move away from it. I will not explain here the things I
+disliked about Lua. After two years of intensive development, irccd 2.0 was shipped with a JavaScript API instead of
+Lua.
+
+Irccd 2.0 is not a complete rewrite, major parts of the code are kept unchanged but because lots of things have changed
+I almost consider it as a new project and decided to reset its development repository to start a clean, fresh new work
+with less errors.
+
+[Lua]: http://lua.org
--- a/css/irccd.css	Sun Feb 07 11:40:25 2016 +0100
+++ b/css/irccd.css	Mon Feb 08 13:21:08 2016 +0100
@@ -1,8 +1,59 @@
+/*
+ * irccd.css -- style for irccd website
+ */
+
+/*
+
+.color-primary-0 { color: #3799AB }
+.color-primary-1 { color: #8BD0DD }
+.color-primary-2 { color: #5AB3C4 }
+.color-primary-3 { color: #1C869A }
+.color-primary-4 { color: #096C7E }
+
+*/
+
 body {
-	padding-top: 50px;
+	padding-top: 70px;
 	padding-bottom: 20px;
 }
 
 pre {
 	background-color: #ffffff;
 }
+
+p {
+	color: rgba(0, 0, 0, 0.8);
+}
+
+.jumbotron {
+	background-color: #F5F5F5;
+}
+
+.navbar {
+	background-color: #5AB3C4;
+	border-color: #3799AB;
+}
+
+.navbar .navbar-toggle {
+	border-color: #3799AB;
+}
+
+.navbar .navbar-brand {
+	color: rgba(255, 255, 255, 0.9);
+}
+
+.navbar .navbar-text {
+	color: rgba(255, 255, 255, 0.9);
+}
+
+.navbar .navbar-link {
+	color: rgba(255, 255, 255, 0.9);
+}
+
+.navbar .navbar-nav>li>a {
+	color: rgba(255, 255, 255, 0.9);
+}
+
+.navbar .navbar-collapse {
+	border-color: #3799AB;
+}
--- a/documentation.md	Sun Feb 07 11:40:25 2016 +0100
+++ b/documentation.md	Mon Feb 08 13:21:08 2016 +0100
@@ -3,5 +3,5 @@
 ---
 
 <div class="page-header">
- <h1>Support</h1>
+ <h1>Documentation</h1>
 </div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/download.md	Mon Feb 08 13:21:08 2016 +0100
@@ -0,0 +1,8 @@
+---
+title: "IRC Client Daemon - Download"
+---
+
+<div class="page-header">
+ <h1>Download</h1>
+</div>
+
--- a/index.md	Sun Feb 07 11:40:25 2016 +0100
+++ b/index.md	Mon Feb 08 13:21:08 2016 +0100
@@ -5,9 +5,11 @@
 <!-- Example row of columns -->
 <div class="row">
  <div class="col-md-6">
-  <h2>Heading</h2>
-  <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
-  <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
+  <h2>Powerful</h2>
+  <p>Irccd can connect to multiple servers with different identities within the same instance.</p>
+  <p>It is also possible to control the bot using its dedicated tool `irccdctl` easily.</p>
+  <p><strong>Example:</strong> <code>irccdctl server-message localhost #staff "Hello world!"</code></p>
+  <p><a class="btn btn-default" href="#" role="button">View features &raquo;</a></p>
  </div>
  <div class="col-md-6">
   <h2>Extensible</h2>
@@ -21,3 +23,12 @@
   <p><a class="btn btn-default" href="#" role="button">View JavaScript API</a></p>
  </div>
 </div>
+<div class="row">
+ <div class="col-md-6">
+  <h2>Easy</h2>
+  <p>Installing, configuring and running irccd is very easy and does not require a Ph.D.</p>
+  <p><a class="btn btn-default" href="#" role="button">View documentation now &raquo;</a></p>
+ </div>
+ <div class="col-md-6">
+ </div>
+</div>
--- a/js/joke.js	Sun Feb 07 11:40:25 2016 +0100
+++ b/js/joke.js	Mon Feb 08 13:21:08 2016 +0100
@@ -1,7 +1,6 @@
 var jokes = [
 	"Where can you find a bot? where you placed it.",
 	"There was a bot which met and other bot and welcomed each other, stack overflow happened.",
-	"There is a bot which meets an other bot and say \"hi!\" the other bot responded \"oh my god, a speaking bot!\"",
 	"I cannot bot because of systemd.",
 	"I'm tired because I don't have enough bottery.",
 	"The IRC bot done right!",
--- a/templates/template.html	Sun Feb 07 11:40:25 2016 +0100
+++ b/templates/template.html	Mon Feb 08 13:21:08 2016 +0100
@@ -42,6 +42,7 @@
           <ul class="nav navbar-nav">
             <li><a href="$baseurl$/about.html">About</a></li>
             <li><a href="$baseurl$/documentation.html">Documentation</a></li>
+            <li><a href="$baseurl$/download.html">Download</a></li>
             <li><a href="$baseurl$/contribute.html">Contribute</a></li>
             <li><a href="$baseurl$/support.html">Support</a></li>
           </ul>