@@ -28,15 +28,31 @@ when changes are merged to the main branch.
2828It's recommended to install build dependencies and build the documentation
2929inside a Python ` venv ` .
3030
31- ``` bash
32- python -m pip install -r requirements-310.txt
33- ```
31+ To prepare building the documentation run the following on the root level of the project:
32+
33+ 1 . Set up virtual environment if it was not already created
34+ ``` bash
35+ python3 -m venv venv
36+ ```
37+ 1 . Activate virtual environment
38+ ``` bash
39+ source venv/bin/activate
40+ ```
41+ 1. Install Datafusion' s Python dependencies
42+ ```bash
43+ pip install -r requirements-310.txt
44+ ```
45+ 1. Install documentation dependencies
46+ ```bash
47+ pip install -r docs/requirements.txt
48+ ```
3449
3550## Build & Preview
3651
3752Run the provided script to build the HTML pages.
3853
3954```bash
55+ cd docs
4056./build.sh
4157```
4258
@@ -50,14 +66,15 @@ firefox build/html/index.html
5066
5167## Release Process
5268
53- The documentation is served through the
54- [ arrow-site] ( https://github.com/apache/arrow-site/ ) repo. To release a new
55- version of the docs, follow these steps:
56-
57- 1 . Run ` ./build.sh ` inside ` docs ` folder to generate the docs website inside the ` build/html ` folder.
58- 2 . Clone the arrow-site repo
59- 3 . Checkout to the ` asf-site ` branch (NOT ` master ` )
60- 4 . Copy build artifacts into ` arrow-site ` repo's ` datafusion ` folder with a command such as
61- - ` cp -rT ./build/html/ ../../arrow-site/datafusion/ ` (doesn't work on mac)
62- - ` rsync -avzr ./build/html/ ../../arrow-site/datafusion/ `
63- 5 . Commit changes in ` arrow-site ` and send a PR.
69+ This documentation is hosted at https://arrow.apache.org/datafusion-python/
70+
71+ When the PR is merged to the `main` branch of the DataFusion
72+ repository, a [github workflow](https://github.com/apache/arrow-datafusion-python/blob/main/.github/workflows/docs.yaml) which:
73+
74+ 1. Builds the html content
75+ 2. Pushes the html content to the [`asf-site`](https://github.com/apache/arrow-datafusion-python/tree/asf-site) branch in this repository.
76+
77+ The Apache Software Foundation provides https://arrow.apache.org/,
78+ which serves content based on the configuration in
79+ [.asf.yaml](https://github.com/apache/arrow-datafusion-python/blob/main/.asf.yaml),
80+ which specifies the target as https://arrow.apache.org/datafusion-python/.
0 commit comments