GithubHelp home page GithubHelp logo

duckduckgo / duckduckhack-docs Goto Github PK

View Code? Open in Web Editor NEW
77.0 24.0 75.0 11.87 MB

DuckDuckHack Instant Answer documentation for developers

Home Page: http://docs.duckduckhack.com

License: Other

duckduckgo instant-answers zeroclickinfo-spice zeroclickinfo-goodies zeroclickinfo-fathead

duckduckhack-docs's Introduction

This repo is now archived

DuckDuckHack went on maintenance mode in 2015 and we aren't in a position to continue it. This repo hasn't been maintained subsequently and so we are archiving it.

Need to report a bug?

If you find a bug or relevancy issue, the best way to report this is via the Feedback button on the DuckDuckGo.com search results page. These issues are compiled and reviewed daily.

Have a suggestion or idea?

The best way to report these is also via the Feedback button on the DuckDuckGo.com search results page.

You can also share your thoughts with our community on Reddit.

duckduckhack-docs's People

Contributors

adityatandon007 avatar alohaas avatar altern8tif avatar andrey-p avatar foresterre avatar gabriellhrn avatar guiltydolphin avatar hackerkid avatar hestben avatar jbarrett avatar jdorweiler avatar joostlawerman avatar kirkins avatar maartengdev avatar mariagraziaalastra avatar mish24 avatar moollaza avatar naveenkarippai avatar navneetsharmaui avatar pjhampton avatar sahildua2305 avatar seales avatar tagawa avatar talsraviv avatar vigzmv avatar vikashvverma avatar xaviervalarino avatar yasharmaster avatar zachthompson 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  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

duckduckhack-docs's Issues

Sign up walkthrough for Codio account is invalid

2a. Sign Up for a Codio Account

The steps mentioned are invalid now.

Solution

Sign up can be simplified by directly visiting Duckduckgo-Codio organisation signup link and then authorizing with github.

Error in image for Section 0.2

image

Noticed that the filepath for the HackerNews Perl file shows lib/DDG/Goodie/HackerNews.pm instead of lib/DDG/Spice/HackerNews.pm.

Settings 'Open In New Window' won't stick

I don't think I found the right 'Instant Answer' here ...

The subject line pretty explains it,
each time I come back to the internet, I have to reset that switch ...
How do I make it stay, I am signed in and
that cloud save, save settings, just don't seem to do shit ...

Use Templating

GitBook provides a templating system that allows us to specify re-usable variables and sections of markup to be used in multiple places.

I think this would be a good move - we have quite a lot of snippets that are repeated in multiple places throughout the docs; this would make it easier to update all of these at once, as well as reduce any typos copying up.

What's more, if we ever change which system we are using (GitBook, RTD, whatever), it should be relatively easy to move the snippets over.

Thoughts @talsraviv @moollaza?

Document Cheat Sheet support for `\n` and `\t`

Cheat Sheets now support newlines and tabs (useful for code blocks).

  • Any literal \n in the JSON will be converted to a <br> in the generated HTML
  • Any literal \t in the JSON will be converted to &nbsp;&nbsp; in the generated HTML

If you want to show a literal \n or \t in your JSON, you need to escape the slash: \\n or \\t

E.g. https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/share/goodie/cheat_sheets/json/common-escape-sequences.json#L48

Remove reference to 'simple' structured answers

There's some doc sections that make reference to the 'simple' structured answers:

screenshot from 2016-03-12 19 22 12

Do we even support these still? AFAICT we are updating all previously 'simple' structured answers to use the new templates - which are more versatile and much more maintainable.

I would vote on removing reference to 'simple' structured answers - and focus on getting people using the full templates so that they know what's available, and have experience working with them which they can use when making more complex Instant Answers.

Maybe there is still a place for them - but I find it isn't much effort to just use a full template rather than the simplified version - and they are also a nightmare with tests!

What do you guys think? Encourage the use? Discourage the use? Wipe them completely?

/cc @talsraviv @moollaza @duckduckgo/community-leaders

Tour Translation

Hey guys!

I recently wanted to "convince" (can you even say that? ;)) someone to use DDG, but i realized, that i could have been able to "convince" him a lot faster if the tour-page would have been in his language.. :J

