瀏覽代碼

Add new website

Julien 'Lta' BALLET 11 年之前
父節點
當前提交
7c0c3a6d72

+ 1 - 1
README.md

@@ -18,7 +18,7 @@ few useless (yet) utils are also provided.
 * Autotools
 * libc with iconv
 * getopt_long
-* GNU asn1 compiler/support library
+* GNU tasn1 compiler/support library
 
 The build dependencies can be installed on Debian(-based) systems using
 

+ 1 - 1
doc/Doxyfile.in

@@ -38,7 +38,7 @@ PROJECT_NAME           = @PACKAGE_NAME@
 # could be handy for archiving the generated documentation or if some version
 # control system is used.
 
-PROJECT_NUMBER         = @BDSM_ABI_VERSION@
+PROJECT_NUMBER         = @BDSM_PACKAGE_VERSION@
 
 # Using the PROJECT_BRIEF tag one can provide an optional one line description
 # for a project that appears at the top of each page and should give viewer a

+ 18 - 0
www/.gitignore

@@ -0,0 +1,18 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile ~/.gitignore_global
+
+# Ignore bundler config
+/.bundle
+
+# Ignore the build directory
+/build
+
+# Ignore cache
+/.sass-cache
+/.cache
+
+# Ignore .DS_store file
+.DS_Store

+ 25 - 0
www/Gemfile

@@ -0,0 +1,25 @@
+# If you have OpenSSL installed, we recommend updating
+# the following line to use "https"
+source 'http://rubygems.org'
+
+gem "middleman", "~>3.3.3"
+
+# Live-reloading plugin
+gem "middleman-livereload", "~> 3.1.0"
+
+# For faster file watcher updates on Windows:
+gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
+
+# Windows does not come with time zone data
+gem "tzinfo-data", platforms: [:mswin, :mingw]
+
+gem "jquery-middleman"
+
+gem 'bootstrap-sass'
+
+gem 'slim'
+
+gem 'font-awesome-middleman'
+
+# Handle GitHub pages deployment
+gem 'middleman-gh-pages'

+ 139 - 0
www/Gemfile.lock

