ipex-llm/docs/readthedocs
Yuwen Hu 95ef573fc4 [Doc] Add contributor guide for writing new documentation (#6254)
* Revise toc tree & add draft version for document guide

* Add more contents and revise documentation guide

* Rename new file for documentation guide

* Add some new contents and try to change html tables to plain text tables for generated styles

* Change back to html table with specified css

* Add some new contents and small revision

* Revise contributor index page

* Minor typo fixes for landing page quicklinks

* Revise based on comments

* Add rst card components and small revisions
2022-10-31 16:29:25 +08:00
..
_build add docs 2021-10-12 11:06:44 +08:00
image change the readthedocs theme and reorg the sections (#6056) 2022-10-18 15:35:31 +08:00
source [Doc] Add contributor guide for writing new documentation (#6254) 2022-10-31 16:29:25 +08:00
make.bat add docs 2021-10-12 11:06:44 +08:00
Makefile add docs 2021-10-12 11:06:44 +08:00
README.md [Doc] Update README.md in docs/readthedocs folder (#6245) 2022-10-24 17:40:46 +08:00
requirements-doc.txt change the readthedocs theme and reorg the sections (#6056) 2022-10-18 15:35:31 +08:00
requirements-rtd.txt [Doc] Update README.md in docs/readthedocs folder (#6245) 2022-10-24 17:40:46 +08:00

BigDL Documentation

This is the repository for BigDL documentation, which is hosted at https://bigdl.readthedocs.io/en/latest/

Local build

1. Set up environment

To build BigDL documentation locally for testing purposes, it is recommended to create a conda environment with specified Python version:

conda create -n docs python=3.7
conda activate docs

Then inside BigDL/docs/readthedocs folder, install required packages:

pip install --upgrade -r requirements-rtd.txt
pip install -r requirements-doc.txt

Note

: requirements-rtd.txt is for reproducing ReadtheDocs deployment environment. No need to modify this file when adding new sphinx extension for our documentation. New packages should be added in requirements-doc.txt.

2. Build the documentation

You can then build the documentation locally through:

make html

Tips: If you meet building error Notebook error: Pandoc wasn't found, try conda install pandoc to resolve it.

Note

: The built files inside docs/readthedocs/_build/html dictionary should not be committed, they are only for testing purposes.

3. Test the documentation

To view the documentation locally, you could set up a testing server:

cd _build/html
python -m http.server 8000

The documentation can then be reached at http://localhost:8000/.

Note

: If you are setting up the testing server on a remote machine, it is recommended to forward port 8000 through VSCode, so that you could reach http://localhost:8000/ normally as on your local machine.