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
138 '1997-2013 The PHP Documentation Group',138 '1997-2013 The PHP Documentation Group',
139 'CC BY',139 'CC BY',
140 'http://creativecommons.org/licenses/by/3.0/'140 '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'
141 ], [146 ], [
142 'Ruby',147 'Ruby',
143 '1993-2013 Yukihiro Matsumoto',148 '1993-2013 Yukihiro Matsumoto',
assets/javascripts/templates/pages/news_tmpl.coffee+6−2
@@ -24,7 +24,10 @@ newsItem = (date, news) -> · 23 unmodified lines
24 result24 result
25 25
26app.news = [26app.news = [
27 [ 1384819200000, # November 19, 201327 [ 1385424000000, # November 26, 2013
28 """ New <a href="/python/">Python</a> documentation """
29 ], [
30 1384819200000, # November 19, 2013
28 """ New <a href="/rails/">Ruby on Rails</a> documentation """31 """ New <a href="/rails/">Ruby on Rails</a> documentation """
29 ], [32 ], [
30 1384560000000, # November 16, 201333 1384560000000, # November 16, 2013
@@ -35,7 +38,8 @@ app.news = [ · 4 unmodified lines
35 ], [38 ], [
36 1381276800000, # October 9, 201339 1381276800000, # October 9, 2013
37 """ DevDocs is now available as a <a href="https://chrome.google.com/webstore/detail/devdocs/mnfehgbmkapmjnhcnbodoamcioleeooe">Chrome web app</a>. """40 """ DevDocs is now available as a <a href="https://chrome.google.com/webstore/detail/devdocs/mnfehgbmkapmjnhcnbodoamcioleeooe">Chrome web app</a>. """
38 ], [ 1379808000000, # September 22, 201341 ], [
42 1379808000000, # September 22, 2013
39 """ New <a href="/php/">PHP</a> documentation """43 """ New <a href="/php/">PHP</a> documentation """
40 ], [44 ], [
41 1378425600000, # September 6, 201345 1378425600000, # September 6, 2013
assets/javascripts/views/pages/sphinx.coffee+6−0
@@ -0,0 +1,6 @@
1#= require views/pages/base
2
3class app.views.SphinxPage extends app.views.BasePage
4 afterRender: ->
5 @highlightCode @findAll('pre.python'), 'python'
6 return