Skip to content

chore(100.html): fix dead links to non-Mathlib declarations#785

Open
Vierkantor wants to merge 1 commit intolean4from
fix-100-code-link
Open

chore(100.html): fix dead links to non-Mathlib declarations#785
Vierkantor wants to merge 1 commit intolean4from
fix-100-code-link

Conversation

@Vierkantor
Copy link
Contributor

This PR fixes that non-Mathlib declarations in the top 100 and top 1000 theorems didn't have the right URL. In the code listings for the top 100 and 1000 theorems, doc-gen generates links to the definitions of bits of code. But they are relative to /mathlib4_docs. We tried to fix this by rewriting relative links like href="./Mathlib to href="./mathlib4_docs/Mathlib, but we should do the same for Init and Batteries and ... So this PR instead rewrites all links from href="./ to href="./mathlib4_docs.

This PR fixes that non-Mathlib declarations in the top 100 and top 1000 theorems link to the correct docs page. In the code listings for the top 100 and 1000 theorems, doc-gen generates links to the definitions of bits of code. But they are relative to /mathlib4_docs. We tried to fix this by rewriting relative links like `href="./Mathlib` to `href="./mathlib4_docs/Mathlib`, but we should do the same for Init and Batteries and ... So this PR instead rewrites all links from `href="./` to `href="./mathlib4_docs`.
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.

1 participant