Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use meta variables for all doc URLs to avoid obsolete links #524

Open
yebai opened this issue Sep 20, 2024 · 0 comments
Open

Use meta variables for all doc URLs to avoid obsolete links #524

yebai opened this issue Sep 20, 2024 · 0 comments
Assignees

Comments

@yebai
Copy link
Member

yebai commented Sep 20, 2024

Let us create a Quarto meta variable for each doc page in a similar way to:

docs/_quarto.yml

Lines 163 to 164 in 20209fe

get-started: docs/tutorials/docs-00-getting-started/
tutorials-intro: docs/tutorials/00-introduction/

Usage example:

docs/404.qmd

Line 7 in 20209fe

You may want to visit [Get-Started Guide]({{< meta get-started >}}) or [Tutorials]({{< meta tutorials-intro >}}).

to avoid the fragility of relative URLs when renaming and moving doc pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants