Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 1 | # HOW TO BUILD SOURCE.ANDROID.COM # |
| 2 | |
Skyler Kaufman | 4443691 | 2011-04-07 15:11:52 -0700 | [diff] [blame^] | 3 | source.android.com contains tutorials, references, and miscellaneous information relating to the Android Open Source Project (AOSP). The current iteration of this site is fully static HTML (notably lacking in javascript and doxygen content), and is and/or was maintained by skyler (illustrious intern under Dan Morrill and assistant to the almighty JBQ). |
Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 4 | |
| 5 | ## Short Instructions ## |
| 6 | |
| 7 | Run the build script. |
| 8 | |
| 9 | build.py |
| 10 | |
Skyler Kaufman | 4443691 | 2011-04-07 15:11:52 -0700 | [diff] [blame^] | 11 | This generates a directory html_out, which is the fully built site. Hoorah. |
Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 12 | |
Skyler Kaufman | 4443691 | 2011-04-07 15:11:52 -0700 | [diff] [blame^] | 13 | The included micro-httpd.py script is helpful for testing the site on your own machine. |
Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 14 | |
| 15 | ## Less Short Instructions ## |
| 16 | |
| 17 | ### Contents Included in Box ### |
| 18 | |
| 19 | Necessary source files include: |
| 20 | |
| 21 | site_src/ individual page content in markdown format |
| 22 | templates/ templates for page content |
| 23 | |
| 24 | and the following content which is copied directly: |
| 25 | |
| 26 | assets/ stylish things that make the page look pretty |
| 27 | images/ exactly what it sounds like |
Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 28 | |
| 29 | ### Structure of Site Source ### |
| 30 | |
Skyler Kaufman | 4443691 | 2011-04-07 15:11:52 -0700 | [diff] [blame^] | 31 | The build script assumes that |
| 32 | - every .mdml file under the site_src directory is an individual page in markdown format; |
Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 33 | - each directory within site_src is a tab of source.android.com and contains its particular sidebar. |
Skyler Kaufman | 4443691 | 2011-04-07 15:11:52 -0700 | [diff] [blame^] | 34 | Note, the sidebar in the root of site_src/ itself is present but empty. |
Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 35 | |
Skyler Kaufman | 4443691 | 2011-04-07 15:11:52 -0700 | [diff] [blame^] | 36 | |
| 37 | |
| 38 | # HOW TO PUSH SOURCE.ANDROID.COM TO PROD # |
Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 39 | |
| 40 | |
| 41 | |
| 42 | # SORDID HISTORY OF SOURCE.ANDROID.COM # |
| 43 | |
Skyler Kaufman | 4443691 | 2011-04-07 15:11:52 -0700 | [diff] [blame^] | 44 | Once upon a time, source.android.com used to be a site on Sites. |