This directory contains the custom theme for the Inference documentation site.
Install Node.js dependencies
npm install
Then, start MkDocs:
# In the project root
python -m mkdocs serve
The Tailwind CSS and JavaScript are only loaded on the homepage. This is controlled in main.html
.
styles.css
- Tailwind styles for homepage componentshome.js
- JavaScript for homepage animations and interactions
assets/
- Source files and compiled assetstailwind.css
- Tailwind source file (homepage only)home.js
- JavaScript source file (homepage only)dist/
- Compiled JavaScript (gitignored)styles.css
- Compiled CSS (gitignored)static/
- Static assets like images and animations
home.html
- Homepage templatemain.html
- Base template that extends MkDocs Material
- Tailwind CSS for homepage styling
- esbuild for JavaScript bundling
- GSAP for homepage animations
- Rive for interactive animations
The theme assets are automatically built when running mkdocs build
through the build hook in build.py
. This ensures the homepage assets are compiled before the site is built.