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 broken links on docs site #119

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Fix broken links on docs site #119

merged 3 commits into from
Nov 7, 2023

Conversation

sortbyfirstname
Copy link

This change fixes some issues with broken links on the docs site, resolving #118.

The pips and range links in the sidebar were not navigating to their respective props in the article because the ids used were also being used in the SVG logo in the site header. When scrolling to fragment it was appearing to do nothing as this is at the top of the page. To resolve this, I have added a 'logo-' prefix to all element ids in all logo SVGs (for consistency).

The links on the Examples & Recipes pages were broken due to the path being incorrect. I have corrected these paths to resolve this.

The broken images on the Recipes page were due to both the way Astro handles public directory images and the way dynamic filename props work in Astro/Vite. The resolution for this is to remove public from the source, replacing with the base (svelte-range-slider-pips), and hardcoding the file extension.

@simeydotme
Copy link
Owner

Thanks @sortbyfirstname !
I will check this asap

I need to learn what is up with those paths/urls, I was quite new with Astro and I found some weirdness with local/deployed versions myself (re: paths)

@simeydotme simeydotme merged commit 430d73c into simeydotme:astro-pages Nov 7, 2023
1 check passed
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.

2 participants