History

End Code School sponsorship

Thibaut committed 11 years ago

Commit fe351171 parent a23e3c011 files · +-2 −116Browse files

Unified · Split

11 files
  1. README.md +0 −1
  2. assets/images/code-school-bw.png +0 −0
  3. assets/images/code-school-bw@2x.png +0 −0
  4. assets/images/code-school.png +0 −0
  5. assets/images/code-school@2x.png +0 −0
  6. assets/javascripts/app/app.coffee +0 −1
  7. assets/javascripts/templates/notif_tmpl.coffee +0 −8
  8. assets/javascripts/templates/pages/about_tmpl.coffee +1 −2
  9. assets/javascripts/templates/pages/root_tmpl.coffee.erb +1 −14
  10. assets/stylesheets/components/_content.scss +0 −90
  11. views/manifest.erb +0 −4
README.md+0−1
@@ -3,7 +3,6 @@ · 2 unmodified lines
33 DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
44
55 * Created by [Thibaut Courouble](http://thibaut.me)
6−* Sponsored by [Code School](http://out.devdocs.io/s/code-school)
76
87 Keep track of development and community news:
98
assets/images/code-school-bw.png+0−0

Binary file not shown.

assets/images/code-school-bw@2x.png+0−0

Binary file not shown.

assets/images/code-school.png+0−0

Binary file not shown.

assets/images/code-school@2x.png+0−0

Binary file not shown.

assets/javascripts/app/app.coffee+0−1
@@ -116,7 +116,6 @@ · 115 unmodified lines
116116 visitCount = @settings.get('count')
117117 @settings.set 'count', ++visitCount
118118 new app.views.Notif 'Share', autoHide: null if visitCount is 5
119− new app.views.Notif 'Thanks', autoHide: null if visitCount is 10
120119 new app.views.News()
121120 @updateChecker = new app.UpdateChecker()
122121
assets/javascripts/templates/notif_tmpl.coffee+0−8
@@ -32,14 +32,6 @@ app.templates.notifShare = -> · 31 unmodified lines
3232 <a href="http://out.devdocs.io/s/tw" target="_blank">Twitter</a>, <a href="http://out.devdocs.io/s/fb" target="_blank">Facebook</a>,
3333 <a href="http://out.devdocs.io/s/re" target="_blank">Reddit</a>, etc.<br>Thanks :) """
3434
35−app.templates.notifThanks = ->
36− textNotif """ Hi there! """,
37− """ <p class="_notif-text">Like DevDocs? Check out these awesome companies who are making it possible:
38− <ul class="_notif-list">
39− <li><a href="http://out.devdocs.io/s/code-school" target="_blank">Code School</a> — Learn new skills from the comfort of your own browser. Offering more than 45 courses covering JavaScript, HTML/CSS, Ruby, Git, and iOS for only $29/month.
40− </ul>
41− <p class="_notif-text">Have a great day :) """
42−
4335 app.templates.notifUpdateDocs = ->
4436 textNotif """ Documentation updates available. """,
4537 """ <a href="/offline">Install them</a> as soon as possible to avoid broken pages. """
assets/javascripts/templates/pages/about_tmpl.coffee+1−2
@@ -13,7 +13,6 @@ app.templates.aboutPage = -> """ · 12 unmodified lines
1313 <p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
1414 <ul>
1515 <li>Created and maintained by <a href="http://thibaut.me">Thibaut Courouble</a>
16− <li>Sponsored by <a href="http://out.devdocs.io/s/code-school">Code School</a>
1716 <li>Free and <a href="https://github.com/Thibaut/devdocs">open source</a>
1817 <iframe class="_github-btn" src="https://ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
1918 </ul>
@@ -31,7 +30,7 @@ app.templates.aboutPage = -> """ · 11 unmodified lines
3130 <p><strong>Special thanks to:</strong>
3231 <ul>
3332 <li><a href="http://out.devdocs.io/s/maxcdn">MaxCDN</a> and <a href="http://get.gaug.es/?utm_source=devdocs&utm_medium=referral&utm_campaign=sponsorships" title="Real Time Web Analytics">Gauges</a> for offering a free account to DevDocs
34− <li><a href="http://out.devdocs.io/s/maxcdn">MaxCDN</a>, <a href="http://out.devdocs.io/s/shopify">Shopify</a> and <a href="http://out.devdocs.io/s/jetbrains">JetBrains</a> for sponsoring DevDocs in the past
33+ <li><a href="http://out.devdocs.io/s/maxcdn">MaxCDN</a>, <a href="http://out.devdocs.io/s/shopify">Shopify</a>, <a href="http://out.devdocs.io/s/jetbrains">JetBrains</a> and <a href="http://out.devdocs.io/s/code-school">Code School</a> for sponsoring DevDocs in the past
3534 <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service
3635 <li>Daniel Bruce for the <a href="http://www.entypo.com">Entypo</a> pictograms
3736 <li><a href="http://www.jeremykratz.com/">Jeremy Kratz</a> for the C/C++ logo
assets/javascripts/templates/pages/root_tmpl.coffee.erb+1−14
@@ -1,14 +1,4 @@
1−codeSchoolLink = (className) -> """
2− <a href="http://out.devdocs.io/s/code-school" class="#{className}">
3− <span class="_logo-thx _code-school-logo">Code School</span>
4− <span class="_logo-info">With more than 45 courses covering JavaScript, HTML/CSS, Ruby, Git, and iOS, Code School pairs experienced instructors with engaging content. Start learning at codeschool.com.</span>
5− </a>
6−"""
7−
8−app.templates.splash = -> """
9− <div class="_splash-title">DevDocs</div>
10− <div class="_splash-sponsors">#{codeSchoolLink '_splash-sponsor'}</div>
11−"""
1+app.templates.splash = """<div class="_splash-title">DevDocs</div>"""
122
133 <% if App.development? %>
144 app.templates.intro = """
@@ -30,7 +20,6 @@ app.templates.intro = """ · 15 unmodified lines
3020 <a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files.
3121 <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks!
3222 </ol>
33− <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}
3423 <p>Happy coding!
3524 </div></div>
3625 """
@@ -53,7 +42,6 @@ app.templates.intro = """ · 16 unmodified lines
5342 <iframe class="_github-btn" src="//ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
5443 <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks!
5544 </ol>
56− <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}
5745 <p>Happy coding!
5846 </div></div>
5947 """
@@ -81,7 +69,6 @@ app.templates.mobileIntro = """ · 21 unmodified lines
8169 <li>DevDocs is <a href="https://github.com/Thibaut/devdocs">open source</a>
8270 </ol>
8371 <p>Happy coding!
84− <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}</p>
8572 <a class="_intro-hide" data-hide-intro>Stop showing this message</a>
8673 </div>
8774 """
assets/stylesheets/components/_content.scss+0−90
@@ -72,31 +72,6 @@ · 71 unmodified lines
7272 @extend ._booting:before, %user-select-none;
7373 }
7474
75−._splash-sponsors {
76− position: absolute;
77− top: 50%;
78− left: 0;
79− right: 0;
80− margin-top: 1.25rem;
81− text-align: center;
82− line-height: 2rem;
83−}
84−
85−._splash-sponsor {
86− position: relative;
87− display: inline-block;
88− vertical-align: top;
89− margin: .5rem 1.5rem;
90−
91− ._logo-thx { opacity: .3; }
92− &:hover ._logo-thx { opacity: .6; }
93−
94− ._logo-info {
95− right: 50%;
96− margin-right: -9rem;
97− }
98−}
99−
10075 //
10176 // Intro
10277 //
@@ -132,22 +107,6 @@ · 29 unmodified lines
132107
133108 ._intro-link { cursor: pointer; }
134109
135−._intro-sponsors {
136− position: absolute;
137− bottom: 1rem;
138− right: 1rem;
139− margin: 0;
140− line-height: 1.5rem;
141−}
142−
143−._intro-sponsor {
144− display: inline-block;
145− vertical-align: top;
146− margin-left: .5em;
147−
148− &:hover { text-decoration: none; }
149−}
150−
151110 //
152111 // Error
153112 //
@@ -429,52 +388,3 @@ · 275 unmodified lines
429388 vertical-align: text-top;
430389 margin-left: .25rem;
431390 }
432−
433−._logo-thx {
434− position: relative;
435− display: inline-block;
436− vertical-align: top;
437− height: 1.5rem;
438− overflow: hidden;
439− text-indent: -20rem;
440− background-position: center center;
441− background-repeat: no-repeat;
442−}
443−
444−._logo-info {
445− top: auto;
446− bottom: 100%;
447− right: 0;
448− max-width: 18.25rem;
449− margin-bottom: .75rem;
450− padding: .5rem .75rem;
451− line-height: 1.375rem;
452− text-align: left;
453− pointer-events: none;
454− @extend %notif;
455−
456− :hover > & { opacity: 1; }
457−}
458−
459−._code-school-logo {
460− width: 7rem;
461− background-image: image-url('code-school.png');
462− background-size: 7rem 1.25rem;
463−
464− @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
465− background-image: image-url('code-school@2x.png');
466− }
467−}
468−
469−._splash-sponsor > ._code-school-logo {
470− background-image: image-url('code-school-bw.png');
471−
472− @if $style == 'dark' {
473− filter: invert(100%);
474− -webkit-filter: invert(100%);
475− }
476−
477− @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
478− background-image: image-url('code-school-bw@2x.png');
479− }
480−}
views/manifest.erb+0−4
@@ -8,10 +8,6 @@ CACHE: · 7 unmodified lines
88 <%= stylesheet_path 'application-dark' %>
99 <%= image_path 'icons.png' %>
1010 <%= image_path 'icons@2x.png' %>
11−<%= image_path 'code-school.png' %>
12−<%= image_path 'code-school@2x.png' %>
13−<%= image_path 'code-school-bw.png' %>
14−<%= image_path 'code-school-bw@2x.png' %>
1511 <%= asset_path 'docs.js' %>
1612 <%= doc_index_urls.join "\n" %>
1713