News for hackers. Stuff that matters.
Re:Documenting the Web together by fyrstenberg on Wednesday October 18, 2017 @01:23PM (#15501004)
Don't forget you can use https://devdocs.io/ too which also searches MDN and store offline. The two are a great pair.
Re:Documenting the Web together by oevi on Thursday October 19, 2017 @04:15AM (#15506266)
There is also mdn.io which can be used as shortcut in every browser like this (for a search for 'await'): http://mdn.io/await
Re:Documenting the Web together by fyrstenberg on Thursday October 19, 2017 @05:42AM (#15506610)
It seems neat on the surface but it also seem to involve two redirects, first one to google.com (which is not obvious and personally not something I would like), and then to MDN. It would be cool if it linked directly to the page on MDN or showed the content directly within the page.

And the second time I clicked I was met with this message, not mdn.io's fault but nonetheless (i.e. "google police" - not sure what they mean with "unusual activity", there is hardly any at the moment - maybe not enough? :) or maybe I just got a busy vpn exit point): https://imgur.com/itn48dZ

Re:Documenting the Web together by myfonj on Friday October 20, 2017 @06:32AM (#15514739)
Yup, that site seems to be basically redirector to Google redirector [1].

You can get the very same effect like DuckDuckGo keyword search but with "just the last redirect" with vanilla browser bookmark [2] with `%s` interpolation:

    https://www.google.com/search?btnI&q=%s%20site%3Adeveloper.mozilla.org
[1] https://github.com/lazd/mdn.io [2] https://www-archive.mozilla.org/docs/end-user/keywords.html - old page about feature in Firefox (currently the same works in Google Chrome as well). Amusing that the this `btnI` search is in the second example there.
Re:Documenting the Web together by Freak_NL on Friday October 20, 2017 @03:11AM (#15514026)
If you set up your browser's default search engine as DuckDuckGo, this works from the location bar (at least in Firefox):

    !mdn await
This will perform a query to DuckDuckGo (the non-tracking search engine) first, and automatically redirect to MDN.

No need for extra add-ons; this is one of the standard set of 'bangs' DuckDuckGo provides.

Re:Documenting the Web together by shpx on Friday October 20, 2017 @10:41PM (#15520400)
If you go to chrome settings -> Manage search engines and define a new search engine with Keyword: "m" and "URL with %s in place of query": https://www.google.com/search?&q=site%3Adeveloper.mozilla.or... typing "m await" in the omnibar will jump to the first google result from MDN, which is what it seems mdn.io does.

https://news.ycombinator.com/item?id=15306429 is my list of custom search engines.

Re:Documenting the Web together by mshenfield on Wednesday October 18, 2017 @05:44PM (#15503471)
Was on a plane ride this weekend and was thinking how I needed to re-install Dash so I could have an offline docs viewer. Personally like the web format much better, thanks!
Re:Documenting the Web together by y4mi on Wednesday October 18, 2017 @02:33PM (#15501688)
cool, i didn't know that site. wonderful ux

how's the content added though? its missing so many libraries i use...

Re:Documenting the Web together by muhic on Wednesday October 18, 2017 @03:44PM (#15502274)
They have a Trello board where you can suggest and vote on additions. https://trello.com/b/6BmTulfx/devdocs-documentation
Re:Documenting the Web together by iMerNibor on Wednesday October 18, 2017 @02:58PM (#15501919)
Seems to be scraping public documentation pages

https://github.com/Thibaut/devdocs/#scraper

Re:Documenting the Web together by nmbr213 on Thursday October 19, 2017 @09:54AM (#15507882)
Here's an alternative if you would prefer a desktop app

https://zealdocs.org/

Re:Documenting the Web together by CoryG89 on Wednesday October 18, 2017 @06:18PM (#15503747)
While we're on MDN related awesomeness, shameless plug: Back when I was in school, I made this Chrome extension which allows you to jump directly from the address bar to the MDN page you want:

https://chrome.google.com/webstore/detail/mdnjump/mfjekjhknp...

Re:Documenting the Web together by 1k2ka on Wednesday October 18, 2017 @07:44PM (#15504283)
If you use DuckDuckGo as your standard search engine you can also prepend "!mdn" to your search query to search MDN.

This also works with any website wich supports search I think. Other good ones include "!hoogle", "!hn", "!yt", "!g", and the list goes on.

Re:Documenting the Web together by r3bl on Wednesday October 18, 2017 @09:31PM (#15504759)
FYI, if you're already shortening the so-called "bangs", you could use "!h" for Haskell. :)

Worth pointing out: submitting bang ideas is very, very trivial, but the whole process may last months. Last time I've read about someone complaining about a long bang, I've submitted "!gw" as a shorter version of searching Gentoo's Wiki and it became a thing a couple of days ago. This is maybe fifth or sixth bang that I've submitted to them via https://duckduckgo.com/newbang.

Re:Documenting the Web together by CoryG89 on Saturday October 21, 2017 @08:21PM (#15524392)
This will bring you to a search result page, yes? My ext combines Google's I'm Feeling Lucky to jump straight to the page for the top result, which I find works 99% of the time I'm looking for something on MDN.
Re:Documenting the Web together by sambf on Thursday October 19, 2017 @05:10AM (#15506487)
I'm using it as my primary source of documentation since a couple of years. Never been disappointed, and it saves a lot of clicks.
Re:Documenting the Web together by mikodin on Wednesday October 18, 2017 @03:25PM (#15502127)
Yeah wow thanks! This is great
Re:Documenting the Web together by lin-H on Wednesday October 18, 2017 @09:39PM (#15504798)
Thanks for sharing, this is awesome
Re:Documenting the Web together by type0 on Wednesday October 18, 2017 @03:59PM (#15502411)
No Elm there?
Re:Documenting the Web together by mtmail on Wednesday October 18, 2017 @06:31PM (#15503838)
230+ sets of documentation already work. You can vote for your favorite language here: https://trello.com/b/6BmTulfx/devdocs-documentation
Re:Documenting the Web together by yujinyuz on Wednesday October 18, 2017 @09:22PM (#15504715)
thanks for this one!