Skip to content

Commit

Permalink
Add parsing of toc from docset.yml (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz authored Nov 12, 2024
1 parent 75c7ebe commit 2b862bc
Show file tree
Hide file tree
Showing 21 changed files with 215 additions and 146 deletions.
34 changes: 25 additions & 9 deletions docs/source/docset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,30 @@ exclude:
- '_*.md'
toc:
- file: index.md
- file: config.md
- file: search.md
- folder: markup
- folder: elastic
children:
- file: search-part2.md
- folder: search
- folder: my-folder1
- folder: my-folder2
- file: index.md
- folder: observability
- folder: reference
- folder: semantic-search
- folder: search-labs
children:
- file: index.md
- file: chat.md
children:
- file: chat/req.md
- file: chat/rag.md
- file: search.md
children:
- file: search/req.md
- file: search/setup.md
- file: install.md
children:
- file: install/cloud.md
- file: install/docker.md
- folder: nested
children:
- file: subpath/file.md
- file: file.md
- folder: sub/folder
- folder: content
- file: index.md
- folder: versioning
4 changes: 2 additions & 2 deletions docs/source/elastic/semantic-search/amazon-bedrock.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The examples in this tutorial use the `amazon.titan-embed-text-v1` model from th

## Create an inference endpoint

```{include} snippets/inference-endpoint.md
```{include} _snippets/inference-endpoint.md
```

```{code-block} bash
Expand Down Expand Up @@ -67,7 +67,7 @@ PUT _inference/text_embedding/amazon_bedrock_embeddings

## Create the index mapping

```{include} snippets/index-mapping.md
```{include} _snippets/index-mapping.md
```

```{code-block} bash
Expand Down
4 changes: 2 additions & 2 deletions docs/source/elastic/semantic-search/azure-ai-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The examples in this tutorial use models available through [Azure AI Studio](htt

## Create an inference endpoint

```{include} snippets/inference-endpoint.md
```{include} _snippets/inference-endpoint.md
```

```{code-block} bash
Expand Down Expand Up @@ -67,7 +67,7 @@ PUT _inference/text_embedding/azure_ai_studio_embeddings

## Create the index mapping

```{include} snippets/index-mapping.md
```{include} _snippets/index-mapping.md
```

```{code-block} bash
Expand Down
4 changes: 2 additions & 2 deletions docs/source/elastic/semantic-search/azure-openai.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The examples in this tutorial use models available through [Azure OpenAI](https:

## Create an inference endpoint

```{include} snippets/inference-endpoint.md
```{include} _snippets/inference-endpoint.md
```

```{code-block} bash
Expand Down Expand Up @@ -67,7 +67,7 @@ PUT _inference/text_embedding/azure_openai_embeddings

## Create the index mapping

```{include} snippets/index-mapping.md
```{include} _snippets/index-mapping.md
```

```{code-block} bash
Expand Down
4 changes: 2 additions & 2 deletions docs/source/elastic/semantic-search/cohere.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ A [Cohere account](https://cohere.com/) is required to use the inference API wit

## Create an inference endpoint

```{include} snippets/inference-endpoint.md
```{include} _snippets/inference-endpoint.md
```

```{code-block} bash
Expand Down Expand Up @@ -65,7 +65,7 @@ When using this model the recommended similarity measure to use in the dense_vec

## Create the index mapping

```{include} snippets/index-mapping.md
```{include} _snippets/index-mapping.md
```

```{code-block} bash
Expand Down
4 changes: 2 additions & 2 deletions docs/source/elastic/semantic-search/elser.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ELSER is a model trained by Elastic. If you have an Elasticsearch deployment, th

## Create an inference endpoint

```{include} snippets/inference-endpoint.md
```{include} _snippets/inference-endpoint.md
```

```{code-block} bash
Expand All @@ -57,7 +57,7 @@ You don’t need to download and deploy the ELSER model upfront, the API request

## Create the index mapping

```{include} snippets/index-mapping.md
```{include} _snippets/index-mapping.md
```

```{code-block} bash
Expand Down
File renamed without changes.
8 changes: 0 additions & 8 deletions docs/source/markup/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ project:
subject: MyST Markdown
```
```{sidebar}
This code is very helpful.

It does lots of things.

But it does not sing.
```

```{code-block} python
:caption: Code blocks can also have sidebars.
:linenos:
Expand Down
36 changes: 0 additions & 36 deletions docs/source/markup/diagrams.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/markup/file_inclusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ The rest of this page is from a snippet and "{{page_title}}" below is taken from

## Snippet

```{include} snippets/my_snippet.md
```{include} _snippets/my_snippet.md
```
1 change: 1 addition & 0 deletions src/Elastic.Markdown/Elastic.Markdown.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNet.Glob" Version="3.1.3" />
<PackageReference Include="Markdig" Version="0.37.0"/>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="RazorSlices" Version="0.8.1" />
Expand Down
Loading

0 comments on commit 2b862bc

Please sign in to comment.