thewca / wca-documents

Official Documents of the World Cube Association.
https://www.worldcubeassociation.org/documents
20 stars 38 forks source link

Add table of contents to Delegate Crash Course #346

Closed Nanush7 closed 9 months ago

Nanush7 commented 1 year ago

I hope this is what you were looking for. :)

Let me know if you want me to change the place of the table of contents or the placement of the sub-items in the list.

I tested it on Brave (latest stable) and Okular (from KDE).

dmint789 commented 1 year ago

Would it not be better to have the table of contents above "On the Delegate candidateship" (so on the first page) and have that item included in the table of contents?

Nanush7 commented 1 year ago

The problem seems to be in Firefox; It still works well for me in Brave and Okular. Which PDF viewer are you using?

nsilvestri commented 1 year ago

Did some investigation of my own. Chrome works fine. Firefox (116.0.3, Windows 11) definitely has some issues, as some of the links work, but not all. I don't see any pattern between the links that do work and the ones that don't:

Looking at the links more closely, the build tool seems to be mangling the links into URL-encodings, or perhaps Firefox is mangling their interpretation:

"On the Delegate candidateship" link: /home/nick/code/wca-documents/build/edudoc/delegate-crash-course/delegate_crash_course.pdf#%DA%12%BC%D4%FF%20%3B%u02C7Q%08y6%7Fm%BAj%EF%B7Ri

"The roles of a WCA Delegate" link: /home/nick/code/wca-documents/build/edudoc/delegate-crash-course/delegate_crash_course.html%23the-roles-of-a-wca-delegate

Nanush7 commented 1 year ago

Yeah, I also couldn't find any pattern. I tried to add page breaks but it didn't get any better. I will have a look at Mozilla's bugzilla next week.