Home | History | Annotate | only in /external/chromium/chrome/common/extensions/docs
Up to higher level directory
NameDateSize
a11y.html20-Jun-201434.1K
api_index.html20-Jun-201420.5K
api_other.html20-Jun-201421.3K
apps.html20-Jun-201423.3K
autoupdate.html20-Jun-201426.8K
background_pages.html20-Jun-201422.3K
bookmarks.html20-Jun-2014198.7K
browserAction.html20-Jun-201471.4K
build/20-Jun-2014
content_scripts.html20-Jun-201437K
contextMenus.html20-Jun-2014110K
cookies.html20-Jun-2014154.2K
crx.html20-Jun-201423.1K
css/20-Jun-2014
devguide.html20-Jun-201422.5K
devtools.html20-Jun-201415.4K
docs.html20-Jun-201422.2K
events.html20-Jun-201419.6K
examples/20-Jun-2014
experimental.clipboard.html20-Jun-201437.3K
experimental.contentSettings.misc.html20-Jun-201426K
experimental.contextMenus.html20-Jun-201418.6K
experimental.cookies.html20-Jun-201418.6K
experimental.debugger.html20-Jun-201454K
experimental.extension.html20-Jun-201468.2K
experimental.history.html20-Jun-201418.6K
experimental.html20-Jun-201422K
experimental.idle.html20-Jun-201418.6K
experimental.infobars.html20-Jun-201430.5K
experimental.processes.html20-Jun-201442.7K
experimental.proxy.html20-Jun-201478.4K
experimental.sidebar.html20-Jun-201499K
experimental.tts.html20-Jun-201478.5K
experimental.webInspector.audits.html20-Jun-2014112K
experimental.webInspector.html20-Jun-201421.2K
experimental.webInspector.inspectedWindow.html20-Jun-201429.6K
experimental.webInspector.panels.html20-Jun-2014105.7K
experimental.webInspector.resources.html20-Jun-201438K
experimental.webNavigation.html20-Jun-201497.9K
experimental.webRequest.html20-Jun-2014125.1K
extension.html20-Jun-2014148.4K
external_extensions.html20-Jun-201427.3K
faq.html20-Jun-201439.9K
getstarted.html20-Jun-201424.1K
history.html20-Jun-2014117.5K
hosting.html20-Jun-201421K
i18n-messages.html20-Jun-201426.6K
i18n.html20-Jun-201450.1K
idle.html20-Jun-201427.5K
images/20-Jun-2014
index.html20-Jun-201421.4K
js/20-Jun-2014
management.html20-Jun-2014105.2K
manifest.html20-Jun-201434.7K
match_patterns.html20-Jun-201423.7K
messaging.html20-Jun-201429.6K
notifications.html20-Jun-201422.4K
npapi.html20-Jun-201421.7K
omnibox.html20-Jun-201446.4K
options.html20-Jun-201421.2K
override.html20-Jun-201423K
overview.html20-Jun-201439.3K
packaging.html20-Jun-201423.1K
pageAction.html20-Jun-201461.9K
permission_warnings.html20-Jun-201428.1K
README.txt20-Jun-20143.4K
samples.html20-Jun-2014180.7K
samples.json20-Jun-201471.5K
server/20-Jun-2014
static/20-Jun-2014
tabs.html20-Jun-2014277.8K
template/20-Jun-2014
test.html20-Jun-201425.4K
themes.html20-Jun-201423.6K
tut_analytics.html20-Jun-201425.9K
tut_debugging.html20-Jun-201426K
tut_oauth.html20-Jun-201428.4K
tutorials.html20-Jun-201419K
whats_new.html20-Jun-201425.5K
windows.html20-Jun-2014142.1K
xhr.html20-Jun-201423.4K

README.txt

      1 This directory contains the chromium extensions documentation, and the mechanism
      2 by which they are generated.
      3 
      4 --------------------------------------------------------------------------------
      5 Contributing To The Extension Docs:
      6 
      7 [When making changes, open the relevant /<page>.html in chrome via the file:
      8 scheme. 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
     13 page at ./<page>.html (where <page> is the name of the apimodule ("tabs", etc..)
     14 that 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,
     18 check you changes by viewing /<page>.html. If the file doesn't exist, add it,
     19 and 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 
     24 IN ALL CASES. When you have finished, run build/build.bat (on windows) or
     25 build/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 --------------------------------------------------------------------------------
     29 Building
     30 
     31 Changes to the extension docs must be checked into source control. Any changes
     32 to any input sources require the docs to be regenerated.
     33 
     34 To build the extension docs, run the build.py script in the ./build directory.
     35 This will regenerate the docs and report which, if any, files have changed
     36 and need to be included in the changelist that changed the dependent files.
     37 
     38 Note that the build.py script depends on DumpRenderTree to run, so you must be
     39 able to build DumpRenderTree to build extension_docs. The build.py script will
     40 look in typical locations for the DumpRenderTree executable, but you may set
     41 the path to DumpRenderTree explicitly with --dump-render-tree-path.
     42 
     43 --------------------------------------------------------------------------------
     44 Design
     45 
     46 I. Inputs
     47 
     48 There are two sources of input:
     49 
     50 1) The contents of ../api/extension_api.json
     51 which contains the "IDL" of the the methods, events, and types of the api. This
     52 file is linked as a resource into the chromium binary and then dynamically
     53 bound to chrome.* objects that are exposed to extension contexts. This file
     54 is fed into the api docs template. It contains both name, type information as
     55 well as documentation contained in "description" properties.
     56 
     57 2) The set of ./static/*.html documents. Each of these static html fragments is
     58 inserted into a common template and rendered into ./*.html.
     59 
     60 II. Processing
     61 
     62 The processing of each document page is as follows:
     63 
     64 For each given <page>:
     65 1) A copy of ./page_shell.html is copied to ./<page>.html.
     66 2) This page loads bootstrap.js which inspects the <page> name
     67 3) ./template/api_template.html is loaded and inserted into the body of the page
     68 4) If a ./static/<page>.html exists, its content is inserted into the main
     69 content column of the api_template.html
     70 5) If the <page> matches an api "module" in extension_api.json, the api is then
     71 fed through the api template within api_template.html
     72 6) The result is written on top of the existing /<page>.html. If the new file
     73 differs in content, it is reported as changed by the build.py script.
     74