This repository contains a Cyber Security eLearning course vault set up with Quartz v4 for publishing as a Digital Garden.
-
Preview your site locally:
npm run serve
This will build and serve your site at
http://localhost:8080 -
Build only (no server):
npm run build
The static site will be generated in the
public/directory.
- Edit your markdown files in the
content/directory - The site will automatically rebuild when using
npm run serve - Your Obsidian vault content is in
content/Cyber Security Batch 02 - eLearning/
Edit quartz.config.ts to customize:
- Site title and description
- Base URL (required for deployment)
- Theme colors and fonts
- Analytics
- Plugins and features
Edit quartz.layout.ts to customize the page layout and components.
-
Initialize git repository:
git init git add . git commit -m "Initial commit"
-
Create a new GitHub repository and push:
git remote add origin <your-repo-url> git branch -M main git push -u origin main
-
Update
baseUrlinquartz.config.tsto your GitHub Pages URL:baseUrl: "yourusername.github.io/repo-name" -
Use Quartz's sync command or set up GitHub Actions for automatic deployment
- Push your code to GitHub
- Import the repository in Vercel
- Set build command:
npm run build - Set output directory:
public - Update
baseUrlinquartz.config.tsto your Vercel URL
- Push your code to GitHub
- Import the repository in Netlify
- Set build command:
npm run build - Set publish directory:
public - Update
baseUrlinquartz.config.tsto your Netlify URL
.
├── content/ # Your markdown content
│ ├── index.md # Home page
│ └── Cyber Security Batch 02 - eLearning/
├── quartz/ # Quartz core files
├── docs/ # Quartz documentation
├── public/ # Generated static site (git-ignored)
├── quartz.config.ts # Main configuration
├── quartz.layout.ts # Layout configuration
└── package.json # Node.js dependencies and scripts
npm run serve- Build and serve locally with hot reloadnpm run build- Build static site topublic/directorynpm run preview- Alias fornpm run servenpx quartz create- Create new Quartz contentnpx quartz update- Update Quartz to latest version
- Keep your content in the
content/directory - The
.obsidianfolder is ignored by default - Obsidian wiki-links (
[[link]]) are automatically converted - Support for embedded images, callouts, and other Obsidian features
© 2025 Tharaka Mahabage | Cybersecurity Architect | Director – SL CERT