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

Regenerated the index.hbs theme file to handle mobile sites #193

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

Swandog
Copy link
Contributor

@Swandog Swandog commented Mar 11, 2024

This is a fix for the mobile site.

!!!NOTE TO REVIEWERS!!!: I fixed this by creating a new MDBook, then taking all of its contents and moving into the book/theme directory. Then, I looked at the changes that had been made to index.hbs throughout the Lace Git Repository history, and copied them onto the newly generated index.hbs.

THIS MEANS: if there were any changes made to the theme from BEFORE the Lace git repo was set up (namely, while it was Braid), then those changes will not be reflected in this new directory. Specifically,

  1. If there was custom code/changes to index.hbs done back in the Braid repository, they were not copied here
  2. If some theme files were delted back in the Braid repository, they were not deleted here.

That said, this change seems to work. You can test it by running cargo install mdbook && mdbook serve book

Swandog added 2 commits March 11, 2024 17:25
Something changed with the MDBook theme that caused it to not render properly on mobile.
Specifically, the site would come up with the sidebar open and the "close" button would not work.
I fixed this by initializing a NEW MDBook, copying over the generated `index.hbs`, and then
  adding in the changes we have made to our `index.hbs` in the Lace Git History.
Now it works correctly on the Firefox Mobile WebDev tool
@Swandog Swandog requested a review from BaxterEaves March 11, 2024 22:37
@Swandog Swandog self-assigned this Mar 11, 2024
@Swandog Swandog requested a review from a team as a code owner March 11, 2024 22:37
Copy link
Contributor

@BaxterEaves BaxterEaves left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@Swandog Swandog merged commit 6526006 into master Mar 12, 2024
21 checks passed
@schmidmt schmidmt deleted the fix-book-on-mobile branch May 6, 2024 14:34
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