This website is built using Docusaurus, a modern static website generator.
npm install
npm start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
npm run build
This command generates static content into the build directory and can be served using any static contents hosting service.
This site is configured for automated deployment to GitHub Pages using GitHub Actions. The deployment pipeline includes:
main branch.github/workflows/deploy.yml - Deploys to GitHub Pages on push to main.github/workflows/test-deploy.yml - Tests the build on pull requestsmain branch: Production branch that automatically deploys to https://sophiedeziel.github.iogit add .
git commit -m "Your changes"
git push origin main
GitHub Actions will automatically build and deploy to GitHub Pages.
git checkout -b feature/your-feature-name
git add .
git commit -m "Your changes"
git push origin feature/your-feature-name
Then create a pull request on GitHub. The test workflow will verify the build succeeds.
If you need to deploy manually:
npm run deploy
Note: The automated GitHub Actions deployment is the preferred method.
docs/ directory:
touch docs/my-new-page.md
---
sidebar_position: 2
title: My New Page
---
# My New Page
Your content here...
sidebars.js to control the navigation structure.blog/ directory:
touch blog/2025-01-13-my-blog-post.md
---
slug: my-blog-post
title: My Blog Post
authors: [your-name]
tags: [docusaurus, tutorial]
---
Your blog content here...
blog/authors.yml if you’re a new author.src/pages/:
touch src/pages/my-page.js
import React from 'react';
import Layout from '@theme/Layout';
export default function MyPage() {
return (
<Layout title="My Page">
<div style=>
<h1>My Custom Page</h1>
<p>This page is accessible at /my-page</p>
</div>
</Layout>
);
}
/my-page..md or .mdx extensionsstatic/img/ and reference as /img/your-image.pngmy-new-page.md)Always test your changes before pushing:
npm start # For development preview
npm run build # To test the production build