Unified · Split
| @@ -3,7 +3,6 @@ · 2 unmodified lines | |||
| 3 | DevDocs combines multiple API documentations in a fast, organized, and searchable interface. | 3 | DevDocs combines multiple API documentations in a fast, organized, and searchable interface. |
| 4 | 4 | ||
| 5 | * Created by [Thibaut Courouble](http://thibaut.me) | 5 | * Created by [Thibaut Courouble](http://thibaut.me) |
| 6 | * Sponsored by [Code School](http://out.devdocs.io/s/code-school) | ||
| 7 | 6 | ||
| 8 | Keep track of development and community news: | 7 | Keep track of development and community news: |
| 9 | 8 | ||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| @@ -116,7 +116,6 @@ · 115 unmodified lines | |||
| 116 | visitCount = @settings.get('count') | 116 | visitCount = @settings.get('count') |
| 117 | @settings.set 'count', ++visitCount | 117 | @settings.set 'count', ++visitCount |
| 118 | new app.views.Notif 'Share', autoHide: null if visitCount is 5 | 118 | new app.views.Notif 'Share', autoHide: null if visitCount is 5 |
| 119 | new app.views.Notif 'Thanks', autoHide: null if visitCount is 10 | ||
| 120 | new app.views.News() | 119 | new app.views.News() |
| 121 | @updateChecker = new app.UpdateChecker() | 120 | @updateChecker = new app.UpdateChecker() |
| 122 | 121 | ||
| @@ -32,14 +32,6 @@ app.templates.notifShare = -> · 31 unmodified lines | |||
| 32 | <a href="http://out.devdocs.io/s/tw" target="_blank">Twitter</a>, <a href="http://out.devdocs.io/s/fb" target="_blank">Facebook</a>, | 32 | <a href="http://out.devdocs.io/s/tw" target="_blank">Twitter</a>, <a href="http://out.devdocs.io/s/fb" target="_blank">Facebook</a>, |
| 33 | <a href="http://out.devdocs.io/s/re" target="_blank">Reddit</a>, etc.<br>Thanks :) """ | 33 | <a href="http://out.devdocs.io/s/re" target="_blank">Reddit</a>, etc.<br>Thanks :) """ |
| 34 | 34 | ||
| 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 | |||
| 43 | app.templates.notifUpdateDocs = -> | 35 | app.templates.notifUpdateDocs = -> |
| 44 | textNotif """ Documentation updates available. """, | 36 | textNotif """ Documentation updates available. """, |
| 45 | """ <a href="/offline">Install them</a> as soon as possible to avoid broken pages. """ | 37 | """ <a href="/offline">Install them</a> as soon as possible to avoid broken pages. """ |
| @@ -13,7 +13,6 @@ app.templates.aboutPage = -> """ · 12 unmodified lines | |||
| 13 | <p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface. | 13 | <p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface. |
| 14 | <ul> | 14 | <ul> |
| 15 | <li>Created and maintained by <a href="http://thibaut.me">Thibaut Courouble</a> | 15 | <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> | ||
| 17 | <li>Free and <a href="https://github.com/Thibaut/devdocs">open source</a> | 16 | <li>Free and <a href="https://github.com/Thibaut/devdocs">open source</a> |
| 18 | <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> | 17 | <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> |
| 19 | </ul> | 18 | </ul> |
| @@ -31,7 +30,7 @@ app.templates.aboutPage = -> """ · 11 unmodified lines | |||
| 31 | <p><strong>Special thanks to:</strong> | 30 | <p><strong>Special thanks to:</strong> |
| 32 | <ul> | 31 | <ul> |
| 33 | <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 | 32 | <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 |
| 35 | <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service | 34 | <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service |
| 36 | <li>Daniel Bruce for the <a href="http://www.entypo.com">Entypo</a> pictograms | 35 | <li>Daniel Bruce for the <a href="http://www.entypo.com">Entypo</a> pictograms |
| 37 | <li><a href="http://www.jeremykratz.com/">Jeremy Kratz</a> for the C/C++ logo | 36 | <li><a href="http://www.jeremykratz.com/">Jeremy Kratz</a> for the C/C++ logo |
| @@ -1,14 +1,4 @@ | |||
| 1 | codeSchoolLink = (className) -> """ | 1 | app.templates.splash = """<div class="_splash-title">DevDocs</div>""" |
| 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 | """ | ||
| 12 | 2 | ||
| 13 | <% if App.development? %> | 3 | <% if App.development? %> |
| 14 | app.templates.intro = """ | 4 | app.templates.intro = """ |
| @@ -30,7 +20,6 @@ app.templates.intro = """ · 15 unmodified lines | |||
| 30 | <a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files. | 20 | <a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files. |
| 31 | <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks! | 21 | <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks! |
| 32 | </ol> | 22 | </ol> |
| 33 | <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'} | ||
| 34 | <p>Happy coding! | 23 | <p>Happy coding! |
| 35 | </div></div> | 24 | </div></div> |
| 36 | """ | 25 | """ |
| @@ -53,7 +42,6 @@ app.templates.intro = """ · 16 unmodified lines | |||
| 53 | <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> | 42 | <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> |
| 54 | <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks! | 43 | <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks! |
| 55 | </ol> | 44 | </ol> |
| 56 | <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'} | ||
| 57 | <p>Happy coding! | 45 | <p>Happy coding! |
| 58 | </div></div> | 46 | </div></div> |
| 59 | """ | 47 | """ |
| @@ -81,7 +69,6 @@ app.templates.mobileIntro = """ · 21 unmodified lines | |||
| 81 | <li>DevDocs is <a href="https://github.com/Thibaut/devdocs">open source</a> | 69 | <li>DevDocs is <a href="https://github.com/Thibaut/devdocs">open source</a> |
| 82 | </ol> | 70 | </ol> |
| 83 | <p>Happy coding! | 71 | <p>Happy coding! |
| 84 | <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}</p> | ||
| 85 | <a class="_intro-hide" data-hide-intro>Stop showing this message</a> | 72 | <a class="_intro-hide" data-hide-intro>Stop showing this message</a> |
| 86 | </div> | 73 | </div> |
| 87 | """ | 74 | """ |
| @@ -72,31 +72,6 @@ · 71 unmodified lines | |||
| 72 | @extend ._booting:before, %user-select-none; | 72 | @extend ._booting:before, %user-select-none; |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 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 | |||
| 100 | // | 75 | // |
| 101 | // Intro | 76 | // Intro |
| 102 | // | 77 | // |
| @@ -132,22 +107,6 @@ · 29 unmodified lines | |||
| 132 | 107 | ||
| 133 | ._intro-link { cursor: pointer; } | 108 | ._intro-link { cursor: pointer; } |
| 134 | 109 | ||
| 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 | |||
| 151 | // | 110 | // |
| 152 | // Error | 111 | // Error |
| 153 | // | 112 | // |
| @@ -429,52 +388,3 @@ · 275 unmodified lines | |||
| 429 | vertical-align: text-top; | 388 | vertical-align: text-top; |
| 430 | margin-left: .25rem; | 389 | margin-left: .25rem; |
| 431 | } | 390 | } |
| 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 | } | ||
| @@ -8,10 +8,6 @@ CACHE: · 7 unmodified lines | |||
| 8 | <%= stylesheet_path 'application-dark' %> | 8 | <%= stylesheet_path 'application-dark' %> |
| 9 | <%= image_path 'icons.png' %> | 9 | <%= image_path 'icons.png' %> |
| 10 | <%= image_path 'icons@2x.png' %> | 10 | <%= 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' %> | ||
| 15 | <%= asset_path 'docs.js' %> | 11 | <%= asset_path 'docs.js' %> |
| 16 | <%= doc_index_urls.join "\n" %> | 12 | <%= doc_index_urls.join "\n" %> |
| 17 | 13 | ||