Get the DuckDB nightly build from the installation page, available under the GitHub main (Bleeding Edge) tab.
Install the NodeJS and Python dependencies:
npm install
pip install -r requirements.txt
Run the script as follows:
./scripts/generate_all_docs.sh <path_to_bleeding_edge_duckdb_dir>