Skip to content

Commit

Permalink
docs: update generated HTML location (required after enabling linkcheck)
Browse files Browse the repository at this point in the history
Signed-off-by: VirtualTam <[email protected]>
  • Loading branch information
virtualtam committed Dec 1, 2024
1 parent 873593c commit 26ad180
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: "./docs/book"
path: "./docs/book/html"

publish:
if: github.ref == 'refs/heads/main'
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ dev-admin:
DOCS_DIR := docs
DOCS_FILES := $(shell find docs -name "*.md" -or -name "*.toml")

docs: docs/book
docs: docs/book/html
.PHONY: docs

docs/book: $(DOCS_FILES)
docs/book/html: $(DOCS_FILES)
mdbook build $(DOCS_DIR)

live-docs:
Expand Down
2 changes: 2 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ title = "SparkleMuffin: Documentation"
[build]
create-missing = false

[output.html]

[output.linkcheck]
# https://github.com/Michael-F-Bryan/mdbook-linkcheck

Expand Down
4 changes: 2 additions & 2 deletions docs/src/developer-guide/how-to/generating-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mdbook build docs
2023-11-05 16:19:04 [INFO] (mdbook::book): Running the html backend
```

The generated website will be located under `docs/book`.
The generated website will be located under `docs/book/html`.


## Live-reload server
Expand All @@ -32,7 +32,7 @@ mdbook serve docs
2023-11-05 16:19:25 [INFO] (warp::server): listening on http://[::1]:3000
```

- The generated website will be located under `docs/book`;
- The generated website will be located under `docs/book/html`;
- The live server can be accessed by opening [http://localhost:3000](http://localhost:3000) in a Web browser.

## Reference
Expand Down

0 comments on commit 26ad180

Please sign in to comment.