@@ -0,0 +1,139 @@
+GEM
+  remote: http://rubygems.org/
+  specs:
+    activesupport (4.1.4)
+      i18n (~> 0.6, >= 0.6.9)
+      json (~> 1.7, >= 1.7.7)
+      minitest (~> 5.1)
+      thread_safe (~> 0.1)
+      tzinfo (~> 1.1)
+    bootstrap-sass (3.2.0.0)
+      sass (~> 3.2)
+    chunky_png (1.3.1)
+    coffee-script (2.2.0)
+      coffee-script-source
+      execjs
+    coffee-script-source (1.7.0)
+    compass (0.12.6)
+      chunky_png (~> 1.2)
+      fssm (>= 0.2.7)
+      sass (~> 3.2.19)
+    compass-import-once (1.0.4)
+      sass (>= 3.2, < 3.5)
+    em-websocket (0.5.1)
+      eventmachine (>= 0.12.9)
+      http_parser.rb (~> 0.6.0)
+    erubis (2.7.0)
+    eventmachine (1.0.3)
+    execjs (2.2.1)
+    ffi (1.9.3)
+    font-awesome-middleman (4.1.1)
+      middleman-core (>= 3.0.0)
+    fssm (0.2.10)
+    haml (4.0.5)
+      tilt
+    hike (1.2.3)
+    hooks (0.4.0)
+      uber (~> 0.0.4)
+    http_parser.rb (0.6.0)
+    i18n (0.6.9)
+    jquery-middleman (3.0.4)
+      thor (>= 0.14, < 2.0)
+    json (1.8.1)
+    kramdown (1.4.0)
+    listen (1.3.1)
+      rb-fsevent (>= 0.9.3)
+      rb-inotify (>= 0.9)
+      rb-kqueue (>= 0.2)
+    middleman (3.3.3)
+      coffee-script (~> 2.2.0)
+      compass (>= 0.12.4)
+      compass-import-once (= 1.0.4)
+      execjs (~> 2.0)
+      haml (>= 4.0.5)
+      kramdown (~> 1.2)
+      middleman-core (= 3.3.3)
+      middleman-sprockets (>= 3.1.2)
+      sass (>= 3.2.17, < 4.0)
+      uglifier (~> 2.5)
+    middleman-core (3.3.3)
+      activesupport (~> 4.1.0)
+      bundler (~> 1.1)
+      erubis
+      hooks (~> 0.3)
+      i18n (~> 0.6.9)
+      listen (~> 1.1)
+      padrino-helpers (~> 0.12.1)
+      rack (>= 1.4.5, < 2.0)
+      rack-test (~> 0.6.2)
+      thor (>= 0.15.2, < 2.0)
+      tilt (~> 1.4.1, < 2.0)
+    middleman-gh-pages (0.0.3)
+      rake (> 0.9.3)
+    middleman-livereload (3.1.1)
+      em-websocket (>= 0.2.0)
+      middleman-core (>= 3.0.2)
+      multi_json (~> 1.0)
+      rack-livereload
+    middleman-sprockets (3.3.3)
+      middleman-core (>= 3.2)
+      sprockets (~> 2.2)
+      sprockets-helpers (~> 1.1.0)
+      sprockets-sass (~> 1.1.0)
+    minitest (5.3.5)
+    multi_json (1.10.1)
+    padrino-helpers (0.12.2)
+      i18n (~> 0.6, >= 0.6.7)
+      padrino-support (= 0.12.2)
+      tilt (~> 1.4.1)
+    padrino-support (0.12.2)
+      activesupport (>= 3.1)
+    rack (1.5.2)
+    rack-livereload (0.3.15)
+      rack
+    rack-test (0.6.2)
+      rack (>= 1.0)
+    rake (10.3.2)
+    rb-fsevent (0.9.4)
+    rb-inotify (0.9.5)
+      ffi (>= 0.5.0)
+    rb-kqueue (0.2.3)
+      ffi (>= 0.5.0)
+    sass (3.2.19)
+    slim (2.0.3)
+      temple (~> 0.6.6)
+      tilt (>= 1.3.3, < 2.1)
+    sprockets (2.12.1)
+      hike (~> 1.2)
+      multi_json (~> 1.0)
+      rack (~> 1.0)
+      tilt (~> 1.1, != 1.3.0)
+    sprockets-helpers (1.1.0)
+      sprockets (~> 2.0)
+    sprockets-sass (1.1.0)
+      sprockets (~> 2.0)
+      tilt (~> 1.1)
+    temple (0.6.8)
+    thor (0.19.1)
+    thread_safe (0.3.4)
+    tilt (1.4.1)
+    tzinfo (1.2.1)
+      thread_safe (~> 0.1)
+    uber (0.0.7)
+    uglifier (2.5.1)
+      execjs (>= 0.3.0)
+      json (>= 1.8.0)
+
+PLATFORMS
+  ruby
+
+DEPENDENCIES
+  bootstrap-sass
+  font-awesome-middleman
+  jquery-middleman
+  middleman (~> 3.3.3)
+  middleman-gh-pages
+  middleman-livereload (~> 3.1.0)
+  slim
+  tzinfo-data
+  wdm (~> 0.1.0)

+ 1 - 0
www/Rakefile

@@ -0,0 +1 @@
+require 'middleman-gh-pages'

+ 12 - 0
www/doxygen.rb

@@ -0,0 +1,12 @@
+class Doxygen < Middleman::Extension
+  def initialize(app, opts = {}, &block)
+    super
+    app.after_build do |builder|
+      builder.run 'rm -rf build/doc'
+      builder.run 'cd .. && make doc'
+      builder.run 'mv ../doc/html build/doc'
+    end
+  end
+end
+
+::Middleman::Extensions.register(:doxygen, Doxygen)

+ 67 - 0
www/source/c/example1.c

