Providee context to your code without cluttering it. Use Link Docs to link your documentation to relevant code files.
- Create a folder named
docs
- In the docs folder place your markdown documentation files
- πLink documentation to code
- Hover over your code and see your documentation appear!
- Open up a document preview by pressing Cmd/Ctrl+8
At the top of your markdown file, insert:
[](../path/to/file)
Documentation content...
π¨ Do not forget the newline separating the link and the content!
The link format is the same as above.
Link multiple files/directories by listing them.
At the top of your markdown file, insert:
[](../path/to/file)
[](../path/to/folder)
...
Documentation content...
π¨ Do not forget the newline separating the link and the content!
Note: When multiple docs are linked to the same file, the lowest level path will be returned when you press Cmd/Ctrl+8. You can access all the other documents associated with the file by scrolling through the hover.
- Local pictures do not show up in the hover preview
Have feature requests? Email us at hi@mintlify.com or leave an issue on our GitHub
Website | GitHub | Twitter | Discord
Built with π by the Mintlify team