So i was wondering if you could add the tour page to the list of translatable sites on duck.co, that'd be awesome! :D

Thanks and have a nice weekend!

Dead links

@talsraviv We've got quite a few dead links!

I've run a quick script I wrote on the .md files and it has turned up quite a few bad links. Some of them may be incorrect (a few sites that I've checked out), but many of them are pointing to Goodies or Spices.

I'll try and correct as many as I can, but there are some sections in the docs that talk about instant answers that no longer exist (I'll post with a full list ASAP).

"Tennis help" example no longer works

The intro page gives the example of "tennis help" as a search query that should "show a perfect result, above any ads or regular links". Only thing is the tennis cheat sheet IA isn't triggered by the work "help" any more. So the example doesn't do anything.

This seems to be because the IA is a cheat sheet of the type "reference" and only "guide"s are triggered by the word "help".

This is an issue but I'm not sure whether the solution is to update the documentation or to change the IA trigger. It seems better, to me, to change the IA to make this work again. But I don't know whether the change that broke this was on purpose or not.

Add more information on how FatHead articles are normalized

@moollaza Recently developed duckduckgo/p5-app-duckpan#358 - so we can now interact with FatHeads locally.

Unfortunately, things that look fine in local development do not look at all similar on Beta (missing text, malformed blocks etc.); this is likely due to additional processing done internally.

It would be useful to have some more information on what additional processing is done so we can better account for it when developing the FatHeads in the hope that what is presented on Beta is closer to what we see locally.

cc @moollaza @jdorweiler @jbarrett

pull-request: Avoid merge conflict

Terminology:
original repo - duckduckhack, forked repo - Dev repo (clone of duckduckhack) with Dev write access

The docs on how to submit a pull request does NOT give a hint (especially for noobs to Git) on adding a remote upstream link to original repo from which the Dev forks.

Currently, the process goes like this:

  1. Setup Dev environment
  2. Fork the original repo origin
  3. Work locally, git commit and git push to forked repo origin
  4. Submit a pull request

Problem: There could be new commits on original repo/branch in the meantime and it would result in conflicts if pull request from forked repo/branch is not updated/sync with original repo/branch. This might eventually fail pull request deployment to beta server.

Solution:

  1. Setup Dev environment
  2. Fork the original repo origin
  3. Add a new git remote upstream to link original repo
  4. Work locally, git commit and pull --rebase from upstream remote
  5. Git push to forked repo origin
  6. Submit a pull request

step 4 would sync forked repo/branch with original repo/branch and avoid merge conflicts on pull request (beta server deployment).

That said, there could be multiple ways of doing things with Git but this could be a useful guide for Dev.

I'd be glad to update the Docs if this issue has been validated by community leaders.

Use POD documentation for Roles

backend-reference/goodie-helpers contains some documentation for the GoodieRoles.

Would it be possible to move this documentation over to POD, directly in the roles (as with WhatIs) then have some HTML generated for this (or other means) that the docs then use?

Would make it easier to keep the documentation in sync, as well as make it a lot easier for developers to view the documentation for the roles locally.

Use Code Climate for linting

@talsraviv Code Climate just got a shiny, new, markdown linter, rules for which can be found here (there's a bunch!).

We could use this to enforce consistency across the docs, as well as detecting various errors! It is highly configurable (by the looks of it), so we could easily adapt it to suit our own particular preferences.

/cc @moollaza

tool bar button doesn't have focus

I love duckduckgo.
I recommend it to my friends and to my students.
I notice, though, that on the current release for Firefox [duckduckgo plus 1.1.19] on mac and windows both, when I click the toolbar button and the search window appears, I have to actually click in the duckduckgo search bar to give it focus before I can type in my search term. This is rather annoying, since in previous iterations the bar would have focus automatically, which seems like the natural way for it to operate.
Is there a setting I can configure that will give me that behavior? Or am I stuck forever with an extra click that I'll just have to get used to?
Thanks for your help, and for your wonderful product!

`\n` `\t` not working?

Btw - was playing in codio - is this the right usage of \n? I didn't get a line break, and just ran duckpan upgrade before it

screen shot 2016-03-04 at 9 45 28 am

screen shot 2016-03-04 at 9 45 40 am

(didn't work for code template or keyboard template either)

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.