Skip to content

Commit

Permalink
Merge sections to be more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed May 19, 2022
1 parent a739b23 commit baadd48
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions .github/dev-docs/building-your-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,26 @@ category: "Creating Content"

Now that you have some amazing content, you'll want to compile your site into static HTML.

This is as easy as executing the `build` command:
**This is as easy as executing the `build` command:**
```bash
php hyde build
```

> Learn more about the options supported in the [console commands](console-commands#build-the-static-site) section.
## More ways to build your site

### Previewing your site live

It can quickly become tedious to have to hop to your terminal to rebuild your site.

The Hyde Realtime Compiler solves this problem by starting a development server that
automatically compiles your site on the fly. Start the server using the `serve` command:

**You can also compile a single file:**
```bash
php hyde serve
php hyde rebuild <filepath>
```

> Learn more in the [console commands](console-commands#start-the-realtime-compiler) section.
### Compiling a single file

Using the php hyde build command is great and all that, but when you just need to update that one file
it gets a little... overkill. To solve this problem, you can use the rebuild command to compile a single file:

**And, you can even start a development server to compile your site on the fly:**
```bash
php hyde rebuild <filepath>
php hyde serve
```
> Learn more in the [console commands](console-commands#build-a-single-file) section.

**Learn more about these commands in the [console commands](console-commands) documentation:**

- [Build command](console-commands#build-the-static-site)
- [Rebuild command](console-commands#build-a-single-file)
- [Serve command](console-commands#start-the-realtime-compiler)


## Concepts
Expand Down

0 comments on commit baadd48

Please sign in to comment.