Accessing Documentation in Development Tools
This guide explains how to access the project documentation directly from your development environment.
Via Local Development Server
When running the development server, documentation is accessible at:
http://localhost:4321/docs
This will display the documentation index page with links to all available documentation resources.
Directory Structure
All documentation is stored in the /docs
directory:
/docs/
├── README.md # Documentation index
├── unified-markdown-system.md # Markdown content system documentation
├── project-structure.md # Project architecture guidelines
├── pages-structure.md # Pages organization guidelines
├── nav.json # Navigation data for docs integration
└── index.html # HTML entry point for docs
Viewing Documentation in VS Code
If you're using Visual Studio Code, you can easily preview Markdown files directly:
- Open any Markdown file in the editor
- Press
Ctrl+Shift+V
(orCmd+Shift+V
on Mac) to open a preview panel - Alternatively, click the "Open Preview" button in the top-right corner of the editor
Adding New Documentation
To add new documentation:
- Create a new Markdown file in the
/docs
directory using kebab-case naming - Update the
/docs/README.md
index file with a link to your new document - Add your documentation to the
nav.json
file to make it available in the dev tools
Example addition to nav.json
:
{
"title": "My New Documentation",
"path": "/docs/my-new-documentation.md"
}
Best Practices
- Use descriptive filenames that reflect the document content
- Maintain a consistent structure across documentation files
- Include a clear title and introduction at the beginning of each document
- Use appropriate Markdown formatting for headers, lists, code blocks, etc.
- When referencing other documentation, use relative links to ensure they work in all contexts