Source code for my gallery webpage. https://gallery.badmanners.xyz
Find a file
2024-08-15 23:50:23 -03:00
.vscode Several minor improvements to typing and misc. 2024-08-07 19:31:38 -03:00
examples Several minor improvements to typing and misc. 2024-08-07 19:31:38 -03:00
public Several minor improvements to typing and misc. 2024-08-07 19:31:38 -03:00
scripts Further accessibility and semantic improvements 2024-08-15 23:50:23 -03:00
src Further accessibility and semantic improvements 2024-08-15 23:50:23 -03:00
.gitignore Migrate deploy-lftp script to tsx 2024-07-18 19:18:09 -03:00
.prettierignore Add Mastodon comments and remove date-fns dependency 2024-03-27 11:54:18 -03:00
.prettierrc.mjs Fix up first version and add Prettier and Docker 2024-03-20 11:34:09 -03:00
astro.config.mjs Several minor improvements to typing and misc. 2024-08-07 19:31:38 -03:00
LICENSE.md Several minor improvements to typing and misc. 2024-08-07 19:31:38 -03:00
package-lock.json Further accessibility and semantic improvements 2024-08-15 23:50:23 -03:00
package.json Further accessibility and semantic improvements 2024-08-15 23:50:23 -03:00
README.md Improved readability and accessibility for CSS-less mode 2024-08-10 01:46:30 -03:00
tailwind.config.mjs Add Mastodon links to new stories, add title texts, and improve tags 2024-07-23 17:12:54 -03:00
tsconfig.json Several minor improvements to typing and misc. 2024-08-07 19:31:38 -03:00

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

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, you can use a command like:

rsync --delete-after -acP dist/ gallerybm:/home/public