Skip to content

Commit a7b80d7

Browse files
Update icons, use Makefile, remove warnings
1 parent 72377fe commit a7b80d7

File tree

9 files changed

+152
-40
lines changed

9 files changed

+152
-40
lines changed

.config/dotnet-tools.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"docfx": {
6+
"version": "2.78.3",
7+
"commands": [
8+
"docfx"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

.github/workflows/docs.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,18 @@ jobs:
2626
uses: actions/checkout@v3
2727

2828
- name: .NET Setup
29-
uses: actions/setup-dotnet@v3
29+
uses: actions/setup-dotnet@v4
3030
with:
3131
dotnet-version: 9.x
3232

33-
- name: Restore .NET tools
34-
run: dotnet tool restore
35-
working-directory: ./docs
36-
3733
- name: Generate documentation
3834
working-directory: ./docs
39-
run: dotnet docfx docfx.json
35+
run: make generate-docs
4036

4137
- name: Upload Pages artifact
4238
uses: actions/upload-pages-artifact@v3
4339
with:
44-
path: 'docs/_site'
40+
path: 'artifacts/_site'
4541

4642
- name: Deploy to GitHub Pages
4743
id: deployment

Makefile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
SOURCE_DIRECTORY := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
2+
ARTIFACT_PATH := $(SOURCE_DIRECTORY)artifacts
3+
DOCS_PATH := $(SOURCE_DIRECTORY)docs
4+
CONFIGURATION ?= Release
5+
6+
clean:
7+
dotnet clean
8+
rm -rf $(ARTIFACT_PATH)/*
9+
rm -rf $(DOCS_PATH)/api
10+
11+
restore:
12+
dotnet tool restore
13+
dotnet restore
14+
15+
build: restore
16+
dotnet build --no-restore --configuration $(CONFIGURATION)
17+
18+
test: build
19+
dotnet test \
20+
--no-build \
21+
--configuration $(CONFIGURATION) \
22+
--filter '(Execution!=Manual)' \
23+
--blame \
24+
--diag "$(ARTIFACT_PATH)/diag.txt" \
25+
--logger "trx" \
26+
--collect "Code Coverage;Format=cobertura" \
27+
--results-directory $(ARTIFACT_PATH)/test-results \
28+
-- \
29+
RunConfiguration.CollectSourceInformation=true
30+
31+
generate-docs: clean restore
32+
dotnet build --no-restore --configuration Release
33+
dotnet docfx $(DOCS_PATH)/docfx.json
34+
35+
serve-docs: generate-docs
36+
dotnet docfx serve $(ARTIFACT_PATH)/_site --port 8080
37+
38+
.DEFAULT_GOAL := build

docs/docfx.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
]
1111
}
1212
],
13-
"dest": "api"
13+
"output": "api"
1414
}
1515
],
1616
"build": {
@@ -31,18 +31,18 @@
3131
]
3232
}
3333
],
34-
"output": "_site",
34+
"output": "../artifacts/_site",
3535
"template": [
3636
"default",
3737
"modern"
3838
],
3939
"globalMetadata": {
4040
"_appName": "MCP C# SDK",
4141
"_appTitle": "MCP C# SDK",
42-
"_enableSearch": true,
43-
"pdf": true,
4442
"_appLogoPath": "images/mcp.svg",
45-
"_appFaviconPath": "images/favicon.ico"
43+
"_appFaviconPath": "images/favicon.ico",
44+
"_enableSearch": true,
45+
"pdf": false
4646
}
4747
}
4848
}

docs/dotnet-tools.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/images/favicon.ico

17.5 KB
Binary file not shown.

docs/images/mcp.svg

Lines changed: 73 additions & 11 deletions
Loading

docs/index.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,22 @@
22
_layout: landing
33
---
44

5-
# Model Context Protocol (MCP) .NET SDK
5+
# Overview
66

7-
Welcome to the API documentation for the MCP C# SDK. [Explore the API](https://aka.ms/mcp/dotnet).
7+
The official C# SDK for the [Model Context Protocol](https://modelcontextprotocol.io/), enabling .NET applications, services, and libraries to implement and interact with MCP clients and servers. Please visit our [API documentation](api/ModelContextProtocol.yml) for more details on available functionality.
8+
9+
## About MCP
10+
11+
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It enables secure integration between LLMs and various data sources and tools.
12+
13+
For more information about MCP:
14+
15+
- [Official Documentation](https://modelcontextprotocol.io/)
16+
- [Protocol Specification](https://spec.modelcontextprotocol.io/)
17+
- [GitHub Organization](https://github.com/modelcontextprotocol)
818

919
For how-to guides, tutorials, and additional guidance, refer to the [official MCP documentation](https://modelcontextprotocol.io/).
20+
21+
## License
22+
23+
This project is licensed under the [MIT License](https://github.com/modelcontextprotocol/csharp-sdk/blob/main/LICENSE).

docs/toc.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
- name: Home
2-
href: /index
1+
items:
32
- name: API Docs
4-
href: api/
3+
href: api/ModelContextProtocol.yml
4+
- name: Github
5+
href: https://github.com/ModelContextProtocol/csharp-sdk

0 commit comments

Comments
 (0)