| 1 | # LanceDB Documentation |
| 2 | |
| 3 | LanceDB docs are deployed to https://lancedb.github.io/lancedb/. |
| 4 | |
| 5 | Docs is built and deployed automatically by [Github Actions](.github/workflows/docs.yml) |
| 6 | whenever a commit is pushed to the `main` branch. So it is possible for the docs to show |
| 7 | unreleased features. |
| 8 | |
| 9 | ## Building the docs |
| 10 | |
| 11 | ### Setup |
| 12 | 1. Install LanceDB. From LanceDB repo root: `pip install -e python` |
| 13 | 2. Install dependencies. From LanceDB repo root: `pip install -r docs/requirements.txt` |
| 14 | 3. Make sure you have node and npm setup |
| 15 | 4. Make sure protobuf and libssl are installed |
| 16 | |
| 17 | ### Building node module and create markdown files |
| 18 | |
| 19 | See [Javascript docs README](./src/javascript/README.md) |
| 20 | |
| 21 | ### Build docs |
| 22 | From LanceDB repo root: |
| 23 | |
| 24 | Run: `PYTHONPATH=. mkdocs build -f docs/mkdocs.yml` |
| 25 | |
| 26 | If successful, you should see a `docs/site` directory that you can verify locally. |
| 27 | |
| 28 | ### Run local server |
| 29 | |
| 30 | You can run a local server to test the docs prior to deployment by navigating to the `docs` directory and running the following command: |
| 31 | |
| 32 | ```bash |
| 33 | cd docs |
| 34 | mkdocs serve |
| 35 | ``` |
| 36 | |
| 37 | ### Run doctest for typescript example |
| 38 | |
| 39 | ```bash |
| 40 | cd lancedb/docs |
| 41 | npm i |
| 42 | npm run build |
| 43 | npm run all |
| 44 | ``` |