Coder Social home page Coder Social logo

freecodecamp / devdocs Goto Github PK

View Code? Open in Web Editor NEW
34.3K 662.0 2.3K 30.65 MB

API Documentation Browser

Home Page: https://devdocs.io

License: Mozilla Public License 2.0

Ruby 78.75% HTML 0.87% CSS 0.28% JavaScript 14.48% Dockerfile 0.03% SCSS 5.58% Procfile 0.01%
devdocs documentation documentation-tool developer-tools docs offline app api-documentation pwa hacktoberfest

devdocs's People

Contributors

beaucarnes avatar cimbali avatar clasherkasten avatar damms005 avatar gengjiawen avatar haarts avatar ignusg avatar j-f1 avatar japborst avatar jceb avatar jmerle avatar kidonng avatar larouxn avatar lgeiger avatar masterenoc avatar math2001 avatar nicolapps avatar noraj avatar ojeytonwilliams avatar renovate-bot avatar renovate[bot] avatar romeovs avatar scherepn avatar simon04 avatar szlegradi avatar thewheat avatar thibaut avatar trangpham avatar vallabhtiwari avatar xjkdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devdocs's Issues

Run searches in the background using Web Workers

Using Web Workers is likely to speed up the search (no more setTimeout) and make the UI more responsive (workers run in a separate OS thread), but they have the downside of not being able to share objects with the main page. This would require us to duplicate the index/data in memory and may make the app slower to boot.

Support multiple versions of a piece of software

