Elffuss BraidHub

kikocis/lancedb public

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