|
1 | 1 | // config for all the things
|
2 |
| - |
| 2 | +// docsSections defines the docs tree. Items are either a path to a markdown file, |
| 3 | +// or a group object with title, path, description, items |
| 4 | +// top-level group objects also have colorClass |
3 | 5 | const docsSections = [
|
4 | 6 | {
|
5 |
| - id: 'tutorials', |
6 |
| - text: 'Tutorials', |
7 |
| - link: '/docs/tutorials', |
8 |
| - subtitle: 'Learn how Qri Works', |
| 7 | + title: 'Tutorials', |
| 8 | + path: '/docs/tutorials', |
9 | 9 | description: 'Welcome! These tutorials are aimed at beginners and will break things down so you can get started quickly.',
|
10 |
| - colorClass: 'text-qriorange-600' |
| 10 | + colorClass: 'text-qriorange-600', |
| 11 | + items: [] |
11 | 12 | },
|
12 | 13 | {
|
13 |
| - id: 'guides', |
14 |
| - text: 'Guides', |
15 |
| - link: '/docs/guides', |
16 |
| - subtitle: 'Learn how to do things in Qri', |
| 14 | + title: 'Guides', |
| 15 | + path: '/docs/guides', |
17 | 16 | description: 'These step-by-step guides will help you perform specific tasks. Refer to them when you need to do one thing well.',
|
18 |
| - colorClass: 'text-qripink-600' |
| 17 | + colorClass: 'text-qripink-600', |
| 18 | + items: [] |
19 | 19 | },
|
20 | 20 | {
|
21 |
| - id: 'concepts', |
22 |
| - text: 'Concepts', |
23 |
| - link: '/docs/concepts', |
24 |
| - subtitle: 'Dive Deeper into Qri', |
| 21 | + title: 'Concepts', |
| 22 | + path: '/docs/concepts', |
25 | 23 | description: 'These docs will help explain Qri\'s core concepts and underlying technology',
|
26 |
| - colorClass: 'text-qrigreen-600' |
| 24 | + colorClass: 'text-qrigreen-600', |
| 25 | + items: [ |
| 26 | + { |
| 27 | + title: 'Understanding Qri', |
| 28 | + path: '/docs/concepts/understanding-qri', |
| 29 | + description: 'This section provides detailed explanations of core Qri concepts', |
| 30 | + items: [ |
| 31 | + '/docs/concepts/understanding-qri/what-is-qri', |
| 32 | + '/docs/concepts/understanding-qri/how-qri-defines-a-dataset', |
| 33 | + '/docs/concepts/understanding-qri/how-qri-version-control-works', |
| 34 | + '/docs/concepts/understanding-qri/how-qri-data-transforms-and-automation-work' |
| 35 | + ] |
| 36 | + }, |
| 37 | + { |
| 38 | + title: 'Under the Hood', |
| 39 | + path: '/docs/concepts/under-the-hood', |
| 40 | + description: 'Dive deeper into underlying Qri concepts', |
| 41 | + items: [ |
| 42 | + '/docs/concepts/under-the-hood/content-addressing', |
| 43 | + '/docs/concepts/under-the-hood/how-qri-uses-ipfs', |
| 44 | + '/docs/concepts/under-the-hood/why-starlark' |
| 45 | + ] |
| 46 | + } |
| 47 | + ] |
27 | 48 | },
|
28 | 49 | {
|
29 |
| - id: 'reference', |
30 |
| - text: 'Reference', |
31 |
| - link: '/docs/reference', |
32 |
| - subtitle: 'Get the specs', |
| 50 | + title: 'Reference', |
| 51 | + path: '/docs/reference', |
33 | 52 | description: 'These technical reference docs will help you use Qri\'s APIs and write custom data transform scripts',
|
34 |
| - colorClass: 'text-qrinavy-300' |
| 53 | + colorClass: 'text-qrinavy-300', |
| 54 | + items: [ |
| 55 | + { |
| 56 | + title: 'Starlark Language', |
| 57 | + path: '/docs/reference/starlark-language', |
| 58 | + description: 'Starlark is an untyped dynamic language with high-level data types, first-class functions with lexical scope, and automatic memory management or garbage collection.', |
| 59 | + items: [ |
| 60 | + '/docs/reference/starlark-language/overview', |
| 61 | + '/docs/reference/starlark-language/lexical-elements', |
| 62 | + '/docs/reference/starlark-language/data-types', |
| 63 | + '/docs/reference/starlark-language/value-concepts', |
| 64 | + '/docs/reference/starlark-language/expressions', |
| 65 | + '/docs/reference/starlark-language/statements', |
| 66 | + '/docs/reference/starlark-language/built-in-constants-and-functions', |
| 67 | + { |
| 68 | + title: 'Built-in Methods', |
| 69 | + path: '/docs/reference/starlark-language/built-in-methods', |
| 70 | + description: 'Built-in methods for the Starlark data types', |
| 71 | + items: [ |
| 72 | + '/docs/reference/starlark-language/built-in-methods/dict', |
| 73 | + '/docs/reference/starlark-language/built-in-methods/list', |
| 74 | + '/docs/reference/starlark-language/built-in-methods/set', |
| 75 | + '/docs/reference/starlark-language/built-in-methods/string' |
| 76 | + ] |
| 77 | + } |
| 78 | + ] |
| 79 | + }, |
| 80 | + { |
| 81 | + title: 'Qri HTTP API', |
| 82 | + path: '/docs/reference/qri-http-api', |
| 83 | + description: 'You can interacto with qri.cloud or with your local qri node via HTTP requests', |
| 84 | + items: [ |
| 85 | + '/docs/reference/qri-http-api/json-api-spec' |
| 86 | + ] |
| 87 | + }, |
| 88 | + { |
| 89 | + title: 'Starlark Libraries', |
| 90 | + path: '/docs/reference/starlark-libraries', |
| 91 | + description: 'These packages extend Starlark\'s core functionality, and can turbo-charge your Qri transform scripts', |
| 92 | + items: [ |
| 93 | + '/docs/reference/starlark-libraries/overview', |
| 94 | + '/docs/reference/starlark-libraries/bsoup', |
| 95 | + { |
| 96 | + title: 'compress', |
| 97 | + path: '/docs/reference/starlark-libraries/compress', |
| 98 | + description: 'A set of Starlark packages for various types of compression/decompression', |
| 99 | + items: [ |
| 100 | + '/docs/reference/starlark-libraries/compress/gzip' |
| 101 | + ] |
| 102 | + }, |
| 103 | + { |
| 104 | + title: 'encoding', |
| 105 | + path: '/docs/reference/starlark-libraries/encoding', |
| 106 | + description: 'A set of Starlark packages for various types of encoding/decoding', |
| 107 | + items: [ |
| 108 | + '/docs/reference/starlark-libraries/encoding/base64', |
| 109 | + '/docs/reference/starlark-libraries/encoding/csv', |
| 110 | + '/docs/reference/starlark-libraries/encoding/json', |
| 111 | + '/docs/reference/starlark-libraries/encoding/yaml' |
| 112 | + ] |
| 113 | + }, |
| 114 | + '/docs/reference/starlark-libraries/geo', |
| 115 | + '/docs/reference/starlark-libraries/hash', |
| 116 | + '/docs/reference/starlark-libraries/html', |
| 117 | + '/docs/reference/starlark-libraries/http', |
| 118 | + '/docs/reference/starlark-libraries/math', |
| 119 | + '/docs/reference/starlark-libraries/re', |
| 120 | + '/docs/reference/starlark-libraries/time', |
| 121 | + '/docs/reference/starlark-libraries/xlsx', |
| 122 | + '/docs/reference/starlark-libraries/zipfile' |
| 123 | + ] |
| 124 | + } |
| 125 | + ] |
35 | 126 | }
|
36 | 127 | // {
|
37 | 128 | // id: 'transform-snippets',
|
@@ -78,8 +169,8 @@ const config = {
|
78 | 169 | ],
|
79 | 170 | docsLinks: [
|
80 | 171 | ...docsSections.map((d) => ({
|
81 |
| - text: d.text, |
82 |
| - link: d.link, |
| 172 | + text: d.title, |
| 173 | + link: d.path, |
83 | 174 | colorClass: d.colorClass
|
84 | 175 | })),
|
85 | 176 | {
|
|
0 commit comments