blob: 77a76b838067d939c878caf7ce5875e7a20603a4 [file] [log] [blame]
The site contains tutorials, references, and other
information related to the Android Open Source Project (AOSP). The rendered
output of this site is static HTML, although the source contents are stored
in Javadoc. Conduct your edits in the Javadoc (.jd files).
Note that the currently viewable docs at
are not necessarily exactly in sync with the doc sources you can download from
AOSP. If you want to make a contribution to the doc sources, please check in at
android-contrib@ group. That way, we can make sure the affected docs are stable
before you upload your CL.
### File Location ###
The source files are stored in the platform/docs/
Android project:
The files to be edited are located in: <root>/docs/
Every .jd file under src/ is an individual page in Javadoc format. This format
closely resembles HTML with different headers.
Subdirectories exist for the tabs of with their structure
roughly (but not identically) mirroring navigation of the site.
In addition, each tab and subdirectory contains a *_toc.cs file (such as
devices_toc.cs) that defines the navigation for that section of the site. When
pages are added or removed, the corresponding *_toc.cs file must be updated to
### Dependencies ###
- Vi, Emacs or another plain-text editor
- Python
- App Engine -
- An app.yaml configuration file placed in the root of the
out/target/common/docs/online-sac directory with these contents:
application: NAMEOFYOURAPP
version: 1
runtime: python
api_version: 1
- url: /
static_dir: /
## Edit Instructions ##
1. Initialize the repository and download the Android source per:
2. Start a temporary branch for your changes, such as:
3. Edit the Javadoc file(s) and save your changes.
4. If a page was added or removed, update the corresponding _toc.cs file to
reflect the change.
5. Run the following make command from the root of the project parent directory:
make online-sac-docs
This generates the output in:
6. Start App Engine and point it at the output directory, like so:
python /bin/google_appengine/ \
/master/out/target/common/docs/online-sac \
--address --port 8080 &
7. Review your changes at localhost:8080/index.html
8. Once satisfied, submit the changes as described at:
Your change will be routed to the team for inclusion.