Home | History | Annotate | only in /external/chromium/chrome/common/extensions/docs
Up to higher level directory
NameDateSize
a11y.html11-Dec-201334.1K
api_index.html11-Dec-201320.5K
api_other.html11-Dec-201321.3K
apps.html11-Dec-201323.3K
autoupdate.html11-Dec-201326.8K
background_pages.html11-Dec-201322.3K
bookmarks.html11-Dec-2013198.7K
browserAction.html11-Dec-201371.4K
build/11-Dec-2013
content_scripts.html11-Dec-201337K
contextMenus.html11-Dec-2013110K
cookies.html11-Dec-2013154.2K
crx.html11-Dec-201323.1K
css/11-Dec-2013
devguide.html11-Dec-201322.5K
devtools.html11-Dec-201315.4K
docs.html11-Dec-201322.2K
events.html11-Dec-201319.6K
examples/11-Dec-2013
experimental.clipboard.html11-Dec-201337.3K
experimental.contentSettings.misc.html11-Dec-201326K
experimental.contextMenus.html11-Dec-201318.6K
experimental.cookies.html11-Dec-201318.6K
experimental.debugger.html11-Dec-201354K
experimental.extension.html11-Dec-201368.2K
experimental.history.html11-Dec-201318.6K
experimental.html11-Dec-201322K
experimental.idle.html11-Dec-201318.6K
experimental.infobars.html11-Dec-201330.5K
experimental.processes.html11-Dec-201342.7K
experimental.proxy.html11-Dec-201378.4K
experimental.sidebar.html11-Dec-201399K
experimental.tts.html11-Dec-201378.5K
experimental.webInspector.audits.html11-Dec-2013112K
experimental.webInspector.html11-Dec-201321.2K
experimental.webInspector.inspectedWindow.html11-Dec-201329.6K
experimental.webInspector.panels.html11-Dec-2013105.7K
experimental.webInspector.resources.html11-Dec-201338K
experimental.webNavigation.html11-Dec-201397.9K
experimental.webRequest.html11-Dec-2013125.1K
extension.html11-Dec-2013148.4K
external_extensions.html11-Dec-201327.3K
faq.html11-Dec-201339.9K
getstarted.html11-Dec-201324.1K
history.html11-Dec-2013117.5K
hosting.html11-Dec-201321K
i18n-messages.html11-Dec-201326.6K
i18n.html11-Dec-201350.1K
idle.html11-Dec-201327.5K
images/11-Dec-2013
index.html11-Dec-201321.4K
js/11-Dec-2013
management.html11-Dec-2013105.2K
manifest.html11-Dec-201334.7K
match_patterns.html11-Dec-201323.7K
messaging.html11-Dec-201329.6K
notifications.html11-Dec-201322.4K
npapi.html11-Dec-201321.7K
omnibox.html11-Dec-201346.4K
options.html11-Dec-201321.2K
override.html11-Dec-201323K
overview.html11-Dec-201339.3K
packaging.html11-Dec-201323.1K
pageAction.html11-Dec-201361.9K
permission_warnings.html11-Dec-201328.1K
README.txt11-Dec-20133.4K
samples.html11-Dec-2013180.7K
samples.json11-Dec-201371.5K
server/11-Dec-2013
static/11-Dec-2013
tabs.html11-Dec-2013277.8K
template/11-Dec-2013
test.html11-Dec-201325.4K
themes.html11-Dec-201323.6K
tut_analytics.html11-Dec-201325.9K
tut_debugging.html11-Dec-201326K
tut_oauth.html11-Dec-201328.4K
tutorials.html11-Dec-201319K
whats_new.html11-Dec-201325.5K
windows.html11-Dec-2013142.1K
xhr.html11-Dec-201323.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