Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/common/extensions/docs/server2/README

Issue 10885049: Extensions Docs Server: KILL BUILD.PY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 - If you are not updating the static HTML for a docs page, you will most
39 likely not have to do anything. The docs server will automatically pick
40 up changes to the JSON or IDL schemas.
41
38 - They will mostly be in chrome/common/extensions/api/ or 42 - They will mostly be in chrome/common/extensions/api/ or
Aaron Boodman 2012/08/30 01:47:00 This should probably start with 'Otherwise,', and
cduvall 2012/08/30 02:09:08 Done.
39 chrome/common/extensions/docs/server2/templates/. 43 chrome/common/extensions/docs/server2/templates/.
40 44
41 - Files in templates directory use the Handlebar template language. It is 45 - Files in templates directory use the Handlebar template language. It is
42 extremely simple. See third_party/handlebar/README.md. 46 extremely simple. See third_party/handlebar/README.md.
43 47
44 2. Run './preview.py' 48 2. Run './preview.py'
45 49
46 3. Check your work at http://localhost:8000/(apps|extensions)/<doc_name> 50 3. Check your work at http://localhost:8000/(apps|extensions)/<doc_name>
47 51
48 4. Send a CL and commit files as with any other Chrome change. The live 52 4. Send a CL and commit files as with any other Chrome change. The live
49 server will update within 5-10 minutes. 53 server will update within 5-10 minutes.
50 54
51 55
56 Overview of ./templates Directory
57
58 The ./templates directory has four subdirectories.
59
60 - intros -> The static content that appears before the API reference on API
61 pages.
62
63 - articles -> The static content that appears on non-API pages.
64
65 - public -> The top level templates for all pages.
66
67 - private -> Helper templates used in rendering the docs.
68
69
52 Developing the Server 70 Developing the Server
53 71
54 You shouldn't need app engine locally to develop the server, preview.py should 72 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: 73 be sufficient. If for some reason you want to test against the app engine SDK:
56 74
57 1. Download the python Google App Engine SDK from: 75 1. Download the python Google App Engine SDK from:
58 https://developers.google.com/appengine/downloads 76 https://developers.google.com/appengine/downloads
59 77
60 2. Run './start_dev_server.py <path/to/dev_appserver.py>' 78 2. Run './start_dev_server.py <path/to/dev_appserver.py>'
61 (dev_appserver.py is part of the App Engine) 79 (dev_appserver.py is part of the App Engine)
(...skipping 20 matching lines...) Expand all
82 100
83 4. When prompted for your credentials, enter the information for the account 101 4. When prompted for your credentials, enter the information for the account
84 that has access to the production app. 102 that has access to the production app.
85 103
86 5. Go to http://www.appspot.com, select the docs project, click "versions" in 104 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. 105 the sidebar, and make the version you just deployed the "default" version.
88 106
89 If you get an error about too many versions when deploying, go into this 107 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 108 view and delete the version which was deployed the longest time ago. Then
91 try to deploy again. 109 try to deploy again.
OLDNEW
« chrome/common/extensions/docs/build/build.py ('K') | « chrome/common/extensions/docs/server/main.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698