Skip to content

Commit 3d0644e

Browse files
authored
Merge branch 'main' into quickstart
2 parents e07084f + 43bba79 commit 3d0644e

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[![deploy to gh-pages](https://github.com/Minimal-APIs/minimal-apis.github.io/actions/workflows/deploy.yml/badge.svg)](https://github.com/Minimal-APIs/minimal-apis.github.io/actions/workflows/deploy.yml)
2+
23
# minimal.github.io
3-
tutorials and samples for minimal apis
44

5-
- To run the site locally please go navigate to mini-docs and run - `npm run dev`
6-
- To add / update docs please go to src
7-
- To update / add menu items go to src/.vuepress/config.js
5+
Tutorials and samples for minimal APIs.
86

7+
- To run the site locally, navigate minimal-apis.github.io to and run - `npm run dev`.
8+
- To add or update docs, go to `src` folder.
9+
- To add or update menu items, go to the `src/.vuepress/config.js` file.

src/.vuepress/config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ module.exports = {
2424
],
2525
],
2626

27+
markdown: {
28+
lineNumbers: true,
29+
},
30+
2731
/**
2832
* Theme configuration, here is the default theme configuration for VuePress.
2933
*
@@ -37,9 +41,6 @@ module.exports = {
3741
lastUpdated: false,
3842
logo: "logo.png",
3943
smoothScroll: true,
40-
markdown: {
41-
lineNumbers: true,
42-
},
4344
nav: [
4445
{
4546
text: "Quickstart",
72.9 KB
Loading
19.7 KB
Loading
69.1 KB
Loading

src/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ Minimal APIs are great for building microservices for your applications fast.
2020

2121
### C# Ecosystem
2222

23-
Minimal APIs is built using C#. An open-source, modern, object-oriented, and type-safe programming language you'll love.Build an API in C# with just **four lines of code**.
23+
Minimal APIs is built using C#. An open-source, modern, object-oriented, and type-safe programming language you'll love. Build an API in C# with just **3 lines of code**.
2424

2525
```csharp
26-
var builder = WebApplication.CreateBuilder(args);
27-
var app = builder.Build();
26+
var app = WebApplication.Create(args);
2827

2928
app.MapGet("/", () => "Hello World!");
3029

src/quickstart/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
Minimal APIs are a low ceremony way to build small microservices and HTTP APIs in ASP.NET Core. Minimal APIs hook into ASP.NET Core’s hosting and routing capabilities and allow you to create fully functioning APIs with just a few lines of code.
66

77
```csharp
8-
var builder = WebApplication.CreateBuilder(args);
9-
var app = builder.Build();
8+
var app = WebApplication.Create(args);
109

1110
app.MapGet("/", () => "Hello World!");
1211

1312
app.Run();
1413
```
15-
We have created a series of quickstarts to get you familiar with minimal APIs.
16-
1714

15+
We have created a series of quickstarts to get you familiar with minimal APIs.

0 commit comments

Comments
 (0)