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
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