• Home
  • History
  • Annotate
  • only in /external/chromium/chrome/common/extensions/docs/
NameDateSize

..21-Nov-20124 KiB

a11y.html21-Nov-201234.1 KiB

api_index.html21-Nov-201220.5 KiB

api_other.html21-Nov-201221.3 KiB

apps.html21-Nov-201223.3 KiB

autoupdate.html21-Nov-201226.8 KiB

background_pages.html21-Nov-201222.3 KiB

bookmarks.html21-Nov-2012198.7 KiB

browserAction.html21-Nov-201271.4 KiB

build/21-Nov-20124 KiB

content_scripts.html21-Nov-201237 KiB

contextMenus.html21-Nov-2012110 KiB

cookies.html21-Nov-2012154.2 KiB

crx.html21-Nov-201223.1 KiB

css/21-Nov-20124 KiB

devguide.html21-Nov-201222.5 KiB

devtools.html21-Nov-201215.4 KiB

docs.html21-Nov-201222.2 KiB

events.html21-Nov-201219.6 KiB

examples/21-Nov-20124 KiB

experimental.clipboard.html21-Nov-201237.3 KiB

experimental.contentSettings.misc.html21-Nov-201226 KiB

experimental.contextMenus.html21-Nov-201218.6 KiB

experimental.cookies.html21-Nov-201218.6 KiB

experimental.debugger.html21-Nov-201254 KiB

experimental.extension.html21-Nov-201268.2 KiB

experimental.history.html21-Nov-201218.6 KiB

experimental.html21-Nov-201222 KiB

experimental.idle.html21-Nov-201218.6 KiB

experimental.infobars.html21-Nov-201230.5 KiB

experimental.processes.html21-Nov-201242.7 KiB

experimental.proxy.html21-Nov-201278.4 KiB

experimental.sidebar.html21-Nov-201299 KiB

experimental.tts.html21-Nov-201278.5 KiB

experimental.webInspector.audits.html21-Nov-2012112 KiB

experimental.webInspector.html21-Nov-201221.2 KiB

experimental.webInspector.inspectedWindow.html21-Nov-201229.6 KiB

experimental.webInspector.panels.html21-Nov-2012105.7 KiB

experimental.webInspector.resources.html21-Nov-201238 KiB

experimental.webNavigation.html21-Nov-201297.9 KiB

experimental.webRequest.html21-Nov-2012125.1 KiB

extension.html21-Nov-2012148.4 KiB

external_extensions.html21-Nov-201227.3 KiB

faq.html21-Nov-201239.9 KiB

getstarted.html21-Nov-201224.1 KiB

history.html21-Nov-2012117.5 KiB

hosting.html21-Nov-201221 KiB

i18n-messages.html21-Nov-201226.6 KiB

i18n.html21-Nov-201250.1 KiB

idle.html21-Nov-201227.5 KiB

images/21-Nov-20124 KiB

index.html21-Nov-201221.4 KiB

js/21-Nov-20124 KiB

management.html21-Nov-2012105.2 KiB

manifest.html21-Nov-201234.7 KiB

match_patterns.html21-Nov-201223.7 KiB

messaging.html21-Nov-201229.6 KiB

notifications.html21-Nov-201222.4 KiB

npapi.html21-Nov-201221.7 KiB

omnibox.html21-Nov-201246.4 KiB

options.html21-Nov-201221.2 KiB

override.html21-Nov-201223 KiB

overview.html21-Nov-201239.3 KiB

packaging.html21-Nov-201223.1 KiB

pageAction.html21-Nov-201261.9 KiB

permission_warnings.html21-Nov-201228.1 KiB

README.txt21-Nov-20123.4 KiB

samples.html21-Nov-2012180.7 KiB

samples.json21-Nov-201271.5 KiB

server/21-Nov-20124 KiB

static/21-Nov-20124 KiB

tabs.html21-Nov-2012277.8 KiB

template/21-Nov-20124 KiB

test.html21-Nov-201225.4 KiB

themes.html21-Nov-201223.6 KiB

tut_analytics.html21-Nov-201225.9 KiB

tut_debugging.html21-Nov-201226 KiB

tut_oauth.html21-Nov-201228.4 KiB

tutorials.html21-Nov-201219 KiB

whats_new.html21-Nov-201225.5 KiB

windows.html21-Nov-2012142.1 KiB

xhr.html21-Nov-201223.4 KiB

README.txt

1This directory contains the chromium extensions documentation, and the mechanism
2by which they are generated.
3
4--------------------------------------------------------------------------------
5Contributing To The Extension Docs:
6
7[When making changes, open the relevant /<page>.html in chrome via the file:
8scheme. If you do, you can refresh to instantly see any changes you make].
9
10*I want to document methods, events or parameters in the api itself:
11=>Edit ../api/extension_api.json. Usually you can just add or edit the
12"description" property. This will appear automatically in the corresponding doc
13page at ./<page>.html (where <page> is the name of the apimodule ("tabs", etc..)
14that contains the change you are making.
15
16*I want to edit static content for an API reference module:
17=>Look in /static/<page>.html (for your module). If the file exists, edit it,
18check you changes by viewing /<page>.html. If the file doesn't exist, add it,
19and make a copy of /template/page_shell.html and copy it to /<page>.html.
20
21*I want to edit or add a purely static page:
22=>Follow the same steps for editing static content for an API page.
23
24IN ALL CASES. When you have finished, run build/build.bat (on windows) or
25build/build.py (on mac/linux). This may generate new files or changes to the
26/*.html pages. Include any new or changed files in the changelist you create.
27
28--------------------------------------------------------------------------------
29Building
30
31Changes to the extension docs must be checked into source control. Any changes
32to any input sources require the docs to be regenerated.
33
34To build the extension docs, run the build.py script in the ./build directory.
35This will regenerate the docs and report which, if any, files have changed
36and need to be included in the changelist that changed the dependent files.
37
38Note that the build.py script depends on DumpRenderTree to run, so you must be
39able to build DumpRenderTree to build extension_docs. The build.py script will
40look in typical locations for the DumpRenderTree executable, but you may set
41the path to DumpRenderTree explicitly with --dump-render-tree-path.
42
43--------------------------------------------------------------------------------
44Design
45
46I. Inputs
47
48There are two sources of input:
49
501) The contents of ../api/extension_api.json
51which contains the "IDL" of the the methods, events, and types of the api. This
52file is linked as a resource into the chromium binary and then dynamically
53bound to chrome.* objects that are exposed to extension contexts. This file
54is fed into the api docs template. It contains both name, type information as
55well as documentation contained in "description" properties.
56
572) The set of ./static/*.html documents. Each of these static html fragments is
58inserted into a common template and rendered into ./*.html.
59
60II. Processing
61
62The processing of each document page is as follows:
63
64For each given <page>:
651) A copy of ./page_shell.html is copied to ./<page>.html.
662) This page loads bootstrap.js which inspects the <page> name
673) ./template/api_template.html is loaded and inserted into the body of the page
684) If a ./static/<page>.html exists, its content is inserted into the main
69content column of the api_template.html
705) If the <page> matches an api "module" in extension_api.json, the api is then
71fed through the api template within api_template.html
726) The result is written on top of the existing /<page>.html. If the new file
73differs in content, it is reported as changed by the build.py script.
74