History

Add C documentation

Thibaut committed 12 years ago

Commit 5b6d9d91 parent d062b2a16 files · +173 −-3Browse files

Showing the changes to assets (8 of 16 files). Show all

Unified · Split

8 files
  1. assets/images/icons.png +0 −0
  2. assets/images/icons@2x.png +0 −0
  3. assets/javascripts/templates/pages/about_tmpl.coffee +6 −0
  4. assets/javascripts/templates/pages/news_tmpl.coffee +4 −1
  5. assets/javascripts/views/pages/c.coffee +6 −0
  6. assets/stylesheets/application.css.scss +1 −0
  7. assets/stylesheets/global/_icons.scss +1 −0
  8. assets/stylesheets/pages/_c.scss +22 −0
assets/images/icons.png+0−0

Binary file not shown.

assets/images/icons@2x.png+0−0

Binary file not shown.

assets/javascripts/templates/pages/about_tmpl.coffee+6−0
@@ -39,6 +39,7 @@ app.templates.aboutPage = -> """ · 38 unmodified lines
3939 <ul>
4040 <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service
4141 <li>Daniel Bruce for the <a href="http://www.entypo.com">Entypo</a> pictograms
42+ <li><a href="http://www.jeremykratz.com/">Jeremy Kratz</a> for the C logo
4243 </ul>
4344
4445 <h2 class="_lined-heading" id="faq">Questions & Answsers</h2>
@@ -83,6 +84,11 @@ credits = [ · 38 unmodified lines
8384 '2010-2014 Jeremy Ashkenas, DocumentCloud',
8485 'MIT',
8586 'https://raw.github.com/jashkenas/backbone/master/LICENSE'
87+ ], [
88+ 'C',
89+ 'cppreference.com',
90+ 'CC BY-SA',
91+ 'http://en.cppreference.com/w/Cppreference:Copyright/CC-BY-SA'
8692 ], [
8793 'CoffeeScript',
8894 '2009-2014 Jeremy Ashkenas',
assets/javascripts/templates/pages/news_tmpl.coffee+4−1
@@ -24,7 +24,10 @@ newsItem = (date, news) -> · 23 unmodified lines
2424 result
2525
2626 app.news = [
27− [ 1392508800000, # February 16, 2013
27+ [ 1393027200000, # February 22, 2013
28+ """ New <a href="/c/">C</a> documentation """,
29+ ], [
30+ 1392508800000, # February 16, 2013
2831 """ New <a href="/moment/">Moment.js</a> documentation """,
2932 ], [
3033 1392163200000, # February 12, 2013
assets/javascripts/views/pages/c.coffee+6−0
@@ -0,0 +1,6 @@
1+#= require views/pages/base
2+
3+class app.views.CPage extends app.views.BasePage
4+ afterRender: ->
5+ @highlightCode @findAll('pre.source-c, .source-c > pre'), 'c'
6+ return
assets/stylesheets/application.css.scss+1−0
@@ -28,6 +28,7 @@ · 27 unmodified lines
2828 'components/mobile';
2929
3030 @import 'pages/angular',
31+ 'pages/c',
3132 'pages/coffeescript',
3233 'pages/d3',
3334 'pages/ember',
assets/stylesheets/global/_icons.scss+1−0
@@ -48,3 +48,4 @@ · 47 unmodified lines
4848 ._icon-d3:before { background-position: -4rem -6rem; }
4949 ._icon-knockout:before { background-position: 0 -7rem; }
5050 ._icon-moment:before { background-position: -1rem -7rem; }
51+._icon-c:before { background-position: -2rem -7rem; }
assets/stylesheets/pages/_c.scss+22−0
@@ -0,0 +1,22 @@
1+._c {
2+ > h2, > h3 { @extend %block-heading; }
3+ > h4 { @extend %block-label, %label-blue; }
4+ > p > code { @extend %label; }
5+
6+ .t-dcl-begin pre {
7+ margin: 0;
8+ padding: 0;
9+ line-height: inherit;
10+ background: none;
11+ border: 0;
12+ box-shadow: none;
13+ }
14+
15+ .t-lines > span { display: block; } // numeric/fenv, string/byte, etc.
16+
17+ .t-spar { // language/switch, language/for, etc.
18+ font-style: italic;
19+ color: $textColorLight;
20+ }
21+ .t-sdsc-nopad dl, .t-sdsc-nopad dd { margin: 0; }
22+}