Source code for my gallery webpage.
https://gallery.badmanners.xyz
.vscode | ||
examples | ||
public | ||
scripts | ||
src | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.mjs | ||
astro.config.mjs | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tailwind.config.mjs | ||
tsconfig.json |
gallery.badmanners.xyz
Static website built in Astro + Typescript + TailwindCSS.
Development
Setup
git clone https://git.badmanners.xyz/badmanners/gallery.badmanners.xyz
cd git.badmanners.xyz
npm install
Local development
npm run dev # Start development server (quit with Ctrl-C)
npm run astro -- 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 -- --output-dir ~/Documents/TO_UPLOAD slug-for-story-to-export
Build and deploy to remote
npm run build
scp -r ./dist/* my-ssh-server:./gallery.badmanners.xyz/