-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
Description
https://documents.devdocs.io/docs.json currently does not include the search aliases as defined in
devdocs/assets/javascripts/models/entry.js
Lines 20 to 54 in 5c82069
| static ALIASES = { | |
| angular: "ng", | |
| "angular.js": "ng", | |
| "backbone.js": "bb", | |
| "c++": "cpp", | |
| coffeescript: "cs", | |
| crystal: "cr", | |
| elixir: "ex", | |
| javascript: "js", | |
| julia: "jl", | |
| jquery: "$", | |
| "knockout.js": "ko", | |
| kubernetes: "k8s", | |
| less: "ls", | |
| lodash: "_", | |
| löve: "love", | |
| marionette: "mn", | |
| markdown: "md", | |
| matplotlib: "mpl", | |
| modernizr: "mdr", | |
| "moment.js": "mt", | |
| openjdk: "java", | |
| nginx: "ngx", | |
| numpy: "np", | |
| pandas: "pd", | |
| postgresql: "pg", | |
| python: "py", | |
| "ruby.on.rails": "ror", | |
| ruby: "rb", | |
| rust: "rs", | |
| sass: "scss", | |
| tensorflow: "tf", | |
| typescript: "ts", | |
| "underscore.js": "_", | |
| }; |
Lines 81 to 87 in 5c82069
| def as_json | |
| json = { name: name, slug: slug, type: type } | |
| json[:links] = links if links.present? | |
| json[:version] = version if version.present? || defined?(@version) | |
| json[:release] = release if release.present? | |
| json | |
| end |
Including the search aliases will help external tools integrate better with DevDocs.
Reference issue raycast/extensions#14100 (comment)
djpowers