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

Fix link paths in apidocs shortcode #5550

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

@chalin chalin added the CI/infra CI & infrastructure label Nov 7, 2024
@chalin chalin requested a review from a team as a code owner November 7, 2024 15:52
@chalin chalin force-pushed the chalin-im-apidocs-2024-11-07 branch from 0acc787 to 56751f4 Compare November 7, 2024 15:58
{{ end }}
{{ end -}}
{{ end -}}

{{ range $pages }}
{{ $title := replaceRE `API reference` "" .page.Title -}}

- [
- {{/* Encode the link directly as an <a> anchor to avoid unnecessary render-link hook checks */ -}}
<a href="{{ .page.RelPermalink }}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the use of .RelPermalink.

@chalin chalin merged commit 9dfa389 into open-telemetry:main Nov 7, 2024
17 checks passed
@chalin chalin deleted the chalin-im-apidocs-2024-11-07 branch November 7, 2024 16:44
ymotongpoo pushed a commit to ymotongpoo/opentelemetry.io that referenced this pull request Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/infra CI & infrastructure
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants