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

Replace link tags with site variables #6795

Merged
merged 3 commits into from
Mar 4, 2020
Merged

Conversation

jeff-matthews
Copy link
Contributor

@jeff-matthews jeff-matthews commented Mar 4, 2020

Purpose of this pull request

This pull request (PR) replaces the Jekyll link tag with the {{ site.baseurl }} variable.

We should not use the link tag in the devdocs project because it doesn't support the variables we use, such as {{ page.baseurl }}.

Furthermore, using the link tag is incompatible with our "fast local build" workflow using the _config.local.yml file.

The tag forces jekyll to validate internal links during build time. If you're building only certain directories specified in the _config.local.yml file, this could create problems because it forces you to build directories you wouldn't otherwise need just to prevent Jekyll from failing on links to directories you're excluding.

Affected DevDocs pages

Topics in the Marketplace and Compliance sections.

@jeff-matthews jeff-matthews added Internal Dev Differentiates work between community and Magento staff Maintenance labels Mar 4, 2020
@jeff-matthews jeff-matthews requested review from dshevtsov and a team March 4, 2020 20:59
@jeff-matthews
Copy link
Contributor Author

running tests

@jeff-matthews jeff-matthews merged commit 2625188 into master Mar 4, 2020
@ghost
Copy link

ghost commented Mar 4, 2020

Hi @jeff-matthews, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@jeff-matthews jeff-matthews deleted the remove-link-tag branch March 4, 2020 21:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Internal Dev Differentiates work between community and Magento staff Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants