This repo holds the source code and assets used to build https://declarified.io, a guide to functional programming in JavaScript.
declarified.io uses highlight.js for syntax highlighting in the example code snippets.
Client-side full text search was implemented using flexsearch, a JavaScript library.
A simple table of contents with active highlighting was built using JS's built-in Intersection Observer API. The process is detailed here, courtesy of Bramus Van Damme.
The website is generated and deployed directly from the files in this repository, using GitHub Pages.