Skip to content

Commit fe35117

Browse files
committed
End Code School sponsorship
1 parent a23e3c0 commit fe35117

11 files changed

Lines changed: 2 additions & 120 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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

-1.21 KB
Binary file not shown.
-3.21 KB
Binary file not shown.

assets/images/code-school.png

-2.52 KB
Binary file not shown.

assets/images/code-school@2x.png

-5.51 KB
Binary file not shown.

assets/javascripts/app/app.coffee

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ app.templates.notifShare = ->
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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ app.templates.aboutPage = -> """
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 = -> """
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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = """
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 = """
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 = """
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

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -72,31 +72,6 @@
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 @@
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 @@
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-
}

0 commit comments

Comments
 (0)