|
| 1 | +import prefix from './prefix'; |
| 2 | + |
| 3 | +export default (base) => [ |
| 4 | + { |
| 5 | + text: 'Getting Started', |
| 6 | + collapsed: false, |
| 7 | + items: prefix(base, 'getting-started', [ |
| 8 | + {text: 'Installation', link: ''}, |
| 9 | + {text: 'Upgrade Guide', link: 'upgrade'}, |
| 10 | + {text: 'Core Concepts', link: 'core-concepts'}, |
| 11 | + {text: 'Directory Structure', link: 'directory-structure'}, |
| 12 | + ]), |
| 13 | + }, |
| 14 | + { |
| 15 | + text: 'Tutorial', |
| 16 | + collapsed: true, |
| 17 | + items: prefix(base, 'tutorial', [ |
| 18 | + {text: '1. Getting Started', link: ''}, |
| 19 | + {text: '2. Models', link: '02-models'}, |
| 20 | + {text: '3. Server and Schemas', link: '03-server-and-schemas'}, |
| 21 | + {text: '4. Relationships', link: '04-relationships'}, |
| 22 | + {text: '5. Creating Resources', link: '05-creating-resources'}, |
| 23 | + {text: '6. Modifying Resources', link: '06-modifying-resources'}, |
| 24 | + {text: '7. Deleting Resources', link: '07-deleting-resources'}, |
| 25 | + {text: '8. Fetching Resources', link: '08-fetching-resources'}, |
| 26 | + ]), |
| 27 | + }, |
| 28 | + { |
| 29 | + text: 'Servers', |
| 30 | + collapsed: false, |
| 31 | + items: prefix(base, 'servers', [ |
| 32 | + {text: 'The Basics', link: ''}, |
| 33 | + {text: 'Events', link: 'events'}, |
| 34 | + ]), |
| 35 | + }, |
| 36 | + { |
| 37 | + text: 'Schemas', |
| 38 | + collapsed: false, |
| 39 | + items: prefix(base, 'schemas', [ |
| 40 | + {text: 'The Basics', link: ''}, |
| 41 | + {text: 'Identifier', link: 'identifier'}, |
| 42 | + {text: 'Attributes', link: 'attributes'}, |
| 43 | + {text: 'Relationships', link: 'relationships'}, |
| 44 | + {text: 'Eager Loading', link: 'eager-loading'}, |
| 45 | + {text: 'Sorting', link: 'sorting'}, |
| 46 | + {text: 'Pagination', link: 'pagination'}, |
| 47 | + {text: 'Filters', link: 'filters'}, |
| 48 | + {text: 'Soft Deleting', link: 'soft-deleting'}, |
| 49 | + ]), |
| 50 | + }, |
| 51 | + { |
| 52 | + text: 'Routing', |
| 53 | + collapsed: false, |
| 54 | + items: prefix(base, 'routing', [ |
| 55 | + {text: 'Routing', link: ''}, |
| 56 | + {text: 'Controllers', link: 'controllers'}, |
| 57 | + {text: 'Writing Actions', link: 'writing-actions'}, |
| 58 | + {text: 'Custom Actions', link: 'custom-actions'}, |
| 59 | + ]), |
| 60 | + }, |
| 61 | + { |
| 62 | + text: 'Requests', |
| 63 | + collapsed: false, |
| 64 | + items: prefix(base, 'requests', [ |
| 65 | + {text: 'The Basics', link: ''}, |
| 66 | + {text: 'Authorization', link: 'authorization'}, |
| 67 | + {text: 'JSON:API Compliance', link: 'compliance'}, |
| 68 | + {text: 'Resources', link: 'resources'}, |
| 69 | + {text: 'Query Parameters', link: 'query-parameters'}, |
| 70 | + ]), |
| 71 | + }, |
| 72 | + { |
| 73 | + text: 'Responses', |
| 74 | + collapsed: false, |
| 75 | + items: prefix(base, 'responses', [ |
| 76 | + {text: 'JSON:API Documents', link: ''}, |
| 77 | + {text: 'Errors', link: 'errors'}, |
| 78 | + ]), |
| 79 | + }, |
| 80 | + { |
| 81 | + text: 'API Resources', |
| 82 | + collapsed: true, |
| 83 | + items: prefix(base, 'resources', [ |
| 84 | + {text: 'The Basics', link: ''}, |
| 85 | + {text: 'Attributes', link: 'attributes'}, |
| 86 | + {text: 'Relationships', link: 'relationships'}, |
| 87 | + {text: 'Meta', link: 'meta'}, |
| 88 | + {text: 'Links', link: 'links'}, |
| 89 | + ]), |
| 90 | + }, |
| 91 | + { |
| 92 | + text: 'Digging Deeper', |
| 93 | + collapsed: false, |
| 94 | + items: prefix(base, 'digging-deeper', [ |
| 95 | + {text: 'Artisan Console', link: 'artisan'}, |
| 96 | + {text: 'Countable', link: 'countable'}, |
| 97 | + {text: 'Localisation', link: 'localisation'}, |
| 98 | + {text: 'Proxies', link: 'proxies'}, |
| 99 | + {text: 'Non-Eloquent Models', link: 'non-eloquent'}, |
| 100 | + {text: 'Polymorphic to Many', link: 'polymorphic-to-many'}, |
| 101 | + ]), |
| 102 | + }, |
| 103 | + { |
| 104 | + text: 'Testing', |
| 105 | + collapsed: false, |
| 106 | + items: prefix(base, 'testing', [ |
| 107 | + {text: 'Getting Started', link: ''}, |
| 108 | + {text: 'Resources', link: 'resources'}, |
| 109 | + {text: 'Relationships', link: 'relationships'}, |
| 110 | + {text: 'Requests', link: 'requests'}, |
| 111 | + {text: 'Assertions', link: 'assertions'}, |
| 112 | + ]), |
| 113 | + }, |
| 114 | +]; |
0 commit comments