Skip to content

ryanhill1/ryanhill1.github.io

Repository files navigation

ryanhill1.github.io

Welcome to my personal website project. To run locally, follow the instructions below.

Prerequisites

Ensure you have the following installed:

Using Conda for Environment Management

You can create a virtual environment using Conda to manage dependencies for both Python and Node.js.

conda create -n rh1 python=3.12 nodejs=22

conda activate rh1

Installation

After activating your environment, install the project dependencies by running:

npm install

Serving the Site Locally

To preview the site locally, run the following command, which will serve the site at http://localhost:8000:

npm run dev

This will start a local server and automatically open your default web browser at the correct URL.

Formatting Code

JavaScript, HTML, and CSS

To format all project files (HTML, CSS, JS), run:

npm run format

To check formatting without making changes:

npm run format:check

Python

For Python files, we use tox to manage formatting and linting. First, install tox:

pip install tox

To format Python files, run:

tox -e linters

To check Python formatting without making changes:

tox -e format-check

Commit Messages

Commitlint supported commit subjects list:

build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test

Licenses

Concept:

License: CC BY-NC-SA 4.0

Source Code:

GNU GPLv3