| OLD | NEW |
| 1 // === Overview === | 1 // === Overview === |
| 2 // | 2 // |
| 3 // This file configures where to find and how to serve content in the docserver. | 3 // This file configures where to find and how to serve content in the docserver. |
| 4 // It's the most fundamentally important file in all of the docserver. | 4 // It's the most fundamentally important file in all of the docserver. |
| 5 // | 5 // |
| 6 // === Format === | 6 // === Format === |
| 7 // | 7 // |
| 8 // Each entry declares a rule with: | 8 // Each entry declares a rule with: |
| 9 // * An arbitrary identifier key e.g. "cr-extensions-examples". | 9 // * An arbitrary identifier key e.g. "cr-extensions-examples". |
| 10 // * What URL the rule should be invoked with, given by "serveFrom", e.g. | 10 // * What URL the rule should be invoked with, given by "serveFrom", e.g. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // zip files. For safety this isn't supported for arbitrary URLs, only those | 36 // zip files. For safety this isn't supported for arbitrary URLs, only those |
| 37 // within a rule that has "supportsZip": true. | 37 // within a rule that has "supportsZip": true. |
| 38 // * "supportsTemplates" indicates whether HTML files should be treated and | 38 // * "supportsTemplates" indicates whether HTML files should be treated and |
| 39 // renderered as templates, versus just plain text. Complex documentation | 39 // renderered as templates, versus just plain text. Complex documentation |
| 40 // which interacts with docserver features (like API listing) need to set | 40 // which interacts with docserver features (like API listing) need to set |
| 41 // this to true. Otherwise, it's safer and more efficient to omit it. | 41 // this to true. Otherwise, it's safer and more efficient to omit it. |
| 42 | 42 |
| 43 { | 43 { |
| 44 "cr-extensions-examples": { | 44 "cr-extensions-examples": { |
| 45 "chromium": { | 45 "chromium": { |
| 46 "dir": "docs/examples" | 46 "dir": "chrome/common/extensions/docs/examples" |
| 47 }, | 47 }, |
| 48 "serveFrom": "extensions/examples", | 48 "serveFrom": "extensions/examples", |
| 49 "supportsZip": true | 49 "supportsZip": true |
| 50 }, | 50 }, |
| 51 "cr-public": { | 51 "cr-public": { |
| 52 "chromium": { | 52 "chromium": { |
| 53 "dir": "docs/templates/public" | 53 "dir": "chrome/common/extensions/docs/templates/public" |
| 54 }, | 54 }, |
| 55 "serveFrom": "", | 55 "serveFrom": "", |
| 56 "supportsTemplates": true | 56 "supportsTemplates": true |
| 57 }, | 57 }, |
| 58 "cr-static": { | 58 "cr-static": { |
| 59 "chromium": { | 59 "chromium": { |
| 60 "dir": "docs/static" | 60 "dir": "chrome/common/extensions/docs/static" |
| 61 }, | 61 }, |
| 62 "serveFrom": "static" | 62 "serveFrom": "static" |
| 63 }, | 63 }, |
| 64 "devtools-docs": { | 64 "devtools-docs": { |
| 65 "github": { | 65 "github": { |
| 66 "owner": "GoogleChrome", | 66 "owner": "GoogleChrome", |
| 67 "repo": "devtools-docs-migration" | 67 "repo": "devtools-docs-migration" |
| 68 }, | 68 }, |
| 69 "serveFrom": "devtools" | 69 "serveFrom": "devtools" |
| 70 }, | 70 }, |
| 71 "multidevice-docs": { | 71 "multidevice-docs": { |
| 72 "github": { | 72 "github": { |
| 73 "owner": "GoogleChrome", | 73 "owner": "GoogleChrome", |
| 74 "repo": "multi-device" | 74 "repo": "multi-device" |
| 75 }, | 75 }, |
| 76 "serveFrom": "multidevice" | 76 "serveFrom": "multidevice" |
| 77 }, | 77 }, |
| 78 "webstore-docs": { | 78 "webstore-docs": { |
| 79 "github": { | 79 "github": { |
| 80 "owner": "GoogleChrome", | 80 "owner": "GoogleChrome", |
| 81 "repo": "webstore-docs" | 81 "repo": "webstore-docs" |
| 82 }, | 82 }, |
| 83 "serveFrom": "webstore" | 83 "serveFrom": "webstore" |
| 84 } | 84 } |
| 85 } | 85 } |
| OLD | NEW |