algolia / instantsearch-specs

CSS library for InstantSearch libraries
https://instantsearchjs.netlify.app/specs/
5 stars 4 forks source link

refactor: migrate from hugo to astro #125

Closed aymeric-giraudet closed 2 years ago

aymeric-giraudet commented 2 years ago

Funnily enough Astro's compiler is written in Go just like Hugo, although it's compiled to WASM so no need for multiple binaries :D

Visually the resulting HTML is basically the same, I used Astro's builtin <Code /> component though which uses shiki as opposed to Highlight.js. The only JS we send to the client now is for the tabs, highlighting the code on hover and to switch themes :)

Another difference is I got rid of Gulp and just compile styles with the CLI, resulting CSS is now leaner though due to newer autoprefixer versions which drop support for Microsoft browsers and took some updates to WebKit and Firefox into account.

Preview here

Haroenv commented 2 years ago

you'll need to specify the node version in the netlify.toml or nvmrc

Haroenv commented 2 years ago

I think the build output will need to be set in netlify.toml, the preview didn't seem to work