-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
192 additions
and
67 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,10 @@ | ||
--- | ||
title: Home | ||
sidebar_position: 0 | ||
image: og/integrations/home.jpg | ||
# hide_table_of_contents: true | ||
# hide_title: true | ||
# tags: [] | ||
--- | ||
|
||
Integrations page - welcome message |
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,32 @@ | ||
--- | ||
title: LlamaIndex | ||
sidebar_position: 0 | ||
image: og/docs/llamaindex.jpg | ||
--- | ||
|
||
Integrations page - welcome message | ||
|
||
:::note | ||
`index.md` files is how you create a page that is a the root of the folder. | ||
For example `llamaindex/index.md` is where the content for the page of the LlamaIndex folder goes. | ||
::: | ||
|
||
:::tip | ||
|
||
``` | ||
sidebar_position: 0 | ||
``` | ||
|
||
`sidebar_position` on an `index.md` page tells docusaurus the nav position of the folder 😉 | ||
|
||
On any other page, it tells docusaurus the location of the page within the folder 🤔 | ||
::: | ||
|
||
:::note | ||
Make sure to generate a template for each new integrations folder ;) | ||
Ask Sebastian for the Google Slides doc with the og template ;) | ||
|
||
``` | ||
image: og/docs/llamaindex.jpg | ||
``` | ||
::: |
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,58 @@ | ||
--- | ||
title: LlamaIndex - some notes | ||
sidebar_position: 1 | ||
image: og/docs/llamaindex.jpg | ||
--- | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
LlamaIndex - some notes | ||
|
||
## First Code Examples | ||
|
||
:::info | ||
In VS Code you can use `integrations-tabs-code` code snippet to generate the code to show code with tabs. | ||
|
||
Just start typing `inttab` and press `Enter` | ||
::: | ||
|
||
:::warning | ||
Note, this will also add two imports for `Tabs` and `TabItem`. | ||
You only need it once. Ideally, you should add it just under `---` on line 5. | ||
::: | ||
|
||
<Tabs groupId="languages"> | ||
<TabItem value="py" label="Python Client v4"> | ||
|
||
```python | ||
# Python v4 example goes here | ||
# note there is an empty line before this code snippet, | ||
# without the empty line the code won't render | ||
``` | ||
</TabItem> | ||
<TabItem value="py3" label="Python Client v3"> | ||
|
||
```python | ||
# Python v3 example goes here | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
## Second Code example - v4 only | ||
|
||
<Tabs groupId="languages"> | ||
<TabItem value="py" label="Python Client v4"> | ||
|
||
```python | ||
# Even if you plan to have one code example, we should always use the tabbed approach. | ||
``` | ||
</TabItem> | ||
</Tabs> | ||
|
||
## Admonitions | ||
|
||
:::tip | ||
You can add these pretty admonitions, by typing `doc-inf` press Enter and select from the list of options. i.e. this is `tip` | ||
::: | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.