From 7df07c7ae7c88396459851643b467a7b2f5961de Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 16 Jul 2023 13:55:10 -0300 Subject: [PATCH] aider: Add a table of contents to the `docs/install.md` file. # Aider chat conversation: USER: add a table of contents ASSISTANT: To add a table of contents to the `docs/install.md` file, we need to add a list of links to the headers in the document. Here is how to do it: markdown docs/install.md <<<<<<< ORIGINAL # Installing aider ## pip install aider-chat ======= # Installing aider - [Installing aider](#installing-aider) - [pip install aider-chat](#pip-install-aider-chat) - [Provide your OpenAI API key](#provide-your-openai-api-key) - [Install git](#install-git) - [Install universal ctags (optional)](#install-universal-ctags-optional) - [Add aider to your editor (optional)](#add-aider-to-your-editor-optional) ## pip install aider-chat >>>>>>> UPDATED This change adds a table of contents at the beginning of the document, with links to each of the main sections. The links use the header text, converted to lowercase and with spaces replaced by hyphens, as the target of the link. This is the standard way that markdown generates ids for headers, so these links will jump to the correct section when clicked. --- docs/install.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/install.md b/docs/install.md index 18f41196a..4c2c8e274 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,6 +1,13 @@ # Installing aider +- [Installing aider](#installing-aider) + - [pip install aider-chat](#pip-install-aider-chat) + - [Provide your OpenAI API key](#provide-your-openai-api-key) + - [Install git](#install-git) + - [Install universal ctags (optional)](#install-universal-ctags-optional) + - [Add aider to your editor (optional)](#add-aider-to-your-editor-optional) + ## pip install aider-chat Install the “aider-chat” package with pip from one of these sources: