OLD | NEW |
---|---|
1 Overview | 1 Overview |
2 | 2 |
3 This is a Google App Engine server which serves the documentation for Chrome | 3 This is a Google App Engine server which serves the documentation for Chrome |
4 apps and extensions. At time of this writing, the primary URL is: | 4 apps and extensions. At time of this writing, the primary URL is: |
5 http://developer.chrome.com/. | 5 http://developer.chrome.com/. |
6 | 6 |
7 Documentation for Chrome apps and extensions is partly generated from API | 7 Documentation for Chrome apps and extensions is partly generated from API |
8 definitions (for the reference material), and partly hand-written. | 8 definitions (for the reference material), and partly hand-written. |
9 | 9 |
10 All documentation sources are checked into source control, just like any other | 10 All documentation sources are checked into source control, just like any other |
(...skipping 17 matching lines...) Expand all Loading... | |
28 | 28 |
29 * Users can always find the current doc for any Chrome release channel (i.e., | 29 * Users can always find the current doc for any Chrome release channel (i.e., |
30 /trunk/extensions/, /beta/apps/, etc.). These URLs are updated automatically | 30 /trunk/extensions/, /beta/apps/, etc.). These URLs are updated automatically |
31 with Chrome's release process. | 31 with Chrome's release process. |
32 | 32 |
33 | 33 |
34 Editing Docs | 34 Editing Docs |
35 | 35 |
36 1. Edit files. | 36 1. Edit files. |
37 | 37 |
38 - They will mostly be in chrome/common/extensions/api/ or | 38 - If you are not updating the static HTML for a docs page, you will most |
39 chrome/common/extensions/docs/server2/templates/. | 39 likely not have to do anything. The docs server will automatically pick |
40 up changes to the JSON or IDL schemas. | |
41 | |
42 - Otherwise, they will mostly be in chrome/common/extensions/api/ or | |
not at google - send to devlin
2012/08/30 02:12:08
what is in chrome/common/extensions/api ?
cduvall
2012/08/30 02:19:11
Done.
| |
43 chrome/common/extensions/docs/server2/templates/. See the | |
44 "Overview of ./tempalates Directory" section for more information. | |
not at google - send to devlin
2012/08/30 02:12:08
templates
cduvall
2012/08/30 02:19:11
Done.
| |
40 | 45 |
41 - Files in templates directory use the Handlebar template language. It is | 46 - Files in templates directory use the Handlebar template language. It is |
42 extremely simple. See third_party/handlebar/README.md. | 47 extremely simple. See third_party/handlebar/README.md. |
43 | 48 |
44 2. Run './preview.py' | 49 2. Run './preview.py' |
45 | 50 |
46 3. Check your work at http://localhost:8000/(apps|extensions)/<doc_name> | 51 3. Check your work at http://localhost:8000/(apps|extensions)/<doc_name> |
47 | 52 |
48 4. Send a CL and commit files as with any other Chrome change. The live | 53 4. Send a CL and commit files as with any other Chrome change. The live |
49 server will update within 5-10 minutes. | 54 server will update within 5-10 minutes. |
50 | 55 |
51 | 56 |
57 Overview of ./templates Directory | |
58 | |
59 The ./templates directory has four subdirectories. | |
60 | |
61 - intros -> The static content that appears before the API reference on API | |
62 pages. | |
63 | |
64 - articles -> The static content that appears on non-API pages. | |
65 | |
66 - public -> The top level templates for all pages. | |
67 | |
68 - private -> Helper templates used in rendering the docs. | |
69 | |
not at google - send to devlin
2012/08/30 02:12:08
We should explain what a "template" means somewher
cduvall
2012/08/30 02:19:11
line 46
| |
70 | |
52 Developing the Server | 71 Developing the Server |
53 | 72 |
54 You shouldn't need app engine locally to develop the server, preview.py should | 73 You shouldn't need app engine locally to develop the server, preview.py should |
55 be sufficient. If for some reason you want to test against the app engine SDK: | 74 be sufficient. If for some reason you want to test against the app engine SDK: |
56 | 75 |
57 1. Download the python Google App Engine SDK from: | 76 1. Download the python Google App Engine SDK from: |
58 https://developers.google.com/appengine/downloads | 77 https://developers.google.com/appengine/downloads |
59 | 78 |
60 2. Run './start_dev_server.py <path/to/dev_appserver.py>' | 79 2. Run './start_dev_server.py <path/to/dev_appserver.py>' |
61 (dev_appserver.py is part of the App Engine) | 80 (dev_appserver.py is part of the App Engine) |
(...skipping 20 matching lines...) Expand all Loading... | |
82 | 101 |
83 4. When prompted for your credentials, enter the information for the account | 102 4. When prompted for your credentials, enter the information for the account |
84 that has access to the production app. | 103 that has access to the production app. |
85 | 104 |
86 5. Go to http://www.appspot.com, select the docs project, click "versions" in | 105 5. Go to http://www.appspot.com, select the docs project, click "versions" in |
87 the sidebar, and make the version you just deployed the "default" version. | 106 the sidebar, and make the version you just deployed the "default" version. |
88 | 107 |
89 If you get an error about too many versions when deploying, go into this | 108 If you get an error about too many versions when deploying, go into this |
90 view and delete the version which was deployed the longest time ago. Then | 109 view and delete the version which was deployed the longest time ago. Then |
91 try to deploy again. | 110 try to deploy again. |
OLD | NEW |