This folder contains the source content of the Python API. This is published to https://datafusion.apache.org/python by a GitHub action when changes are merged to the main branch.
It's recommended to install build dependencies and build the documentation
inside a Python venv.
To prepare building the documentation run the following on the root level of the project:
- Set up virtual environment if it was not already created
python3 -m venv venv
- Activate virtual environment
source venv/bin/activate - Install Datafusion's Python dependencies
pip install -r requirements-310.txt
- Install documentation dependencies
pip install -r docs/requirements.txt
Run the provided script to build the HTML pages.
cd docs
./build.shThe HTML will be generated into a build directory.
Preview the site on Linux by running this command.
firefox build/html/index.htmlThis documentation is hosted at https://datafusion.apache.org/python
When the PR is merged to the main branch of the DataFusion
repository, a github workflow which:
- Builds the html content
- Pushes the html content to the
asf-sitebranch in this repository.
The Apache Software Foundation provides https://arrow.apache.org/, which serves content based on the configuration in .asf.yaml, which specifies the target as https://datafusion.apache.org/python.