@@ -0,0 +1,67 @@
+/* SMB Connect, login and read file example */
+
+#include <arpa/inet.h>
+#include <stdio.h>
+
+#include <bsdm/bdsm.h>
+
+int main()
+{
+    struct in_addr  addr;
+    smb_session     *session;
+    smb_tid         tid;
+    smb_fd          fd;
+    
+    session = smb_session_new();
+    if (session == NULL)
+        exit(1);
+
+    inet_aton("127.0.0.1", &addr.sin_addr);
+
+    if (smb_session_connect(session, "MYNAME", 
+            addr.sin_addr.s_addr, SMB_TRANSPORT_TCP))
+    {
+        printf("Unable to connect to host\n");
+        exit(2);
+    }
+    
+    smb_session_set_creds(session, "MYNAME", "login", 
+                          "password");
+    if (smb_session_login(session))
+    {
+        if (session->guest)
+            printf("Logged in as GUEST \n");
+        else
+            printf("Successfully logged in\n");
+    }
+    else
+    {
+        printf("Auth failed\n");
+        exit(3);
+    }
+
+    tid = smb_tree_connect(session, "MyShare");
+    if (!tid)
+    {
+        printf("Unable to connect to share\n");
+        exit(4);
+    }
+
+    fd = smb_fopen(session, tid, "\\My\\File");
+    if (!fd)
+    {
+        printf("Unable to open file\n");
+        exit(5);
+    }
+
+    char buffer[512];
+    smb_fread(session, fd, buffer, 512);
+
+    /* Use data */
+
+    smb_fclose(session, fd);
+    smb_tree_disconnect(session, tid);
+    smb_session_destroy(session);
+
+    return(0);
+}

+ 34 - 0
www/source/c/example2.c

@@ -0,0 +1,34 @@
+/* Netbios Discover */
+
+#include <stdio.h>
+
+#include <bsdm/bdsm.h>
+
+int main()
+{
+  netbios_ns        *ns;
+  netbios_ns_entry  *entry;
+
+  ns = netbios_ns_new();
+
+  if (!netbios_ns_discover(ns))
+  {
+    fprintf(stderr, "Error while discovering local network\n");
+    exit(42);
+  }
+
+  for (int i = 0; i < netbios_ns_entry_count(ns); i++)
+  {
+    struct in_addr addr;
+
+    entry       = netbios_ns_entry_at(ns, i);
+    addr.s_addr = netbios_ns_entry_ip(entry);
+
+    printf("Ip: %s, name: %s<%x> \n",
+      inet_ntoa(addr),
+      netbios_ns_entry_name(entry),
+      netbios_ns_entry_type(entry));
+  }
+
+  return (0);
+}

二進制
www/source/images/background.png


二進制
www/source/images/escheresque_ste.png


二進制
www/source/images/middleman.png


+ 225 - 0
www/source/index.html.slim

