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 27 matching lines...) Expand all Loading... |
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-chrome-docs-home": { | 44 "cr-chrome-docs-home": { |
45 "chromium": { | 45 "chromium": { |
46 "dir": "chrome/docs" | 46 "dir": "chrome/docs" |
47 }, | 47 }, |
| 48 "defaultExtensions": [".html", ".md"], |
48 "serveFrom": "home", | 49 "serveFrom": "home", |
49 "supportsTemplates": true | 50 "supportsTemplates": true |
50 }, | 51 }, |
51 "cr-extensions-examples": { | 52 "cr-extensions-examples": { |
52 "chromium": { | 53 "chromium": { |
53 "dir": "chrome/common/extensions/docs/examples" | 54 "dir": "chrome/common/extensions/docs/examples" |
54 }, | 55 }, |
55 "serveFrom": "extensions/examples", | 56 "serveFrom": "extensions/examples", |
56 "supportsZip": true | 57 "supportsZip": true |
57 }, | 58 }, |
58 "cr-public": { | 59 "cr-public": { |
59 "chromium": { | 60 "chromium": { |
60 "dir": "chrome/common/extensions/docs/templates/public" | 61 "dir": "chrome/common/extensions/docs/templates/public" |
61 }, | 62 }, |
| 63 "defaultExtensions": [".html", ".md"], |
62 "serveFrom": "", | 64 "serveFrom": "", |
63 "supportsTemplates": true | 65 "supportsTemplates": true |
64 }, | 66 }, |
65 "cr-static": { | 67 "cr-static": { |
66 "chromium": { | 68 "chromium": { |
67 "dir": "chrome/common/extensions/docs/static" | 69 "dir": "chrome/common/extensions/docs/static" |
68 }, | 70 }, |
69 "serveFrom": "static" | 71 "serveFrom": "static" |
70 }, | 72 }, |
71 "cr-native-client": { | 73 "cr-native-client": { |
72 "chromium": { | 74 "chromium": { |
73 "dir": "native_client_sdk/doc_generated" | 75 "dir": "native_client_sdk/doc_generated" |
74 }, | 76 }, |
| 77 "defaultExtensions": [".html", ".md"], |
75 "serveFrom": "native-client", | 78 "serveFrom": "native-client", |
76 "supportsTemplates": true | 79 "supportsTemplates": true |
77 }, | 80 }, |
78 "devtools-docs": { | 81 "devtools-docs": { |
79 "gcs": { | 82 "gcs": { |
80 "bucket": "gs://chromedocs-devtools" | 83 "bucket": "gs://chromedocs-devtools" |
81 }, | 84 }, |
82 "serveFrom": "devtools", | 85 "serveFrom": "devtools", |
83 "supportsTemplates": true | 86 "supportsTemplates": true |
84 }, | 87 }, |
85 "multidevice-docs": { | 88 "multidevice-docs": { |
86 "gcs": { | 89 "gcs": { |
87 "bucket": "gs://chromedocs-multidevice" | 90 "bucket": "gs://chromedocs-multidevice" |
88 }, | 91 }, |
89 "serveFrom": "multidevice", | 92 "serveFrom": "multidevice", |
90 "supportsTemplates": true | 93 "supportsTemplates": true |
91 }, | 94 }, |
92 "webstore-docs": { | 95 "webstore-docs": { |
93 "gcs": { | 96 "gcs": { |
94 "bucket": "gs://chromedocs-webstore" | 97 "bucket": "gs://chromedocs-webstore" |
95 }, | 98 }, |
96 "serveFrom": "webstore", | 99 "serveFrom": "webstore", |
97 "supportsTemplates": true | 100 "supportsTemplates": true |
98 } | 101 } |
99 } | 102 } |
OLD | NEW |