Skip to content

HelenaELiu/portfolio-helenal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Site Template

This is a barebones template repo built to make setup and deploying your static site to Github pages easier! The overall process is as follows: make a repo from this template, set up Node/VitePress, and then deploy to Github pages. The steps are detailed below! You can check out an example here. If you have any questions, feel free to ask on Discourse or attend studio hours.

Useful links

Pre-setup

You will have to install Node.js v18 to use this template. You can check if you have it installed by running node -v in your terminal. If you get an error, or see a version less than 18, you will need to install it. 6.1020 has detailed instructions, which you can find here.

Setup Guide

  1. Log in to or create your GitHub account. Create your repo using this Vitepress Template repo as a template. Use as template example
  2. Be sure to name your repo portfolio-<some-variation-of-your-preferred-name>. For example, if my name is Dana Hua, I could name the repo portfolio-dana or portfolio-dhua. Create new repo
  3. Clone your new repo to your local machine.
  4. cd into your own repo, and then run npm install to install the dependencies. Make sure you've correctly installed Node v18 before doing this step.
  5. Run npm run docs:dev to start the development server. You should see a message with the localhost path where it is deployed; check it to make sure you can see your site. Sample site
  6. Customize your site by searching for and editing all of the TODO items in the docs/index.md and docs/.vitepress/config.mts files.
  7. In the docs/.vitepress/config.mts file, add your base path which is based on the repository's name. For example, if my repo is named portfolio-dhua, then I would add the following line to the config: base: "/portfolio-dhua/" (make sure to have both opening and closing slashes). Base path example
  8. Go to the settings tab in your repo, and scroll down to the Pages section on the left sidebar. Then, under the Source dropdown, click Github Actions. Actions config
  9. Add and commit all your files, then push to the main branch. You should see your site at https://<your-github-username>.github.io/<your-repo-name>/, e.g. https://huadana1.github.io/portfolio-dhua/ (It's possible that your site might initially load with no CSS applied. If this happens, just give it a few minutes then refresh the page.)

If you have trouble with any of these steps, check through the guide to make sure you didn't skip any steps, and then check Discourse or attend studio hours so a TA can help you out 😄

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published