Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 0 additions & 11 deletions content/docs-drift/example.md

This file was deleted.

127 changes: 0 additions & 127 deletions content/docs-drift/module.md

This file was deleted.

3 changes: 0 additions & 3 deletions content/docs-drift/src/go.mod

This file was deleted.

13 changes: 0 additions & 13 deletions content/docs-drift/src/main.go

This file was deleted.

4 changes: 4 additions & 0 deletions content/docs-installation/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ cd hype
go install ./cmd/hype
```

### Documentation Build Prerequisites

To preview or export this repository's documentation, install Go 1.25 or newer and `tree`, and make both available on `PATH`.

### Verify Installation

```bash
Expand Down
19 changes: 18 additions & 1 deletion content/docs-quickstart/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,24 @@ For more examples, see the [hype repo](https://www.github.com/gopherguides/hype)

# Arbitrary Commands

You can also use the `cmd` tag and the `exec` attribute to run arbitrary commands and include them in your documentation. Here is the command to run the `tree` command and include it in our documentation:
You can also use the `cmd` tag and the `exec` attribute to run arbitrary commands and include their output in your documentation. A simple example prints a greeting:

```html
<cmd exec="echo Hello from Hype"></cmd>

```

Here is the output:

```shell
$ echo Hello from Hype

Hello from Hype
```

## Advanced Example

Commands run by `cmd` must be installed on the machine building the docs; this example requires `tree`.

```html
<cmd exec="tree" src="."></cmd>
Expand Down
Loading