I found out about this project from the Postgres Weekly newsletter. The devdocs for postgres (http://devdocs.io/postgresql/) will be very useful to me. One thing that's lacking from the official postgres documentation, though, is the ability to choose a specific version of Postgres. In my case, I'd like to read the documentation for Postgres 9.2 since I'm not running 9.3 yet.

Problematic keyboard shortcuts on Windows

The help page lists a few Cmd key combinations, in particular Cmd + ← and Cmd + → for navigating back and forth in history. On Windows these combinations become Ctrl + ← respectively Ctrl + →, which is highly problematic because that exact behaviour is already mapped to Alt + ← respectively Alt + →. Meanwhile, the Ctrl combinations have a different behaviour: to jump the cursor a full word left or right.

I haven't tested how GNU/Linux compares.

I suggest that, for Windows, the back/forth navigation shortcuts, being first-class citizens, be completely dropped. Failing that, that they be rebound to Alt to avoid the above confusion.

Ctrl + Enter (Cmd + Enter) does not currently interfere with anything so doesn't need special handling.

As an aside, and as a much more innocent issue, I would expect the behaviour mapped to Alt + ↓, Alt + ↑ for , and , for Ctrl + ↓, Ctrl + ↑, the rationale being that the default behaviour of , is incremental scrolling and I would expect to normally have far more need of that than navigating up/down the list of items.

Breadcrumbs / related entries

When opening a search result there is currently no way to quickly browse through related entries (with the same type). We could improve this by adding a breadcrumb bar to the UI.

Tag releases

It would be nice if devdocs versions or releases were tagged.

Current page's table of contents

Some documentations have very long pages that are difficult to browse through. We could improve this by adding a fixed-positioned table of contents which is automatically generated based on the current page's headings (<h2>, <h3>, etc.).

[Enhancement] Completely offline version?

I've been playing around with DevDocs and noticed that there are iframes and images loaded from external resources.

Could you please think about making parsers to also download those?

While converting DevDocs books to DevHelp format I've made my own bycicle with square wheels, but its pretty hacky and doesn't rely on your code base (see master at https://github.com/naquad/devdocs - especially lib/downloader.rb and lib/devhelp.rb).

Allow scrolling right-hand (doc) panel with arrow keys

Can you allow scrolling the right hand side, where the documentation is shown, with the up/down arrow keys, if focus is on the right hand side?

Right now, no matter where focus is in the app, the up/down arrow keys change the selected item in the sidebar.

Not all users have multi-touch trackpads, and if they don't they are forced to use the browser rendered scrollbar to scroll the right hand panel up/down.

I would be willing to implement this, but it would help to have a push in the right direction.

Search bar Firefox 24.0 space issue

Hard to explain, but I tried searching "409 Conflict" which resolves to "409+Conflict" and doesn't return any results... If I search "409" the expected result appears.. also if I put "409%20conflict".. Seems to be an encoding issue.

Say I wanted to add a command load this via launchctl

I want devdocs to run every time my Mac boots.

How should I go about it? I tried using rvm, but ran into this error message when I put the rvm-specific rackup command in the launchctl configuration:

env: ruby_executable_hooks: No such file or directory

Then I tried using "rvm use system" and installing/running rackup and got this error message:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'rack' (>= 0) among 4 total gem(s) (Gem::LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
    from /usr/local/Cellar/ruby/2.0.0-p353/bin/rackup:22:in `<main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'rack' (>= 0) among 4 total gem(s) (Gem::LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
    from /usr/local/Cellar/ruby/2.0.0-p353/bin/rackup:22:in `<main>'

Then, I tried running

bundle install --path $(shell pwd)

and got an actual segfault, which seems pretty amazing.

/Users/kevin/code/local-servers/usr/devdocs/devdocs-master/ruby/2.0.0/gems/eventmachine-1.0.3/lib/rubyeventmachine.bundle: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.1]

Support for browser keyword search

A nice feature would be support for browser keyword search by adding an explicit search URL such as:

http://devdocs.io/search?q=

Using this URL it's possible to add a bookmark to http://devdocs.io/search?q=%s with a shortcut such as "d". Once done, DevDocs searches are possible in the browser address bar, for example:

  • d puts: doc for the puts command
  • d r puts: doc for the Ruby puts command

missing APIs for HTML

first thing I wrote was "checked" and only got a CSS spec. it didn't find any specs for any HTML attributes...

Offline web app

DevDocs's offline setup isn't very good, requiring people to manually install, run, and update the code. Ideally we should cache everything in the browser using a storage API.

IndexedDB is supported by most browsers but I'm not sure it can reliably store tens of thousands of files amounting to hundreds of megabytes.

Chrome also supports the FileSystem API.

Usability enhancement to go back to the home page

Hi, first let me say that this project is amazing in a lot of ways.

Second thing, i have a small usability feature request, i will describe the use case shortly.

After inserting some text in the search box (for example, "find") and clicking on an interesting entry (for example, jQuery "find"), the entry's section is selected, and the search box reduces its scope just to that section (in the example case, it will search just within jQuery). I don't find easy, keyboard means to go back to a global search, aside hitting the browser back button, clicking on the bookmark again or editing the url by hand.

Since it happens often to me to jump from one section to another, i would maybe prefer that the section switch did not happen at all, but while this is arguable, i think that an easier way to get back to the global search mode may be of benefit of all kind of users.

Cheers!

Make Javadocs browsable

Lots of, if not all, Java projects provide Javadocs. It would be great to be able to integrate these.

For instance, the JavaEE 7 official Javadoc license does not permit redistribution to third-parties, so it would be great to be able to integrate them by hand and to browse them in offline mode on a personal basis: there would be no license violation.

Moreover, lots of Java projects which are true Free Software could then be integrated to the full devdocs distribution.

Invalid character printed on Ruby docs

Found illegal markup added on this Ruby doc :

On http://devdocs.io/ruby/csv#class-CSV-label-Writing, some ";;" are added. These chars should not added.

Example :

CSV.open("path/to/file.csv", "wb") do |csv|
  csv <;;<;; ["row", "of", "CSV", "data"]
  csv <;;<;; ["another", "row"]
  # ...
end

Expected :

CSV.open("path/to/file.csv", "wb") do |csv|
  csv << ["row", "of", "CSV", "data"]
  csv << ["another", "row"]
  # ...
end

PHP docs don't properly handle internal/external linking distinction

Every link in the PHP docs is treated as an external link, regardless of whether the article linked to exists within the DevDocs library or not. This may be due to the fact that PHP's site is geographically distributed with help from subdomains, so a link to www.php.net/something might redirect to us2.php.net/something - presumably to assist with load balancing. If the subdomain changes between the request and the links, the scraper or processor may not properly detect that the links actually go to the same content, despite having a different domain, and treat them as external.

This isn't a major inconvenience as I can either click the link and continue on the upstream site, or I can remember that the PHP links aren't properly handled and find the article I want via search. Still, it's less convenient and breaks the usage flow, so it would be nice if it was fixed. Had I the time, I'd probably attempt to write the patch myself.

What about having devdocs in French? (or other languages)

I personally don't mind reading documentation in English but I know quite a few fellow workers who would prefer it in French (or their mother tongue).
I understand that documentation is not always available in all languages but quite a few exist and I think it would be nice to offer the option when it exists.
And I am ready to help if required ^^

Rearranging documentations in the sidebar / results

I'd like to be able to rearrange documentations in the sidebar by dragging them in the "Select documentation" list. The order should also be reflected in the search (when results have identical scores).

Git within "Javascript" category

Git is a multipurpose tool , thus making it part of Javascript section does not seem relevant.

Apart form Git, are there numerous other docs that are cross-language / technology / platform ? It may be wise to create a "Tools" section.

Offline installation

I am trying to install devdocs on a Ubuntu 12.04 LTS platform but when running the 'bundle install' command I get the error "Could not find html-pipeline-1.2.0 in any of the sources". It appears that this particular version is referenced in the Gemfile.lock but has been "yanked" from the site :-(
Which version should I use?

Improved desktop wrapper

I was thinking of scripting up a desktop wrapper for devdocs. Currently I have it wrapped with Fluid as indicated in your docs, but it would be nice to improve the wrapper with taskbar/menu options, a custom app icon, and have proper sync abilities so it can load offline if need be. I was thinking TideSDK, Node-Webkit, or even trying out the new Brackets-Shell.

Thoughts?

Ability to create profiles

It would be great to be able to create profiles, ie "frontend", "backend" each having different settings (available languages/tools).

This implies supporting login, using GH login could be great.

Lastly I want to thank you for this app, really great !

Github Readmes From Repos

It would be really useful to be able to add a repo to devdocs and have it import that repos Readme or have some sort of similar plugin architecture.

Some keyboard shortcuts have stopped working.

I am using Firefox 26 and my keyboard shortcuts don't work now. They used to, when I first visited DevDocs,f but don't now. Probably since the last update?

The PageUp/PageDn keys work normally, so do the Alt+Arrows. But,

Arrow keys don't select the next/prev function as they used to. "Search as you type" also doesn't work.

This isn't an intentional change, is it?

Categorize documentations

Once DevDocs supports a few more documentations it may be a good idea to organize the "Select documentation" list by "kind" or programming language.

Visual indicator on doc page to identify source

When looking at documentation from different sources it's difficult to tell at a glance which source you're looking at. For example, when looking up event.preventDefault you'll get a result for DOM and jQuery. When reading the documentation, there is no visual difference between the two since they're styled the same, except for the icons in the results sidebar.

I recommend adding some sort of color difference for different sources, within the documentation pages. For instance, a blue header with the jQuery logo for jQuery vs. a green header with the DOM logo for MDN DOM documentation. It'll make it very easy to tell at a glance which source you're reading from.

devdocs dom event preventdefault 2014-01-07 08-07-26

devdocs dom event preventdefault 2014-01-07 08-22-28

Search in some subsections does not work unless manually entering URL

When I click any of the links from Angular JS and down, I see that the URL in the browser is switched so that the section is added on the end.

For example, if I click "python", and try to search for itertools, I see the URL change from devdocs.io to devdocs.io/python, but no python stuff when I search:

devdocs_issue2

... only HTMl / JS / web stuff.

Only if I manually select the URL bar in the browser tool bar and hit [Enter], the search works properly.

devdocs_issue2_works

System info:
OS: Xubuntu 13.10 64bit
Browser: Chromium, Version 31.0.1650.63 Ubuntu 13.04 (31.0.1650.63-0ubuntu0.13.04.1~20131204.1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.