简体   繁体   中英

How to get the source code of site “developer.android.com”?

In fact, I've found the source files of site "source.android.com" at https://android.googlesource.com/platform/docs/source.android.com It uses markdown format to write articles and use related python tools to generate the web site.

Although the static html file of the developer site can be downloaded through sdk tools, but I want to get the source code similar to which I get from site source.android.com, not just the static html content. In my opinion, the site must be generated by some useful tools, for example javadoc. Is that true?

Thanks for your help!

Did you mean building developer documentation which is located on [Android SDK]/docs?
All you need to do is 'make sdk'. This will make the android sdk from full source, including developer documentation.

Steps to make developer documentation :

  1. Download android source from source.android.com
  2. Set build environment with following command :

    $ repo init -u https://android.googlesource.com/platform/manifest -b master -g all,-notdefault,tools

    if you already downloaded the source, just type

    $ repo init -g all ; repo sync

  3. invoke following command to build Android SDK

    $ cd [ANDROID_FULL_SOURCE_DIR]
    $ . build/envsetup.sh (or source build/envsetup.sh on mac) $ lunch sdk-eng $ make sdk

  4. The documentation will be generated at out/host/[HOST_OS]-[HOST_ARCH]/sdk/ folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM