Browse Source

End Jetbrains sponsorship

Thibaut 10 years ago
parent
commit
edb09cc2df

+ 1 - 1
README.md

@@ -3,7 +3,7 @@
 DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
 
 * 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:
 

BIN
assets/images/jetbrains-bw.png


BIN
assets/images/jetbrains-bw@2x.png


BIN
assets/images/jetbrains.png


BIN
assets/images/jetbrains@2x.png


+ 0 - 1
assets/javascripts/templates/notif_tmpl.coffee

@@ -36,7 +36,6 @@ app.templates.notifThanks = ->
   textNotif """ Hi there! """,
             """ <p class="_notif-text">Like DevDocs? Check out these awesome companies who are making it possible:
                 <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.
                 </ul>
                 <p class="_notif-text">Have a great day :) """

+ 2 - 2
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -13,7 +13,7 @@ app.templates.aboutPage = -> """
   <p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
   <ul>
     <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>
         <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>
@@ -31,7 +31,7 @@ app.templates.aboutPage = -> """
   <p><strong>Special thanks to:</strong>
   <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/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>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

+ 4 - 39
assets/javascripts/templates/pages/root_tmpl.coffee.erb

@@ -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) -> """
   <a href="http://out.devdocs.io/s/code-school" class="#{className}">
     <span class="_logo-thx _code-school-logo">Code School</span>
@@ -37,10 +7,7 @@ codeSchoolLink = (className) -> """
 
 app.templates.splash = -> """
   <div class="_splash-title">DevDocs</div>
-  <div class="_splash-sponsors">
-    #{jetBrainsLink '_splash-sponsor'}
-    #{codeSchoolLink '_splash-sponsor'}
-  </div>
+  <div class="_splash-sponsors">#{codeSchoolLink '_splash-sponsor'}</div>
 """
 
 <% if App.development? %>
@@ -63,8 +30,7 @@ app.templates.intro = """
           <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!
     </ol>
-    <p class="_intro-sponsors">
-      #{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}
+    <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}
     <p>Happy coding!
   </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>
       <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks!
     </ol>
-    <p class="_intro-sponsors">
-      #{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}
+    <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}
     <p>Happy coding!
   </div></div>
 """
@@ -116,7 +81,7 @@ app.templates.mobileIntro = """
       <li>DevDocs is <a href="https://github.com/Thibaut/devdocs">open source</a>
     </ol>
     <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>
   </div>
 """

+ 0 - 24
assets/stylesheets/components/_content.scss

@@ -456,30 +456,6 @@
   :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 {
   width: 7rem;
   background-image: image-url('code-school.png');

+ 0 - 4
views/manifest.erb

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