jetBrainsLink = (className) -> type = jetBrainsType() path = "/#{type}" if type """ #{JETBRAINS_INFO[type || 'default']} """ 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) -> """ 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. """ app.templates.splash = -> """
DevDocs
#{jetBrainsLink '_splash-sponsor'} #{codeSchoolLink '_splash-sponsor'}
""" <% if App.development? %> app.templates.intro = """
Stop showing this message

Hi there!

Thanks for downloading DevDocs. Here are a few things you should know:

  1. Your local version of DevDocs won't self-update. Unless you're modifying the code, I recommend using the hosted version at devdocs.io.
  2. Run thor docs:list to see all available documentations.
  3. Run thor docs:download --all to download/update all documentations.
  4. To be notified about new versions, don't forget to watch the repository on GitHub.
  5. The issue tracker is the preferred channel for bug reports and feature requests. For everything else, use the mailing list.
  6. Contributions are welcome. See the guidelines.
  7. DevDocs is licensed under the terms of the Mozilla Public License v2.0. For more information, see the COPYRIGHT and LICENSE files.
  8. If you like the app, please consider supporting the project on Gratipay. Thanks!

#{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}

Happy coding!

""" <% else %> app.templates.intro = """
Stop showing this message

Welcome!

DevDocs combines multiple API documentations in a fast, organized, and searchable interface. Here's what you should know before you start:

  1. To enable more docs, click Select documentation in the bottom left corner
  2. You don't have to use your mouse — see the list of keyboard shortcuts
  3. The search supports fuzzy matching (e.g. "bgcp" brings up "background-clip")
  4. To search a specific documentation, type its name (or an abbreviation), then Tab
  5. You can search using your browser's address bar — learn how
  6. DevDocs works offline, on mobile, and can be installed on Chrome and Firefox.
  7. For the latest news, subscribe to the newsletter or follow @DevDocs
  8. DevDocs is free and open source
  9. If you like the app, please consider supporting the project on Gratipay. Thanks!

#{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}

Happy coding!

""" <% end %> app.templates.mobileNav = """ """ app.templates.mobileIntro = """

Welcome!

DevDocs combines multiple API documentations in a fast, organized, and searchable interface. Here's what you should know before you start:

  1. To pick your docs, click Select documentation at the bottom of the menu
  2. The search supports fuzzy matching (e.g. "bgcp" matches "background-clip")
  3. To search a specific documentation, type its name (or an abbreviation), then Space
  4. For the latest news, subscribe to the newsletter or follow @DevDocs
  5. DevDocs is open source

Happy coding!

#{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}

Stop showing this message
"""