Skip to content

julianguide/probe.rs

Repository files navigation

probe.rs website

Commands

Launch env with deps

nix-shell

First usage

npm install

Run hot-reloading dev server

npm run dev

Warning

For some reason, you have to restart after adding icons. TODO: file bug against astro icon pkg

Build static site (goes into dist/)

npm run build

Update domain / base path

Update astro.config.mjs, src/consts.ts (used for preloads), and global.css. The last one seems to be necessary due to a bug with npm run dev; the base paths get rewritten nicely for npm run build. It causes warnings like:

08:08:13 [WARN] [vite] /probe.rs/fonts/epilogue.ttf referenced in /probe.rs/fonts/epilogue.ttf didn't resolve at build time, it will remain unchanged to be resolved at runtime

Icons

Find free / open source icons, throw them in src/icons: https://iconify.design/

Install another repo as NPM package (must have a basic package.json)

npm install https://github.com/julianguide/probe.rs-data
npm update probe.rs-data

Original template generated with (after many tweaks by Julian)

npm create astro@latest -- --template blog

About

Prototype Astro version of probe.rs website.

Resources

Stars

Watchers

Forks

Contributors