Set Where Dev-Docs will Read and Write to
This command allows you to set the root directory for the Dev-Docs extension to read and write documentation files. It is an essential step in configuring the extension to work with your project.
Why Should I Use This VS Code Extension Command?
Setting the root directory is crucial because it tells Dev-Docs where to look for your codebase and where to create or update documentation files. Without setting the correct root directory, the extension may not function properly or may generate documentation in the wrong location. This is especially useful if you are working in a monorepo.
Prerequisites
Before using this command, make sure you have:
- Opened your project in Visual Studio Code.
- Installed the Dev-Docs extension.
- Initialized project with a
dev-docs.json
anddev-docs
folder
How Do I Use This VS Code Extension Command?
To set the root directory for Dev-Docs, follow these steps:
- Open the Command Palette in Visual Studio Code by pressing
Ctrl+Shift+P
(Windows/Linux) orCmd+Shift+P
(macOS). - Type "Set Where Dev-Docs will read and write to" and select the command from the list.
- A list of available repositories or directories will be displayed. Choose the root directory of your project.
- The selected root directory will be saved in the
dev-docs.json
configuration file under thegitroot
property.
After setting the root directory, Dev-Docs will be able to locate your codebase and generate or update documentation files within your project. This is a crucial step to ensure that the extension functions correctly and generates documentation in the desired location.