@@ -0,0 +1,225 @@
+---
+title: "libdsm - minimalist smb client"
+---
+
+
+.container
+  .col-md-6.col-md-offset-6
+    a#top
+    nav.navbar.navbar-inverse.navbar-static-top role="navigation"
+      .container
+        .navbar-header
+          button.navbar-toggle type="button" data-toggle="collapse" data-target=".navbar-collapse"
+            span.sr-only Toggle navigation
+            span.icon-bar
+            span.icon-bar
+            span.icon-bar
+          = link_to "libdsm", "#libdsm", class: "navbar-brand"
+        .collapse.navbar-collapse
+          ul.nav.navbar-nav
+            li= link_to "Features", "#features"
+            li= link_to "Examples", "#examples"
+            li= link_to "Doc", "#doc"
+            li= link_to "Download", "#download"
+            li= link_to "Contact", "#contact"
+
+.container
+  .row
+    .jumbotron
+      .row
+        h1 Looking for a tiny smb library ?
+        h2.pull-right --You're at the right place
+
+  .row
+    .jumbotron
+      .row
+        .col-md-12.text-center
+          a#libdsm
+          h1 
+            | Discover 
+            span.text-muted li
+            | bdsm
+            
+          br
+          br
+      .row
+        .col-md-3.col-xs-6.text-center
+          i.fa.fa-5x.fa-magic
+          h3 Simple
+          p Less than 42 API calls.
+          p Documented
+        .col-md-3.col-xs-6.text-center
+          i.fa.fa-5x.fa-send
+          h3 Lightweight
+          p Less than 150KB stripped
+          p Low memory footprint
+        .col-md-3.col-xs-6.text-center
+          i.fa.fa-5x.fa-laptop
+          h3 Portable 
+          .small.text-muted theorically
+          p Only 2 dependencies
+          p Only POSIX calls
+        .col-md-3.col-xs-6.text-center
+          i.fa.fa-5x.fa-chain-broken
+          h3 Open-Source
+          p Dual LGPL 
+          p and commercial licensing
+        a.gotop.pull-right href="#top"
+          i.fa.fa-angle-up
+          | Top
+          
+
+  .row
+    .well
+      .row
+        a name="features"
+        .col-md-12
+          h1 Features
+        .col-md-4
+          ul
+            li Speaking SMB v1
+            li Read-only client
+            li Discover hosts
+            li List shares
+            li List folders
+            li Read files
+        .col-md-4
+            ul
+              li 
+                | Transport
+                ul
+                  li Netbios over TCP
+                  li Direct-TCP
+              li 
+                | Server compatibility
+                ul
+                  li Samba 3 & 4
+                  li Apple SMBX
+                  li Windows 7 & 8
+                  li older Windows untested
+        .col-md-4
+          ul
+            li 
+              | Netbios 
+              ul
+                li Name lookup
+                li Reverse lookup
+            li 
+              | Supported system
+              ul
+                li Linux
+                li OSX
+            li pkg-config enabled
+            li Unicode path support
+
+      a.gotop.pull-right href="#top"
+        i.fa.fa-angle-up
+        | Top
+
+              
+  .row
+    .well
+      .row
+        a#examples
+        .col-md-12
+          h1.pull-right Examples
+      .row
+        .col-md-6
+          pre.examples
+            code.hljs.c
+              = escape_html File.read('source/c/example1.c')
+        .col-md-6
+          pre.examples
+            code.hljs.c
+              = escape_html File.read('source/c/example2.c')
+        .col-md-12
+          'Click
+          a href="http://github.com/videolabs/libdsm/bin" here
+          '  for complete code of examples.
+      a.gotop.pull-right href="#top"
+        i.fa.fa-angle-up
+        | Top
+
+
+  .row
+    .well
+      .row
+        a#doc
+        .col-md-12.text-center
+          h1 Documentation
+
+      .row
+        .col-md-6
+          h2 Building
+          p 
+            | While the most up-to-date documentation can be found in the README of the project on 
+            a href="https://github.com/videolabs/libdsm/" the github page, 
+            | here's a brief summary
+          h3 Requirements
+          ul
+            li A Unix system with a shell
+            li A C99 compiler (gcc and clang tested)
+            li autotools
+            li libiconv
+            li 
+              a href="http://www.gnu.org/software/libtasn1/" libtasn1
+            li (optionnal) doxygen to generate documentation
+            li (optionnal) getopt_long for example programs
+          h3 Building
+          | Here you just have to roll the traditional
+          pre
+            | $> ./bootstrap
+              $> ./configure --prefix=/usr/local/libdsm
+              $> make && make install
+        .col-md-6
+          h2 API Documentation
+          | You can find a few examples in the bin/ folder of the source code but you'll likely enjoy the
+            extensive API documentation you can fond by clicking the link below:
+          .text-center
+            a.btn.btn-lg.btn-primary href="doc/index.html" Doxygen documentation
+  .row
+    .well
+      .row
+        a#download
+        .col-md-12.text-center
+          h1 Download
+      .row
+        .col-md-4.col-md-offset-1.text-center
+          | You can download one of our stable release as a tarbal by clicking on the following link
+          .text-muted Last stable release : 0.0.2
+          br
+          a.btn.btn-lg.btn-primary href="https://github.com/videolabs/libdsm/releases/"
+            i.fa.fa-download
+            |  View the releases
+
+        .col-md-2.hidden-xs.hidden-sm.text-center
+          i.fa.fa-3x.fa-heart
+        .col-md-4.text-center
+          | If you're more of a warrior or want to contribute, you can find this project's code on GitHub. 
+            As always Pull Requests are always welcome :)
+          .div
+          br
+          a.btn.btn-lg.btn-info href="https://github.com/videolabs/libdsm/"
+            i.fa.fa-github
+            |  Fork me on GitHub
+      a.gotop.pull-right href="#top"
+        i.fa.fa-angle-up
+        | Top
+
+  .row
+    .well
+      .row
+        a#contact
+        .col-md-12.text-center
+          h1 Contact us
+          h3 Having some troubles with libdsm ?
+          | Please browse the existing
+          a href="https://github.com/videolabs/libdsm/issues"  issues on GitHub
+          |  and, if you doesn't find a solution to your problem, you can open a 
+          a href="https://github.com/videolabs/libdsm/issues/new" new one.
+          
+          .small.text-muted
+            | For other concerns, you can  mail 'contact' _AT_ lta _DOT_ io
+      a.gotop.pull-right href="#top"
+        i.fa.fa-angle-up
+        | Top

