This repo is a refactored version of the Nerfies' Page, which feautres a MDX based writing website following the style of Nerfies' Page.
This README will guide you through setting up and deploying your site.
Before you begin, ensure you have the following installed:
- Node.js: Download and install from nodejs.org.
- pnpm: Install via npm with the command:
npm install -g pnpm
First, fork the repository to your own GitHub account by clicking the "Fork" button on the repository page.
Clone your forked repository to your local machine:
git clone <your-forked-repo-url>
cd <repository-name>
Use pnpm to install the necessary dependencies:
pnpm install
Edit the content of your site by modifying the contents/index.mdx
file. This is where you'll write the main content for your academic paper website.
And for previewing your site locally, run the following command:
pnpm run develop
Before deploying, make sure to update the siteMetadata
and pathPrefix
in gatsby-config.mjs
to match your desired URL path:
siteMetadata: {
title: `Nerfies Page Stater`,
siteUrl: `https://zivmax.github.io/nerfies-page-stater/`,
},
pathPrefix: `/nerfies-page-stater`,
To deploy the site, run the following command:
pnpm run deploy
This will build your site and push the generated files to the pages
branch of your forked repository.
Finally, set up the pages
branch as the source for GitHub Pages in your repository settings:
- Go to the repository settings.
- Click the "Pages" in "Code and automation" section.
- Select the
pages
branch as the source.