A custom fork of Quartz to generate my Digital Garden site
arbor docs index.md
3.6 kB · 69 lines
Markdown
at v5

--- title: Welcome to Quartz 5 --- Quartz is a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites. Thousands of students, developers, and teachers are [[showcase|already using Quartz]] to publish personal notes, websites, and [digital gardens](https://jzhao.xyz/posts/networked-thought) to the web. ## 🪴 Get Started Quartz requires **at least [Node](https://nodejs.org/) v22** and `npm` v10.9.2 to function correctly. Ensure you have these installed on your machine before continuing. See the [[getting-started/index#Prerequisites|prerequisites]] for help installing them. > [!tip] GitHub users > You can also use the **[GitHub template](https://github.com/jackyzha0/quartz/generate)** to create your repository in one click, then clone that instead. See [[installation#Option A Use the GitHub Template Recommended|Option A]] in the installation guide. ```shell # 1. Clone the Quartz repository git clone https://github.com/jackyzha0/quartz.git cd quartz # 2. Install dependencies npm i # 3. Initialize your site (choose a template, set your base URL, import content) npx quartz create # 4. Install plugins referenced by your chosen template npx quartz plugin install --from-config # 5. Preview your site locally npx quartz build --serve ``` Your site is now running at `http://localhost:8080`. From here: - **[[authoring-content|Write content]]** in the `content/` folder - **[[installation|Push to GitHub]]** with `npx quartz sync` - **[[hosting|Deploy]]** to GitHub Pages, Cloudflare, Netlify, or Vercel For the full walkthrough, see the [[getting-started/index|Getting Started]] guide. ### Returning User? Already have a Quartz repository and cloning it on a new machine? ```shell git clone https://github.com/<your-username>/<your-repo>.git cd <your-repo> npm ci npx quartz plugin install npx quartz build --serve ``` > [!tip] > If you hit build errors on a fresh clone, try `npx quartz plugin install --latest` to refresh plugins to their latest versions. See [[tro…