+ 7 - 0
www/source/javascripts/all.js

@@ -0,0 +1,7 @@
+//
+//= require jquery
+//= require bootstrap
+//= require highlight.pack
+//= require_self
+
+hljs.initHighlightingOnLoad();

文件差異過大導致無法顯示
+ 1 - 0
www/source/javascripts/highlight.pack.js


+ 25 - 0
www/source/layouts/layout.slim

@@ -0,0 +1,25 @@
+doctype html
+
+html
+  head
+    meta charset="utf-8"
+    meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"
+    meta http-equiv="X-UA-Compatible" content="IE=edge"
+    meta name="viewport" content="width=device-width, initial-scale=1"
+
+    title = current_page.data.title || "The Middleman"
+    
+    = stylesheet_link_tag "all"
+    = stylesheet_link_tag "solarized_dark"
+    == yield_content :css
+
+  body
+    = yield 
+
+    .container
+      footer class="footer"
+        p © Julien 'Lta' Ballet & VideoLabs SAS
+    
+    = javascript_include_tag  "all"
+    == yield_content :javascript
+

+ 47 - 0
www/source/stylesheets/all.css.sass

@@ -0,0 +1,47 @@
+
+@import "font-awesome"
+@import "bootstrap"
+
+/* MIXINS */
+
+/* As hex codes */
+
+$color-primary-0: #FF411E	/* Main Primary color */
+$color-primary-1: #FFAFA0
+$color-primary-2: #FF7E67
+$color-primary-3: #B11C00
+$color-primary-4: #6D1100
+
+$color-secondary-1-0: #FFE91E	/* Main Secondary color (1) */
+$color-secondary-1-1: #FFF6A0
+$color-secondary-1-2: #FFF067
+$color-secondary-1-3: #B1A000
+$color-secondary-1-4: #6D6300
+
+$color-secondary-2-0: #6A27C8	/* Main Secondary color (2) */
+$color-secondary-2-1: #8F76B2
+$color-secondary-2-2: #7951B2
+$color-secondary-2-3: #380A78
+$color-secondary-2-4: #22054A
+
+$color-complement-0: #19D157	/* Main Complement color */
+$color-complement-1: #78BF90
+$color-complement-2: #4DBE73
+$color-complement-3: #00822C
+$color-complement-4: #00501B
+
+body
+  background-image: url("/images/escheresque_ste.png")
+
+nav.navbar.navbar-static-top
+  border-radius: 5px
+@media (min-width: $screen-sm-min)
+  nav.navbar.navbar-static-top
+    margin-top: 15px
+
+a.gotop
+  color: $text-color
+
+pre.examples
+  padding: 2px
+  //border: 0px

+ 375 - 0
www/source/stylesheets/normalize.css

