|
1 |
| -<h1 align="center">FluidDoc</h1> |
| 1 | +# PaddlePaddle docs |
2 | 2 |
|
3 | 3 | English | [简体中文](./README_cn.md)
|
4 | 4 |
|
5 | 5 |
|
6 |
| -# Introduction |
7 |
| -FluidDoc consolidates all the documentations related to Paddle. It supplies the contents to PaddlePaddle.org via CI. |
| 6 | +Source files for contents presented at [PaddlePaddle documentation](https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/index_cn.html). |
8 | 7 |
|
9 |
| -# Architecture |
10 |
| -FluidDoc submodules Paddle, Book under `external` folder. All submodules should be put under `external` as standard practice. |
| 8 | +Note: English version API docs are generaly docstrings in [PaddlePaddle/Paddle](https://github.com/PaddlePaddle/Paddle), documents for [other PaddlePaddle projects](https://www.paddlepaddle.org.cn/overview) are being managed in their respective ways. |
11 | 9 |
|
12 |
| -FluidDoc then uses them as references to load up the documents. The FluidDoc constructs the whole doc-tree under the `FluidDoc/doc/fluid` folder. The entry point is `FluidDoc/doc/fluid/index_cn.rst` and `FluidDoc/doc/fluid/index_en.rst` |
| 10 | +## Codebase structure |
13 | 11 |
|
14 |
| -When a release branch is pushed to Github, Travis-CI will start automatically to compile documents and deploy documents to the server. |
| 12 | +- [doc](doc): PaddlePaddle 1.8 & older versions docs source file, will be deleted in the future |
| 13 | +- [docs](docs): PaddlePaddle 2.0 & above docs source file, |
| 14 | +- [docs/api](docs/api): PaddlePaddle API docs |
| 15 | +- [docs/guides](docs/guides): PaddlePaddle guides docs |
| 16 | +- [docs/tutorial](docs/tutorial): PaddlePaddle tutorial docs |
| 17 | +- [ci_scripts](ci_scripts): docs CI scripts |
15 | 18 |
|
16 |
| -## Note: |
17 |
| -FluidDoc needs Paddle python module to compile API documents. Unfortunately, compiling Paddle python module takes longer time Travis CI permits. Usually Travis CI will fail due because of timeout. That's why there three jobs on Travis, two of them are to build libraries. Once the libraries are cached on the Travis, next build will be a lot faster. |
| 19 | +## How to build |
18 | 20 |
|
19 |
| -## Preview with PPO |
20 |
| -To preview documents constructured by FluidDoc. Please follow the [regular preview step](https://github.com/PaddlePaddle/PaddlePaddle.org/blob/develop/README.md), but replace the path to paddle with the path to FluidDoc |
21 |
| -`./runserver --paddle <path_to_FluidDoc_dir>` |
| 21 | +- pre-requirements |
| 22 | + - docker |
| 23 | +- Instructions |
| 24 | + - step1: clone docs |
| 25 | + ``` |
| 26 | + git clone https://github.com/PaddlePaddle/docs |
| 27 | + ``` |
| 28 | + - step2: build docs |
| 29 | + ``` |
| 30 | + cd docs |
| 31 | + mkdir output |
| 32 | + bash docs-build.sh -f absolute_path_docs |
| 33 | + ``` |
| 34 | + - step3: preview docs |
| 35 | + The output of docs will be generated in docs/output. |
22 | 36 |
|
23 |
| -# Publish New release |
24 |
| -1. Checkout a new release branch. The branch name should follow `release/<version>` |
25 |
| -1. Update the documentations on the submodules or within FluidDoc |
26 |
| -1. Make sure all the submodules are ready for release. Paddle, book should all have stable commits. Note: Paddle repo should update the API RST files accordinly if Paddle changes the included module/classes. |
27 |
| -1. Update the submodules under `external` folder and commit the changes. |
28 |
| -1. Git push the branch to Github, Travis CI will start several builds to publish the documents to the PaddlePaddle.org server |
29 |
| -1. Please notify the PaddlePaddle.org team that the release content is ready. PaddlePaddle.org team should enable the version and update the default version to the latest one. PaddlePaddle.org should also update the search index accordingly (Until the search server is up) |
| 37 | +## How to contribute |
| 38 | +
|
| 39 | +PaddlePaddle welcomes documentation contributions, please see [CONTRIBUTING.md](./CONTRIBUTING.md) for details. |
| 40 | +
|
| 41 | +## License |
| 42 | +
|
| 43 | +[Apache License 2.0](LICENSE) |
0 commit comments