← Back to Home

Easily Set Up Custom Documentation for All Your Dependencies

Author: Wang ZuoDate: October 26, 2024
As AI coding becomes increasingly prevalent, external knowledge is essential to prevent hallucinations in large language models. For programmers, these inaccuracies can lead to bugs and waste valuable time. Let alone the new tool or library that are released after those AI models are trained.
Fortunately, the AI editor Cursor allows you to set up custom documentation for your projects, enabling AI to refer to the right information just as human programmers do daily.
However, merely indexing the project codebase is not enough. Developers rely heavily on external documentation for programming languages, frameworks, libraries, and more.
At WeStack, we investigate how to build applications using various stacks and tools. We created a CLI tool that helps publish a simple webpage containing links to the documentation for all the dependencies in your project.
To get started, you can install the CLI with the following command:
Run the command below to publish the documentation:
Open Cursor, navigate to settings, then select features, and finally custom docs.
Cursor settings
Paste the WeStack link here:
Paste WeStack link
Wait for Cursor to index all pages and subpages.
Indexing pages
When asking a question, use @...
Using @ in questions
Currently, we support the following package management systems:
(list with icons)
Supported external services:
(list with icons)
The CLI is free to use without login (so you cannot delete it for now). While The url contains a secure token to avoid brute force crawling, the webpage is still public by default, use at your risk. The CLI code is open-sourced at https://github.com/westackdev/cli
To report bugs or request support for additional tools, create an issue.