@@ -0,0 +1,375 @@
+/*! normalize.css v2.0.1 | MIT License | git.io/normalize */
+
+/* ==========================================================================
+   HTML5 display definitions
+   ========================================================================== */
+
+/*
+ * Corrects `block` display not defined in IE 8/9.
+ */
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+nav,
+section,
+summary {
+    display: block;
+}
+
+/*
+ * Corrects `inline-block` display not defined in IE 8/9.
+ */
+
+audio,
+canvas,
+video {
+    display: inline-block;
+}
+
+/*
+ * Prevents modern browsers from displaying `audio` without controls.
+ * Remove excess height in iOS 5 devices.
+ */
+
+audio:not([controls]) {
+    display: none;
+    height: 0;
+}
+
+/*
+ * Addresses styling for `hidden` attribute not present in IE 8/9.
+ */
+
+[hidden] {
+    display: none;
+}
+
+/* ==========================================================================
+   Base
+   ========================================================================== */
+
+/*
+ * 1. Sets default font family to sans-serif.
+ * 2. Prevents iOS text size adjust after orientation change, without disabling
+ *    user zoom.
+ */
+
+html {
+    font-family: sans-serif; /* 1 */
+    -webkit-text-size-adjust: 100%; /* 2 */
+    -ms-text-size-adjust: 100%; /* 2 */
+}
+
+/*
+ * Removes default margin.
+ */
+
+body {
+    margin: 0;
+}
+
+/* ==========================================================================
+   Links
+   ========================================================================== */
+
+/*
+ * Addresses `outline` inconsistency between Chrome and other browsers.
+ */
+
+a:focus {
+    outline: thin dotted;
+}
+
+/*
+ * Improves readability when focused and also mouse hovered in all browsers.
+ */
+
+a:active,
+a:hover {
+    outline: 0;
+}
+
+/* ==========================================================================
+   Typography
+   ========================================================================== */
+
+/*
+ * Addresses `h1` font sizes within `section` and `article` in Firefox 4+,
+ * Safari 5, and Chrome.
+ */
+
+h1 {
+    font-size: 2em;
+}
+
+/*
+ * Addresses styling not present in IE 8/9, Safari 5, and Chrome.
+ */
+
+abbr[title] {
+    border-bottom: 1px dotted;
+}
+
+/*
+ * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
+ */
+
+b,
+strong {
+    font-weight: bold;
+}
+
+/*
+ * Addresses styling not present in Safari 5 and Chrome.
+ */
+
+dfn {
+    font-style: italic;
+}
+
+/*
+ * Addresses styling not present in IE 8/9.
+ */
+
+mark {
+    background: #ff0;
+    color: #000;
+}
+
+
+/*
+ * Corrects font family set oddly in Safari 5 and Chrome.
+ */
+
+code,
+kbd,
+pre,
+samp {
+    font-family: monospace, serif;
+    font-size: 1em;
+}
+
+/*
+ * Improves readability of pre-formatted text in all browsers.
+ */
+
+pre {
+    white-space: pre;
+    white-space: pre-wrap;
+    word-wrap: break-word;
+}
+
+/*
+ * Sets consistent quote types.
+ */
+
+q {
+    quotes: "\201C" "\201D" "\2018" "\2019";
+}
+
+/*
+ * Addresses inconsistent and variable font size in all browsers.
+ */
+
+small {
+    font-size: 80%;
+}
+
+/*
+ * Prevents `sub` and `sup` affecting `line-height` in all browsers.
+ */
+
+sub,
+sup {
+    font-size: 75%;
+    line-height: 0;
+    position: relative;
+    vertical-align: baseline;
+}
+
+sup {
+    top: -0.5em;
+}
+
+sub {
+    bottom: -0.25em;
+}
+
+/* ==========================================================================
+   Embedded content
+   ========================================================================== */
+
+/*
+ * Removes border when inside `a` element in IE 8/9.
+ */
+
+img {
+    border: 0;
+}
+
+/*
+ * Corrects overflow displayed oddly in IE 9.
+ */
+
+svg:not(:root) {
+    overflow: hidden;
+}
+
+/* ==========================================================================
+   Figures
+   ========================================================================== */
+
+/*
+ * Addresses margin not present in IE 8/9 and Safari 5.
+ */
+
+figure {
+    margin: 0;
+}
+
+/* ==========================================================================
+   Forms
+   ========================================================================== */
+
+/*
+ * Define consistent border, margin, and padding.
+ */
+
+fieldset {
+    border: 1px solid #c0c0c0;
+    margin: 0 2px;
+    padding: 0.35em 0.625em 0.75em;
+}
+
+/*
+ * 1. Corrects color not being inherited in IE 8/9.
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
+ */
+
+legend {
+    border: 0; /* 1 */
+    padding: 0; /* 2 */
+}
+
+/*
+ * 1. Corrects font family not being inherited in all browsers.
+ * 2. Corrects font size not being inherited in all browsers.
+ * 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
+ */
+
+button,
+input,
+select,
+textarea {
+    font-family: inherit; /* 1 */
+    font-size: 100%; /* 2 */
+    margin: 0; /* 3 */
+}
+
+/*
+ * Addresses Firefox 4+ setting `line-height` on `input` using `!important` in
+ * the UA stylesheet.
+ */
+
+button,
+input {
+    line-height: normal;
+}
+
+/*
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
+ *    and `video` controls.
+ * 2. Corrects inability to style clickable `input` types in iOS.
+ * 3. Improves usability and consistency of cursor style between image-type
+ *    `input` and others.
+ */
+
+button,
+html input[type="button"], /* 1 */
+input[type="reset"],
+input[type="submit"] {
+    -webkit-appearance: button; /* 2 */
+    cursor: pointer; /* 3 */
+}
+
+/*
+ * Re-set default cursor for disabled elements.
+ */
+
+button[disabled],
+input[disabled] {
+    cursor: default;
+}
+
+/*
+ * 1. Addresses box sizing set to `content-box` in IE 8/9.
+ * 2. Removes excess padding in IE 8/9.
+ */
+
+input[type="checkbox"],
+input[type="radio"] {
+    box-sizing: border-box; /* 1 */
+    padding: 0; /* 2 */
+}
+
+/*
+ * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
+ * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
+ *    (include `-moz` to future-proof).
+ */
+
+input[type="search"] {
+    -webkit-appearance: textfield; /* 1 */
+    -moz-box-sizing: content-box;
+    -webkit-box-sizing: content-box; /* 2 */
+    box-sizing: content-box;
+}
+
+/*
+ * Removes inner padding and search cancel button in Safari 5 and Chrome
+ * on OS X.
+ */
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+    -webkit-appearance: none;
+}
+
+/*
+ * Removes inner padding and border in Firefox 4+.
+ */
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+    border: 0;
+    padding: 0;
+}
+
+/*
+ * 1. Removes default vertical scrollbar in IE 8/9.
+ * 2. Improves readability and alignment in all browsers.
+ */
+
+textarea {
+    overflow: auto; /* 1 */
+    vertical-align: top; /* 2 */
+}
+
+/* ==========================================================================
+   Tables
+   ========================================================================== */
+
+/*
+ * Remove most spacing between table cells.
+ */
+
+table {
+    border-collapse: collapse;
+    border-spacing: 0;
+}

