|
1 | 1 | angular.module('gcloud.docs') |
2 | 2 | .value('pages', { |
| 3 | + |
| 4 | + //--------------------------------------------- |
| 5 | + // Link schema: |
| 6 | + //--------------------------------------------- |
| 7 | + // key: { |
| 8 | + // title: 'Display Name for Link', |
| 9 | + // _url: '{baseUrl}/module-name', |
| 10 | + // |
| 11 | + // pages: [ |
| 12 | + // title: 'Display Name for Sub-Page Link', |
| 13 | + // url: '/path-relevant-to-parent-url' |
| 14 | + // ] |
| 15 | + // } |
| 16 | + //--------------------------------------------- |
| 17 | + |
3 | 18 | gcloud: { |
4 | 19 | title: 'gcloud', |
5 | 20 | _url: '{baseUrl}' |
@@ -62,8 +77,20 @@ angular.module('gcloud.docs') |
62 | 77 | VERSIONS: { |
63 | 78 | // Give a version with/without a comparator, anything semver: |
64 | 79 | // https://github.com/npm/node-semver#versions |
65 | | - // List should be in ascending order. |
66 | | - '<=0.7.1': ['gcloud', 'datastore', 'storage'], |
67 | | - '>0.7.1': ['gcloud', 'datastoreWithTransaction', 'pubsub', 'storage'] |
| 80 | + // |
| 81 | + // Multiple keys may be used to match a version. |
| 82 | + // |
| 83 | + // Example: |
| 84 | + // A user is browsing the docs for 0.7.0. If the list below contains the |
| 85 | + // keys: "*", ">0.4.0", and "0.7.0", all of the contents will be joined. |
| 86 | + // |
| 87 | + // Notes on ordering: |
| 88 | + // These are sorted alphabetically by `module`.title. |
| 89 | + // |
| 90 | + // To keep the documentation for the main module, `gcloud`, on top of the |
| 91 | + // link list, **make sure the title is `gcloud`** |
| 92 | + '*': ['gcloud', 'storage'], |
| 93 | + '<0.8.0': ['datastore'], |
| 94 | + '>=0.8.0': ['datastoreWithTransaction', 'pubsub'] |
68 | 95 | } |
69 | 96 | }); |
0 commit comments