Skip to content

Commit

Permalink
📄 update exampleSite README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
colinwilson committed Aug 7, 2023
1 parent 4787614 commit c7babd5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions exampleSite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ This repository offers a multilingual example site for [Lotus Docs](https://gith
2. Clone this repository

```bash
$ git clone https://github.com/colinwilson/lotusdocs
$ cd exampleSite
$ git clone https://github.com/colinwilson/lotusdocs lotusdocs
$ cd lotusdocs/exampleSite
```
3. Run Hugo server. The exampleSite use theme `lotusdocs` by setting `themesDir` as `../../`
3. Run Hugo server.

```bash
$ hugo server
```
## Notes:

The `exampleSite` functions by using the Hugo [`replace`](https://gohugo.io/hugo-modules/use-modules/#make-and-test-changes-in-a-module) directive (in `go.mod`) to point the default `lotusdocs` module path, `github.com/colinwilson/lotusdocs`, to the local directory above where the theme was cloned.

```go
replace github.com/colinwilson/lotusdocs => ../
```

0 comments on commit c7babd5

Please sign in to comment.