Skip to content

a-gavin/a-gavin.github.io

Repository files navigation

Website

This website uses the following open source tools:

Repository Contents

Development Setup

  1. Install Zola (static website generator)

  2. Install npm (via nvm)

    • Follow the nvm install guide

    • After installing nvm, run:

      # Install NodeJS v22
      nvm install v22
      
      # Redundant, but just for reference
      nvm use v22
  3. Install required node packages

    npm install
  4. Generate tailwind CSS from config

    NOTE: To update CSS, make sure to regenerate using following command and manually check the updated CSS in.

    # Zola looks for CSS and favicon in './static/' by default
    # Add '--watch' to run in the background if not using editor Tailwind plugins
    npx tailwindcss -i ./static/app.css -o ./static/main.css
  5. Serve webpage locally

    # The 'shalzz/zola-deploy-action' GitHub action generates
    # the required directory structure for hosting on GitHub Pages
    # by running on all pushes to main.
    zola serve

Reference npm Commands

# List both development and production dependencies
npm list

# List only production dependencies
npm list --omit=dev -depth 0

# List only development dependencies
npm list --include=dev -depth 0

# Install and add new dependency to tracked packages
# Add '--save-dev' to install as development dependency
npm install $PKG_NAME@$PKG_VERSION

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published