+ 108 - 0
www/source/stylesheets/solarized_dark.css

@@ -0,0 +1,108 @@
+/*
+
+Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
+
+*/
+
+.hljs {
+  display: block;
+  overflow-x: auto;
+  padding: 0.5em;
+  background: #002b36;
+  color: #839496;
+}
+
+.hljs-comment,
+.hljs-template_comment,
+.diff .hljs-header,
+.hljs-doctype,
+.hljs-pi,
+.lisp .hljs-string,
+.hljs-javadoc {
+  color: #586e75;
+}
+
+/* Solarized Green */
+.hljs-keyword,
+.hljs-winutils,
+.method,
+.hljs-addition,
+.css .hljs-tag,
+.hljs-request,
+.hljs-status,
+.nginx .hljs-title {
+  color: #859900;
+}
+
+/* Solarized Cyan */
+.hljs-number,
+.hljs-command,
+.hljs-string,
+.hljs-tag .hljs-value,
+.hljs-rules .hljs-value,
+.hljs-phpdoc,
+.tex .hljs-formula,
+.hljs-regexp,
+.hljs-hexcolor,
+.hljs-link_url {
+  color: #2aa198;
+}
+
+/* Solarized Blue */
+.hljs-title,
+.hljs-localvars,
+.hljs-chunk,
+.hljs-decorator,
+.hljs-built_in,
+.hljs-identifier,
+.vhdl .hljs-literal,
+.hljs-id,
+.css .hljs-function {
+  color: #268bd2;
+}
+
+/* Solarized Yellow */
+.hljs-attribute,
+.hljs-variable,
+.lisp .hljs-body,
+.smalltalk .hljs-number,
+.hljs-constant,
+.hljs-class .hljs-title,
+.hljs-parent,
+.haskell .hljs-type,
+.hljs-link_reference {
+  color: #b58900;
+}
+
+/* Solarized Orange */
+.hljs-preprocessor,
+.hljs-preprocessor .hljs-keyword,
+.hljs-pragma,
+.hljs-shebang,
+.hljs-symbol,
+.hljs-symbol .hljs-string,
+.diff .hljs-change,
+.hljs-special,
+.hljs-attr_selector,
+.hljs-subst,
+.hljs-cdata,
+.clojure .hljs-title,
+.css .hljs-pseudo,
+.hljs-header {
+  color: #cb4b16;
+}
+
+/* Solarized Red */
+.hljs-deletion,
+.hljs-important {
+  color: #dc322f;
+}
+
+/* Solarized Violet */
+.hljs-link_label {
+  color: #6c71c4;
+}
+
+.tex .hljs-formula {
+  background: #073642;
+}