machinetranslate / machinetranslate.org

Open information and community for machine translation
https://machinetranslate.org
Creative Commons Attribution Share Alike 4.0 International
72 stars 58 forks source link

Improve build time by caching #530

Closed tovmasharrison closed 1 year ago

tovmasharrison commented 1 year ago

Description

Fixes #489

I have updated just-the-docs remote theme version to the latest and implemented a caching mechanism with jekyll-include-cache plugin to the the included sidebar.html and icons.html inside default.html by overriding default.html from the remote theme. Also, I have cached the social media includes inside footer_custom.html.

Additonally, I have enabled incremental builds and set lsi: false, as there is no generation of similiar posts implemented.

The above steps have reduced the build time from 2779 seconds to 342 seconds.

Checklist:

bittlingmayer commented 1 year ago

Looks good to me. I think we should add some comments in the file and in the README explaining where it is from.

bittlingmayer commented 1 year ago

Awesome! Build time is down from 40 minutes to 6 minutes