Skip to content

Commit

Permalink
Merge pull request #2816 from moreal/dotnet-tool-manifest
Browse files Browse the repository at this point in the history
Use dotnet tool-manifest
  • Loading branch information
moreal authored Sep 10, 2024
2 parents 31cbd41 + e1b7d96 commit f5f9b65
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"docfx": {
"version": "2.77.0",
"commands": [
"docfx"
]
}
}
}
3 changes: 1 addition & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- add-docs # This branch is temporary.

jobs:
publish-docs:
Expand All @@ -24,7 +23,7 @@ jobs:
dotnet-version: 6.0.400

- run: dotnet restore
- run: dotnet tool update -g docfx
- run: dotnet tool restore
- run: docfx docs/docfx.json

- name: deploy
Expand Down
13 changes: 11 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@

The documents are published using [DocFX](https://dotnet.github.io/docfx/).

## Install DocFX

This project uses `tool-manifest` to specify tools' versions used in
this project. You can install tools with the below command:

```
dotnet tool restore
```

## Preview

```
docfx build --serve
dotnet docfx build --serve
```

## Publish

```
docfx build
dotnet docfx build
```

0 comments on commit f5f9b65

Please sign in to comment.