Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Fix GitHub button #74

Merged
merged 4 commits into from
May 25, 2022
Merged

Fix GitHub button #74

merged 4 commits into from
May 25, 2022

Conversation

rogermparent
Copy link
Contributor

@rogermparent rogermparent commented May 24, 2022

Demo (dvc.org, mlem.ai before, mlem.ai after)

github-button-demo.mp4

This PR fixes the breakpoint issues for the docs "Edit on GitHub" buttons, shifting around the media queries to reflect the more mobile-first approach of mlem.ai as well as adding a new 1200px --xl-scr breakpoint that reflects the inline queries that dvc.org uses to switch the content and sidebar versions of these buttons.

Relates to #63

Extends #72 because it uses the same shadowed RightPanel stylesheet that that PR introduces.

@rogermparent rogermparent self-assigned this May 24, 2022
@rogermparent rogermparent requested a review from a team May 24, 2022 18:53
@rogermparent rogermparent changed the base branch from main to fix-rightpanel-content-margin May 24, 2022 18:54
@gatsby-cloud
Copy link

gatsby-cloud bot commented May 24, 2022

Gatsby Cloud Build Report

mlem.ai

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 1m

Performance

Lighthouse report

Metric Score
Performance 💚 95
Accessibility 🔶 88
Best Practices 💚 100
SEO 🔶 83

🔗 View full report

@jorgeorpinel
Copy link
Contributor

Nice.

The actual issue with the Github button is that it opens 404 pages though. The links produced are all wrong. Examples: https://mlem.ai/doc/user-guide, https://mlem.ai/doc/use-cases/dvc

@rogermparent
Copy link
Contributor Author

rogermparent commented May 25, 2022

Ah, good to know, the function that makes the links must have been originally set back when the main branch was master, and now it's main. I'll do a quick fix here, should only be one line.

Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

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

Great job!

Base automatically changed from fix-rightpanel-content-margin to main May 25, 2022 15:48
@rogermparent rogermparent merged commit 913f5fc into main May 25, 2022
@rogermparent rogermparent deleted the fix-github-button branch May 25, 2022 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants