History

Add Python documentation

Thibaut committed 12 years ago

Commit 36d6a101 parent 587855115 files · +220 −0Browse files

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

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +5 −0
  2. assets/javascripts/templates/pages/news_tmpl.coffee +6 −2
  3. assets/javascripts/views/pages/sphinx.coffee +6 −0
assets/javascripts/templates/pages/about_tmpl.coffee+5−0
@@ -138,6 +138,11 @@ credits = [ · 137 unmodified lines
138138 '1997-2013 The PHP Documentation Group',
139139 'CC BY',
140140 'http://creativecommons.org/licenses/by/3.0/'
141+ ], [
142+ 'Python',
143+ '1990-2013 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
144+ 'PSFL',
145+ 'http://docs.python.org/3/license.html'
141146 ], [
142147 'Ruby',
143148 '1993-2013 Yukihiro Matsumoto',
assets/javascripts/templates/pages/news_tmpl.coffee+6−2
@@ -24,7 +24,10 @@ newsItem = (date, news) -> · 23 unmodified lines
2424 result
2525
2626 app.news = [
27− [ 1384819200000, # November 19, 2013
27+ [ 1385424000000, # November 26, 2013
28+ """ New <a href="/python/">Python</a> documentation """
29+ ], [
30+ 1384819200000, # November 19, 2013
2831 """ New <a href="/rails/">Ruby on Rails</a> documentation """
2932 ], [
3033 1384560000000, # November 16, 2013
@@ -35,7 +38,8 @@ app.news = [ · 4 unmodified lines
3538 ], [
3639 1381276800000, # October 9, 2013
3740 """ DevDocs is now available as a <a href="https://chrome.google.com/webstore/detail/devdocs/mnfehgbmkapmjnhcnbodoamcioleeooe">Chrome web app</a>. """
38− ], [ 1379808000000, # September 22, 2013
41+ ], [
42+ 1379808000000, # September 22, 2013
3943 """ New <a href="/php/">PHP</a> documentation """
4044 ], [
4145 1378425600000, # September 6, 2013
assets/javascripts/views/pages/sphinx.coffee+6−0
@@ -0,0 +1,6 @@
1+#= require views/pages/base
2+
3+class app.views.SphinxPage extends app.views.BasePage
4+ afterRender: ->
5+ @highlightCode @findAll('pre.python'), 'python'
6+ return