-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update Llama Deploy documentation build (#16403)
- Loading branch information
Showing
25 changed files
with
3,053 additions
and
1,409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# docs build | ||
docs/api_reference/llama_deploy/* | ||
docs/module_guides/llama_deploy/* | ||
llama_deploy |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Documentation | ||
|
||
This directory contains the documentation source code for LlamaIndex, available at https://docs.llamaindex.ai. | ||
|
||
This guide is made for anyone who's interested in running LlamaIndex documentation locally, | ||
making changes to it and making contributions. LlamaIndex is made by the thriving community | ||
behind it, and you're always welcome to make contributions to the project and the | ||
documentation. | ||
|
||
## Build Docs | ||
|
||
If you haven't already, clone the LlamaIndex Github repo to a local directory: | ||
|
||
``` | ||
git clone https://github.com/run-llama/llama_index.git && cd llama_index | ||
``` | ||
|
||
Documentation has its own, dedicated Python virtual environment, and all the tools and scripts are available from the | ||
`docs` directory: | ||
|
||
``` | ||
cd llama_index/docs | ||
``` | ||
|
||
From now on, we assume all the commands will be executed from the `docs` directory. | ||
|
||
Install all dependencies required for building docs (mainly `mkdocs` and its extension): | ||
|
||
- [Install poetry](https://python-poetry.org/docs/#installation) - this will help you manage package dependencies | ||
- `poetry install` - this will install all dependencies needed for building docs | ||
|
||
To build the docs and browse them locally run: | ||
|
||
``` | ||
poetry run serve | ||
``` | ||
|
||
During the build, notebooks are converted to documentation pages, and this takes several minutes. If you're not | ||
working on the "Examples" section of the documentation, you can run the same command with `--skip-notebooks`: | ||
|
||
``` | ||
poetry run serve --skip-notebooks | ||
``` | ||
|
||
> [!IMPORTANT] | ||
> Building the documentation takes a while, so make sure you see the following output before opening the browser: | ||
> | ||
> ``` | ||
> ... | ||
> INFO - Documentation built in 53.32 seconds | ||
> INFO - [16:18:17] Watching paths for changes: 'docs' | ||
> INFO - [16:18:17] Serving on http://127.0.0.1:8000/en/stable/ | ||
> ``` | ||
You can now open your browser at http://localhost:8000/ to view the generated docs. The local server will rebuild the | ||
docs and refresh your browser every time you make changes to the docs. | ||
## Configuration | ||
Part of the configuration in `mkdocs.yml` is generated by a script that takes care of keeping the examples in sync as | ||
well as the API reference for all the packages in this repo. | ||
Running the command `poetry run prepare-for-build` from the `docs` folder will update the `mkdocs.yml` with the latest | ||
changes, along with writing new api reference files. | ||
> [!TIP] | ||
> As a contributor, you wouldn't normally need to run this script, feel free to ask for help in the PR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
::: llama_index.embeddings.vertex_endpoint | ||
options: | ||
members: | ||
- VertexEndpointEmbedding |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Documentation content will be pulled from https://github.com/run-llama/llama_deploy, | ||
make sure to run `python docs/merge_llama_deploy_docs.py` before building docs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
::: llama_index.node_parser.docling | ||
options: | ||
members: | ||
- DoclingNodeParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
::: llama_index.readers.docling | ||
options: | ||
members: | ||
- DoclingReader |
4 changes: 4 additions & 0 deletions
4
docs/docs/api_reference/storage/chat_store/azurecosmosnosql.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
::: llama_index.storage.chat_store.azurecosmosnosql | ||
options: | ||
members: | ||
- AzureCosmosNoSqlChatStore |
4 changes: 4 additions & 0 deletions
4
docs/docs/api_reference/storage/index_store/azurecosmosnosql.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
::: llama_index.storage.index_store.azurecosmosnosql | ||
options: | ||
members: | ||
- AzureCosmosNoSqlIndexStore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
::: llama_index.storage.kvstore.azurecosmosnosql | ||
options: | ||
members: | ||
- AzureCosmosNoSqlKVStore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
::: llama_index.vector_stores.objectbox | ||
options: | ||
members: | ||
- ObjectBoxVectorStore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Documentation content will be pulled from https://github.com/run-llama/llama_deploy, | ||
make sure to run `python docs/merge_llama_deploy_docs.py` before building docs. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.