Path Resolution

Understanding how paths are resolved in Verdocs is crucial for creating well-connected and visually rich documentation. Verdocs supports two primary strategies for linking assets and other sections of the website.

1. Linking Images

All static images and assets must be stored in the assets/ directory at the root of your project (the same level as the versioned folders). When referencing these images in Markdown, you have two options:

Standard Relative Path

Standard relative paths work as they would in any Markdown editor:

![Logo](../../assets/verdocs-logo.png)

Verdocs Absolute Path Strategy

For images, any path that starts with assets/ is automatically resolved relative to the site's root directory:

![Logo](assets/verdocs-logo.png)

Note
Kindly name the images in lowercase and hyphen separated. Unknown special characters or whitespaces might break the image rendering.

2. Linking Other Pages and Sections

Linking between documentation pages is handled intelligently by Verdocs' internal link resolver.

Relative Linking

Standard relative links between Markdown files are supported:

[Go to Features](../features/features.md)

Verdocs Global Linking Strategy

To simplify linking within the same version of your documentation, use the @/ global linking prefix. This prefix informs Verdocs that the path should be resolved relative to the current version's root directory.

This allows you to link to any page within the same version without worrying about your current file's depth in the directory tree:

# To link to "v1.0.0/getting-started/installation/installation.md" from any file in v1.0.0:
[Installation Guide](@/getting-started/installation/installation.md)

Path Normalization and Redirection

When you link to a .md file, Verdocs automatically:

By using the @/ strategy, your internal links remain robust even if you move files or restructure your directories in the future.

Recommendation
It is strongly recommended that you use Verdocs' global linking format (@/) to reference images and other markdown pages on the website.

On this page
1. Linking Images Standard Relative Path Verdocs Absolute Path Strategy 2. Linking Other Pages and Sections Relative Linking Verdocs Global Linking Strategy Path Normalization and Redirection