mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
First three languages from #25. Each is one definition in clis/: - oc py library json, oc py doc reference/datamodel (the .html is appended, matching how the aws shortcuts spell pages) - oc mdn js Array/map, oc mdn css grid-template-columns, and a generic oc mdn doc <path> for everything else under /en-US/docs - oc node api fs Python renders search client-side (Sphinx), MDN serves its search page as a client-rendered shell with only the nav in the HTML, and nodejs.org has no search, so all three get the DuckDuckGo site: filter fallback the aws and gcp shortcuts already use. Short names py, mdn, and node join the alias table; python, mozilla, nodejs, and the full domains resolve as before through the generic rules.
9 lines
349 B
JSON
9 lines
349 B
JSON
{
|
|
"domain": "docs.python.org",
|
|
"commands": {
|
|
"library": { "open": "https://docs.python.org/3/library/{module}.html", "args": ["module"] },
|
|
"doc": { "open": "https://docs.python.org/3/{path}.html", "args": ["path"] },
|
|
"search": { "open": "https://html.duckduckgo.com/html/?q=site%3Adocs.python.org+{query}", "args": ["query"] }
|
|
}
|
|
}
|