Add field to docs.json denoting available aliases
Showing the changes to lib/docs (1 of 6 files). Show all
Unified · Split
| @@ -20,6 +20,7 @@ module Docs · 19 unmodified lines | |||
| 20 | if doc.options[:attribution].is_a?(String) | 20 | if doc.options[:attribution].is_a?(String) |
| 21 | json[:attribution] = doc.options[:attribution].strip | 21 | json[:attribution] = doc.options[:attribution].strip |
| 22 | end | 22 | end |
| 23 | json[:alias] = App.docs_aliases[json["slug"].try(:to_sym)] | ||
| 23 | result << json | 24 | result << json |
| 24 | end | 25 | end |
| 25 | end | 26 | end |