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

Add cross-file anchor link check (use lychee for markdown link checking) and fix broken links #4345

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

trask
Copy link
Member

@trask trask commented Dec 18, 2024

@chalin @lmolkova do we still need this release step after this?

Run opentelemetry.io workflow against opentelemetry-specification submodule as a smoke-test for docs. Fix broken links, if any.

Copy link
Contributor

@chalin chalin left a comment

Choose a reason for hiding this comment

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

Great! LGTM

I'd keep the release step since it can catch anchor hashes to level-one headings, which correspond to titles in the published website, and hence don't exist in the rendered OTel.io site pages. It might also be able to catch inter-spec link issues.

.lychee.toml Outdated Show resolved Hide resolved
Co-authored-by: Patrice Chalin <[email protected]>
Copy link
Contributor

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

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

YAY!!!!

@lmolkova
Copy link
Contributor

@chalin @lmolkova do we still need this release step after this?

I'd keep the release step since it can catch anchor hashes to level-one headings, which correspond to titles in the published website, and hence don't exist in the rendered OTel.io site pages. It might also be able to catch inter-spec link issues.

I believe lychee should cover inter-spec links and anchors. I'd prefer not to have manual step if we can avoid it.

@chalin
Copy link
Contributor

chalin commented Dec 18, 2024

Right, but lychee can't call out intra-spec links to page titles, which will fail during the website build.

@trask
Copy link
Member Author

trask commented Dec 18, 2024

intra-spec links to page titles

can you give an example, I don't know what this means, thanks

@carlosalberto
Copy link
Contributor

Thanks so much for this!

Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 27, 2024
@trask trask removed the Stale label Dec 27, 2024
@carlosalberto
Copy link
Contributor

Ping @chalin ;)

@chalin
Copy link
Contributor

chalin commented Jan 6, 2025

intra-spec links to page titles

can you give an example, I don't know what this means, thanks

Thanks for the ping @carlosalberto. Sorry for the delay in responding @trask, I didn't notice your question until now. Here is an example of a link fix necessary for the website, but that would pass link checking here (unless lychee can report a warning when there are links to level 1 headings):

@trask
Copy link
Member Author

trask commented Jan 6, 2025

Here is an example of a link fix necessary for the website

thanks

@reyang reyang merged commit 6c626de into open-telemetry:main Jan 6, 2025
6 checks passed
@trask trask deleted the lychee branch January 6, 2025 23:10
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

Successfully merging this pull request may close these issues.

6 participants