This website is built using Docusaurus, a modern static website generator.
npm installnpm startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
- Add new docs: Create
.mdfiles in thedocs/directory - Edit existing docs: Modify any
.mdfile in thedocs/directory - Preview changes: Run
npm startto see changes in real-time
Each markdown file should have frontmatter at the top:
---
sidebar_position: 1
---
# Your Page Title
Your content here...To deploy to GitHub Pages, you need to set up SSH authentication for this repository only:
ssh-keygen -t ed25519 -C "your-email@example.com" -f ~/.ssh/id_ed25519_simmindeval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519_simmindcat ~/.ssh/id_ed25519_simmind.pubCopy the output and add it to GitHub:
- Go to GitHub Settings > SSH and GPG keys > New SSH key
- Paste the public key and save
Add to ~/.ssh/config:
Host github.com-simmind
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_simmind
git remote set-url origin git@github.com-simmind:simminddev/simmind-docs.gitgit config user.name "Your Name"
git config user.email "your-email@example.com"ssh -T git@github.com-simmindYou should see: Hi simminddev! You've successfully authenticated...
After making changes to your docs:
USE_SSH=true npm run deployThis will:
- Build the static site
- Push to the
gh-pagesbranch - Your site will be live at: https://simminddev.github.io/simmind-docs/
# Make your changes to markdown files
# ...
# Test locally
npm start
# Build and deploy
USE_SSH=true npm run deploynpm run buildThis generates static content into the build directory.
npm run serveThis serves the production build locally for testing before deployment.
- Initialize gh-pages branch (only needed once):
git checkout --orphan gh-pages
echo "# Docs" > README.md
git add README.md
git commit -m "Initialize gh-pages"
git push origin gh-pages
git checkout main- Enable GitHub Pages:
- Go to repository Settings > Pages
- Set Source to
gh-pagesbranch - Click Save