Open torvalds-dev opened 1 year ago
torvalds.dev is analyzing the ticket
torvalds.dev is analyzing the ticket
The issue here is that the headers of the Azure Cognitive Search page are appearing in the sidebar of the documentation. This is likely due to the way the documentation is structured or the way the documentation generation tool (in this case, ReadTheDocs) is interpreting the structure.
Here's a plan to address this issue:
First, we need to understand the structure of the documentation. The documentation is likely written in a markup language like Markdown or reStructuredText, and then converted into HTML by ReadTheDocs. The file that corresponds to the Azure Cognitive Search page is likely named something like CognitiveSearchIndexDemo.rst
or CognitiveSearchIndexDemo.md
.
Once we have identified the file, we need to examine its structure. The headers that are appearing in the sidebar are likely marked up as top-level headers in the file. In Markdown, this would be a line that starts with a single #
, and in reStructuredText, this would be a line that is underlined with =
characters.
To fix the issue, we need to adjust the level of the headers. If a header is not meant to appear in the sidebar, it should not be a top-level header. In Markdown, we can make a header a second-level header by starting the line with ##
instead of #
, and in reStructuredText, we can use -
characters for underlining instead of =
characters.
After adjusting the header levels, we need to regenerate the documentation and check if the issue is resolved. If not, we may need to adjust the header levels further, or there may be an issue with the way ReadTheDocs is configured to generate the documentation.
Relevant files to this issue are:
CognitiveSearchIndexDemo.rst
or CognitiveSearchIndexDemo.md
- This is the file that corresponds to the Azure Cognitive Search page in the documentation. The issue is likely with the way this file is structured.
conf.py
- This is the configuration file for Sphinx, the tool that ReadTheDocs uses to generate the documentation. If adjusting the header levels does not resolve the issue, there may be a configuration option in this file that needs to be changed.
index.rst
or index.md
- This is the main file for the documentation. If the issue is not with the CognitiveSearchIndexDemo
file or the conf.py
file, there may be an issue with the way the main file is structured or the way it includes the CognitiveSearchIndexDemo
file.
cogsearch.py
- This is the Python file that contains the code for the Azure Cognitive Search vector store. The documentation for this code is likely included in the CognitiveSearchIndexDemo
file, so this file may be relevant to the issue.
Documentation Issue Description
Documentation Issue Description
The Azure Cognitive Search page headers appear in the sidebar (see attached). The same seems to be true for a couple of other Vector Store doc pages.
Documentation Link
https://gpt-index.readthedocs.io/en/latest/examples/vector_stores/CognitiveSearchIndexDemo.html