End Jetbrains sponsorship

pull/281/merge
Thibaut 9 years ago
parent a91a2dee05
commit edb09cc2df

@ -3,7 +3,7 @@
DevDocs combines multiple API documentations in a fast, organized, and searchable interface. DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
* Created by [Thibaut Courouble](http://thibaut.me) * Created by [Thibaut Courouble](http://thibaut.me)
* Supported by [JetBrains](http://out.devdocs.io/s/jetbrains) and [Code School](http://out.devdocs.io/s/code-school) * Sponsored by [Code School](http://out.devdocs.io/s/code-school)
Keep track of development and community news: Keep track of development and community news:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

@ -36,7 +36,6 @@ app.templates.notifThanks = ->
textNotif """ Hi there! """, textNotif """ Hi there! """,
""" <p class="_notif-text">Like DevDocs? Check out these awesome companies who are making it possible: """ <p class="_notif-text">Like DevDocs? Check out these awesome companies who are making it possible:
<ul class="_notif-list"> <ul class="_notif-list">
<li><a href="http://out.devdocs.io/s/jetbrains" target="_blank">JetBrains</a> We make software development a more productive and enjoyable experience through smart IDEs and code editors.
<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. <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.
</ul> </ul>
<p class="_notif-text">Have a great day :) """ <p class="_notif-text">Have a great day :) """

@ -13,7 +13,7 @@ app.templates.aboutPage = -> """
<p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface. <p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
<ul> <ul>
<li>Created and maintained by <a href="http://thibaut.me">Thibaut Courouble</a> <li>Created and maintained by <a href="http://thibaut.me">Thibaut Courouble</a>
<li>Supported by <a href="http://out.devdocs.io/s/jetbrains">JetBrains</a> and <a href="http://out.devdocs.io/s/code-school">Code School</a> <li>Sponsored by <a href="http://out.devdocs.io/s/code-school">Code School</a>
<li>Free and <a href="https://github.com/Thibaut/devdocs">open source</a> <li>Free and <a href="https://github.com/Thibaut/devdocs">open source</a>
<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> <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>
</ul> </ul>
@ -31,7 +31,7 @@ app.templates.aboutPage = -> """
<p><strong>Special thanks to:</strong> <p><strong>Special thanks to:</strong>
<ul> <ul>
<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 <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
<li><a href="http://out.devdocs.io/s/shopify">Shopify</a> for supporting DevDocs in the past <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
<li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service
<li>Daniel Bruce for the <a href="http://www.entypo.com">Entypo</a> pictograms <li>Daniel Bruce for the <a href="http://www.entypo.com">Entypo</a> pictograms
<li><a href="http://www.jeremykratz.com/">Jeremy Kratz</a> for the C/C++ logo <li><a href="http://www.jeremykratz.com/">Jeremy Kratz</a> for the C/C++ logo

@ -1,33 +1,3 @@
jetBrainsLink = (className) ->
type = jetBrainsType()
path = "/#{type}" if type
"""
<a href="http://out.devdocs.io/s/jetbrains#{path || ''}" class="#{className}">
<span class="_logo-thx _jetbrains-logo">JetBrains</span>
<span class="_logo-info">#{JETBRAINS_INFO[type || 'default']}</span>
</a>
"""
JETBRAINS_INFO =
ruby: 'Developing in Ruby? Boost your productivity with RubyMine, a powerful IDE with smart coding assistance and advanced testing and debugging features.'
python: 'Developing in Python? Enjoy productive development with PyCharm, an intelligent Python IDE offering unique coding experience.'
c: 'Developing in C? Now benefit from CLion, a C/C++ IDE enhancing your productivity with on-thy-fly static analysis and automated refactorings.'
web: 'Doing client-side development? Try WebStorm, an IDE that really understands JavaScript and modern frameworks like AngularJS and boosts your productivity.'
default: 'JetBrains makes software development a more productive and enjoyable experience through smart IDEs and code editors.'
jetBrainsType = ->
docs = if app.settings then app.settings.getDocs() else []
if docs.indexOf('ruby') != -1
'ruby'
else if docs.indexOf('python') != -1 || docs.indexOf('python2') != -1
'python'
else if docs.indexOf('c') != -1 or docs.indexOf('cpp') != -1
'c'
else if docs.indexOf('javascript') != -1 or docs.indexOf('jquery') != -1
'web'
codeSchoolLink = (className) -> """ codeSchoolLink = (className) -> """
<a href="http://out.devdocs.io/s/code-school" class="#{className}"> <a href="http://out.devdocs.io/s/code-school" class="#{className}">
<span class="_logo-thx _code-school-logo">Code School</span> <span class="_logo-thx _code-school-logo">Code School</span>
@ -37,10 +7,7 @@ codeSchoolLink = (className) -> """
app.templates.splash = -> """ app.templates.splash = -> """
<div class="_splash-title">DevDocs</div> <div class="_splash-title">DevDocs</div>
<div class="_splash-sponsors"> <div class="_splash-sponsors">#{codeSchoolLink '_splash-sponsor'}</div>
#{jetBrainsLink '_splash-sponsor'}
#{codeSchoolLink '_splash-sponsor'}
</div>
""" """
<% if App.development? %> <% if App.development? %>
@ -63,8 +30,7 @@ app.templates.intro = """
<a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files. <a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files.
<li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks! <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks!
</ol> </ol>
<p class="_intro-sponsors"> <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}
#{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}
<p>Happy coding! <p>Happy coding!
</div></div> </div></div>
""" """
@ -87,8 +53,7 @@ app.templates.intro = """
<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> <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>
<li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks! <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks!
</ol> </ol>
<p class="_intro-sponsors"> <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}
#{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}
<p>Happy coding! <p>Happy coding!
</div></div> </div></div>
""" """
@ -116,7 +81,7 @@ app.templates.mobileIntro = """
<li>DevDocs is <a href="https://github.com/Thibaut/devdocs">open source</a> <li>DevDocs is <a href="https://github.com/Thibaut/devdocs">open source</a>
</ol> </ol>
<p>Happy coding! <p>Happy coding!
<p class="_intro-sponsors">#{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}</p> <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}</p>
<a class="_intro-hide" data-hide-intro>Stop showing this message</a> <a class="_intro-hide" data-hide-intro>Stop showing this message</a>
</div> </div>
""" """

