Searches the MDN Web Docs for a search term. Includes an RStudio addin for quick and seamless searching: highlight a term in the source code and run the addin to search MDN. If no text is highlighted, the addin opens a Shiny gadget for you to enter your search term.
Usage
mdn_search(
term,
browse = TRUE,
topics = c("js", "api", "css", "html", "svg"),
locale = "en-US"
)
mdn_gadget(browse = TRUE, locale = NULL)Arguments
- term
Search term
- browse
Should the search results be opened in a browser window? If not, the URL is returned instead.
- topics
A selection of topics to search, choosing from
"js","api","css","html","svg","mobile","canvas","webdev", and"standards".- locale
The locale string for the search query. Default is
"en-US", or set toNULLto search MDN without specifying a locale.
