Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tune headings of quick start. #159

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions Sources/Slipstream/Documentation.docc/Guides/QuickStart.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ In this guide we'll make a website called hogmobile.com.
npm install -D tailwindcss
```

## Create your site package
## Workspace setup

### Create your site package

```bash
mkdir hogmobile.com
Expand All @@ -29,13 +31,13 @@ Also initialize Tailwind CSS:
npx tailwindcss init
```

## Open your package in Xcode
### Open your package in Xcode

```bash
open Package.swift
```

## Add Slipstream as a dependency
### Add Slipstream as a dependency

Check the following:

Expand Down Expand Up @@ -97,7 +99,7 @@ let outputURL = projectURL.appending(path: "site")
try renderSitemap(sitemap, to: outputURL)
```

## Configure Tailwind CSS
### Configure Tailwind CSS

Define where your site content will be rendered. In our case, we'll be writing it to the `site/`
folder.
Expand All @@ -123,13 +125,15 @@ Create a `tailwind.css` in the root of your package:
@tailwind utilities;
```

## Generate your site
### Generate your site

```bash
swift run && npx tailwindcss -i tailwind.css -o ./site/output.css --minify
```

## Set your site's CNAME
## Prepare for deployment to the web

### Set your site's CNAME

If you plan on hosting your site using a custom domain name on GitHub pages,
create a `CNAME` file in the root of your package and add the domain name to
Expand All @@ -139,7 +143,7 @@ it:
hogmobile.com
```

## Set up a GitHub action
### Set up a GitHub action

Create a file named `.github/workflows/deploy.yml` and add the following:

Expand Down Expand Up @@ -192,7 +196,7 @@ jobs:
uses: actions/deploy-pages@v4
```

## Deploying to GitHub
## Deploy to GitHub

In this section we'll deploy our website to GitHub and publish it to the internet
using GitHub Pages.
Expand Down