History

Add C documentation

Thibaut committed 12 years ago

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

Showing the changes to assets/javascripts (3 of 16 files). Show all

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +6 −0
  2. assets/javascripts/templates/pages/news_tmpl.coffee +4 −1
  3. assets/javascripts/views/pages/c.coffee +6 −0
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