Coder Social home page Coder Social logo

duckduckgo-documentation's Introduction

We Have Moved!

These are the old docs, and are outdated.

The new documentation can be read here and the repository is hosted here.

Any feedback, thoughts, or pull requests about the new docs are welcome, please let us know at [email protected]

duckduckgo-documentation's People

Contributors

altern8tif avatar andrey-p avatar bsstoner avatar cosinuz avatar elebow avatar fuzzzems avatar gautamkrishnar avatar jagtalon avatar jarmokivekas avatar jasonodonnell avatar javathunderman avatar lakshmipathi avatar majuscule avatar mattr555 avatar mintsoft avatar moollaza avatar moonlightdrive avatar mrchrisw avatar mwmiller avatar oesgalha avatar oiami avatar pfirsichbluete avatar rahiel avatar russellholt avatar tagawa avatar talsraviv avatar umvegas avatar xuv avatar yegg avatar zekiel 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

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

duckduckgo-documentation's Issues

clarify "erase any pre-filled content"

On the cheat sheets page: https://duck.co/duckduckhack/goodie_cheat_sheets there's a line:

"Erase any pre-filled contents, and enter the values for your cheat sheet using the cheat sheet JSON syntax. "

but we didn't yet tell the user to use an example json file. So when you, "create a new file" it will create itself as a blank file. We should probably provide a reference to copy+paste and then use the Syntax file to help annotate.

OR comment out vim.json in the same style as the syntax guide.

thoughts? //cc @talsraviv

Spice Frontend Walkthroughs not linked

Only Walkthrough#1 seems to be accessible. Clicking on the other 3 walkthroughs doesn't seem to bring me to the others.

I see it in the spice_frontend_walkthroughs.md file but not able to view it on DuckDuckHack itself.

Typo in goodie quickstart

In Steps 3 and 7...says "Switch back to you terminal" rather than "Switch back to your terminal". Fixed with pull request #166.

Thanks for the heads-up, @AJDev77.

Spice Templates Overview - Document all Spice.render() params

All the possible inputs to Spice.render() should be covered and documented. Each parameter should also be documented as required or not, and under what circumstances.

Eg. spice_name is required when using any of the DDG Spice templates (ie. carousel, list, etc)

Discrepancies between live site and github markdown

Reading through the DuckPAN install documentation https://duck.co/duckduckhack/installing_duckpan I noticed some wierdness on the site:

long dash rendered wrong:

screenshot from 2014-10-16 16 27 42

link broken by including the closing parentheses:

screenshot from 2014-10-16 16 28 33

Neither of those errors exist in the markdown here on github, it renders as it's supposed to. I'm wondering if the cause is simplly that the site is not up-to-date, or if it's because the markdown is translated to html by a different tool on the site?

Spice Basic Tutorial Typo

The Invoke an Immediate Function section of the Spice Basic Tutorial has a typo in the text:

"After creating our module, we then we turn on JavaScript's Strict Mode which also offers various benefits."

It should probably read:

"After creating our module, we then turn on JavaScript's Strict Mode which also offers various benefits."

Fathead: Document how much data processing is done behind the scenes

I think it's worth documenting how we process the output.txt behind the scenes. For example, it's hard to tell if:

  • Do the keys need to be lowercased?
  • Do I need to add multiple keys for Date.parse() such as Date.parse, Date parse, and Date parse()?
  • Do we need to add the triggers in the keys such as jquery each instead of just each?

CC @jdorweiler

Language API?

I was looking through the DDG RequestHandler code (I was curious about the other kinds of parts of the query you could handle besides the remainder, as mentioned in the Spice basic tutorial). I noticed there's a Language API exposed with the $lang variable, similar to the $loc one for the Location API.

I was thinking it might be pretty useful for IA developers to know that this feature exists, especially if you're interested in getting non-English language speakers to use DDG.

Would you like me to do a quick writeup of that feature and stick it in a PR?

Can't start the duckpan-server because some aliases are already in use

So, I was going through the Goodie Quickstart tutorial and as I got to the step 9, I got a bunch of errors and I was unable to start the server, therefore, not able to continue with this tutorial.

Output:

add_country_alias(): alias already in use: Antigua                                                       
 at /home/codio/perl5/perls/perl-5.18.2/lib/5.18.2/Locale/Codes/Country.pm line 71.                                                                                
add_country_alias(): alias already in use: Barbuda                                                                                                                 
 at /home/codio/perl5/perls/perl-5.18.2/lib/5.18.2/Locale/Codes/Country.pm line 71.                                                                                
add_country_alias(): alias already in use: Russia                                                                                                                  
 at /home/codio/perl5/perls/perl-5.18.2/lib/5.18.2/Locale/Codes/Country.pm line 71.                                                                                
add_country_alias(): alias already in use: Tobago                                                                                                                  
 at /home/codio/perl5/perls/perl-5.18.2/lib/5.18.2/Locale/Codes/Country.pm line 71.                                                                                
add_country_alias(): alias already in use: Trinidad                                                                                                                
 at /home/codio/perl5/perls/perl-5.18.2/lib/5.18.2/Locale/Codes/Country.pm line 71.                                                                                
add_country_alias(): alias already in use: America                                                                                                                 
 at /home/codio/perl5/perls/perl-5.18.2/lib/5.18.2/Locale/Codes/Country.pm line 71.                                                                                
add_country_alias(): alias already in use: Vatican                                                                                                                 
 at /home/codio/perl5/perls/perl-5.18.2/lib/5.18.2/Locale/Codes/Country.pm line 71.                                                                                
add_country_alias(): alias already in use: US Virgin Islands                                                                                                       
 at /home/codio/perl5/perls/perl-5.18.2/lib/5.18.2/Locale/Codes/Country.pm line 71.                                                                                
`DDG::Goodie::IsAwesome::aleksandar-todorovic' is not a module name                                                                                                

Could you update your tutorial to circumvent these issues?

Common paradigms and patterns should be encouraged more!

We're starting to build up a couple of nice work patterns around Goodies and Spices wrt to the "best way" to handle things; for example the NumberStyler and Dates role things.

I think it'd be nice if the docs show people what's available for reuse easily in a more focused way; currently I think users have to be hunting for them already to actually find them. Most people probably end up writing their own, do the PR and then get told "btw this just works, all your labour can be scrapped!"; which seems kinda wasteful.

What do others think? Some sort of "common practises" section?

Example: duckduckgo/zeroclickinfo-goodies#734 (comment)

@mwmiller @moollaza @jagtalon @mattr555

Suggest starting the duckpan install at the beginning of tutorials

At the moment, the process is:

  • Make a plugin - yay!
  • Now sleep on that while duckpan installs. Come back to it tomorrow to see if it worked.

Why not suggest starting the duckpan install at the very beginning of the tutorial, so it can get a head start while you work through the tutorial?

JavaScript - Avoid modifying prototypes, just use local functions

We've seen a few PR's where the contributor has modified the prototype of a native object such as Array.prototype. This practice should be avoided because this affects the prototype globally, even though our Spice callback functions are declared inside a closure.

We should probably add this to the FAQ or possibly common pitfalls

cc// @jagtalon

Goodies: Clarify that even seemingly small files that can be slurped can be bad

If we receive a goodie that reads a file, be sure to check if the files will be expanded (say, a list of electronic parts) or if they are a few MBs big. In that case, it might not be a good idea to keep the IA as a goodie because memory usage will grow since size of the file that was read * number of processes created will be occupied.

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.