- Improved schema validation - Move username parsing and other validators to schema types - Fix astro check command - Add JSON/YAML schema validation for data collections - Update licenses - Remove deployment script in favor of rsync - Prevent unsanitized input in export-story script - Change "eng" language to "en", per BCP47 - Clean up i18n keys and add aria attributes - Improve MastodonComments behavior on no-JS browsers
969 B
969 B
gallery.badmanners.xyz
Static website built in Astro + Typescript + TailwindCSS.
Requirements
- Node.js 20+
- (optional) rsync, for remote deployment.
- (optional) LibreOffice, for the story export script.
Development
Setup
git clone https://git.badmanners.xyz/badmanners/gallery.badmanners.xyz
cd gallery.badmanners.xyz
npm install && npm run sync
Local development
npm run dev # Start development server (quit with Ctrl-C)
npm run sync # Rebuild types from src/content/ files
npm run prettier # Prettier formatting
Export story for upload
Requires libreoffice
to be installed and in your path.
npm run export-story -- -o ~/Documents/TO_UPLOAD slug-for-story-to-export
Build and deploy to remote
npm run build
Then, after configuring the gallerybm
host (or the name of your choosing) in ~/.ssh/config
:
rsync --delete -acP dist/ gallerybm:/home/public