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
39 <ul>39 <ul>
40 <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service40 <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service
41 <li>Daniel Bruce for the <a href="http://www.entypo.com">Entypo</a> pictograms41 <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
42 </ul>43 </ul>
43 44
44 <h2 class="_lined-heading" id="faq">Questions & Answsers</h2>45 <h2 class="_lined-heading" id="faq">Questions & Answsers</h2>
@@ -83,6 +84,11 @@ credits = [ · 38 unmodified lines
83 '2010-2014 Jeremy Ashkenas, DocumentCloud',84 '2010-2014 Jeremy Ashkenas, DocumentCloud',
84 'MIT',85 'MIT',
85 'https://raw.github.com/jashkenas/backbone/master/LICENSE'86 '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'
86 ], [92 ], [
87 'CoffeeScript',93 'CoffeeScript',
88 '2009-2014 Jeremy Ashkenas',94 '2009-2014 Jeremy Ashkenas',
assets/javascripts/templates/pages/news_tmpl.coffee+4−1
@@ -24,7 +24,10 @@ newsItem = (date, news) -> · 23 unmodified lines
24 result24 result
25 25
26app.news = [26app.news = [
27 [ 1392508800000, # February 16, 201327 [ 1393027200000, # February 22, 2013
28 """ New <a href="/c/">C</a> documentation """,
29 ], [
30 1392508800000, # February 16, 2013
28 """ New <a href="/moment/">Moment.js</a> documentation """,31 """ New <a href="/moment/">Moment.js</a> documentation """,
29 ], [32 ], [
30 1392163200000, # February 12, 201333 1392163200000, # February 12, 2013
assets/javascripts/views/pages/c.coffee+6−0
@@ -0,0 +1,6 @@
1#= require views/pages/base
2
3class 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
28 'components/mobile';28 'components/mobile';
29 29
30@import 'pages/angular',30@import 'pages/angular',
31 'pages/c',
31 'pages/coffeescript',32 'pages/coffeescript',
32 'pages/d3',33 'pages/d3',
33 'pages/ember',34 'pages/ember',
assets/stylesheets/global/_icons.scss+1−0
@@ -48,3 +48,4 @@ · 47 unmodified lines
48._icon-d3:before { background-position: -4rem -6rem; }48._icon-d3:before { background-position: -4rem -6rem; }
49._icon-knockout:before { background-position: 0 -7rem; }49._icon-knockout:before { background-position: 0 -7rem; }
50._icon-moment:before { background-position: -1rem -7rem; }50._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}