Instructions to install quartz locally.
Installation Instructions
1. Clone the Repository
git clone https://github.com/jackyzha0/quartz.git <target-directory>
cd <target-directory>2. Install the Dependencies
npm install3. Run Interactive Initialization
npx quartz createIt will ask for a starting template, here you can choose from:
- Default: a clean
quartzsetup with sensible defaults, such as search, explorer, etc. - Obsidian: it mimics
obsidianapp visuals. - TTRPG: is a layout optimized for RPG games.
- Blog: Removes wiki style functionality to have a cleaner blog layout
It will ask how to initialize the content:
- Empty Quartz: no default content.
- Copy an existing folder: will copy a content folder.
- Symlink an existing folder: will symlink the content of an existing folder.
It will ask how quartz should resolve links:
- Shortest paths.
- Absolute paths.
- Relative paths.
It will ask the base URL for your site.
4. Check the Installation
The following command will spawn a development server on http://localhost:8080.
npx quartz build --serve5. Set Your Git Remote
Rename current origin to be upstream:
git remote rename origin vendorAdd your actual remote as origin:
git remote add origin <remote-repository-url>Commit initialization changes:
git add "."
git commit -m "chore: initialized quartz"Remember to take note of the current branch name, you’ll need it for updating Quartz.
Push the current branch to your remote:
git branch -m main
git push -u origin main