promised-ai / lace

A probabalistic ML tool for science
Other
107 stars 8 forks source link

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

Closed Swandog closed 8 months ago

Swandog commented 8 months ago

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