Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Variables

Dmitry Shevtsov edited this page May 19, 2021 · 1 revision

{{ site.devdocs_url }}

When you refer to https://devdocs.magento.com, use a variable {{ site.devdocs_url }} as a substitute for the domain name.

Example

For https://devdocs.magento.com/cloud/architecture/starter-architecture.html,

use {{ site.devdocs_url }}/cloud/architecture/starter-architecture.html

{{ site.version }}

When you refer to a versioned link, and you want that link to always refer to the latest docs, use {{ site.version }} as a substitute for the version number.

Example

For https://devdocs.magento.com/guides/v2.4/pattern-library/general/accessibilityguideline/accessibilityGuideline.html,

use {{ site.devdocs_url }}/guides/v{{ site.version }}/pattern-library/general/accessibilityguideline/accessibilityGuideline.html