@ -456,30 +456,6 @@
:hover > & { opacity: 1; } :hover > & { opacity: 1; }
} }
._jetbrains-logo {
top: 1px;
width: 5rem;
background-image: image-url('jetbrains.png');
background-size: 5rem 1.5rem;
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
background-image: image-url('jetbrains@2x.png');
}
}
._splash-sponsor > ._jetbrains-logo {
background-image: image-url('jetbrains-bw.png');
@if $style == 'dark' {
filter: invert(100%);
-webkit-filter: invert(100%);
}
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
background-image: image-url('jetbrains-bw@2x.png');
}
}
._code-school-logo { ._code-school-logo {
width: 7rem; width: 7rem;
background-image: image-url('code-school.png'); background-image: image-url('code-school.png');

@ -8,10 +8,6 @@ CACHE:
<%= stylesheet_path 'application-dark' %> <%= stylesheet_path 'application-dark' %>
<%= image_path 'icons.png' %> <%= image_path 'icons.png' %>
<%= image_path 'icons@2x.png' %> <%= image_path 'icons@2x.png' %>
<%= image_path 'jetbrains.png' %>
<%= image_path 'jetbrains@2x.png' %>
<%= image_path 'jetbrains-bw.png' %>
<%= image_path 'jetbrains-bw@2x.png' %>
<%= image_path 'code-school.png' %> <%= image_path 'code-school.png' %>
<%= image_path 'code-school@2x.png' %> <%= image_path 'code-school@2x.png' %>
<%= image_path 'code-school-bw.png' %> <%= image_path 'code-school-bw.png' %>

Loading…
Cancel
Save