# HG changeset patch # User David Demelier # Date 1454934068 -3600 # Node ID fa68715e621fba6adcd470ee2747da71d2ad5e17 # Parent 31a29a1e66d7b9c1df6560507968a2265841b794 - Add more templates as sources to be shown in the IDE, - Add about and template for download diff -r 31a29a1e66d7 -r fa68715e621f CMakeLists.txt --- 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} ) diff -r 31a29a1e66d7 -r fa68715e621f about.md --- /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" +--- + + + +## 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 diff -r 31a29a1e66d7 -r fa68715e621f css/irccd.css --- 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; +} diff -r 31a29a1e66d7 -r fa68715e621f documentation.md --- 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 @@ --- diff -r 31a29a1e66d7 -r fa68715e621f download.md --- /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" +--- + + + diff -r 31a29a1e66d7 -r fa68715e621f index.md --- 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 @@
-

Heading

-

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.

-

View details »

+

Powerful

+

Irccd can connect to multiple servers with different identities within the same instance.

+

It is also possible to control the bot using its dedicated tool `irccdctl` easily.

+

Example: irccdctl server-message localhost #staff "Hello world!"

+

View features »

Extensible

@@ -21,3 +23,12 @@

View JavaScript API

+
+
+

Easy

+

Installing, configuring and running irccd is very easy and does not require a Ph.D.

+

View documentation now »

+
+
+
+
diff -r 31a29a1e66d7 -r fa68715e621f js/joke.js --- 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!", diff -r 31a29a1e66d7 -r fa68715e621f templates/template.html --- 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 @@