This is a viewer only at the moment see the article on how this works.
To update the preview hit Ctrl-Alt-R (or ⌘-Alt-R on Mac) or Enter to refresh. The Save icon lets you save the markdown file to disk
This is a preview from the server running through my markdig pipeline
在本篇文章中,我将教你如何使您的 ASP.NET核心网站成为PWA(渐进式网络应用程序)。
它非常简单,见https://github.com/madskristensen/WebEsssentials.AspNetCore.ServiciceWorker/tree/master。
安装 Niget 软件包
dotnet add package WebEssentials.AspNetCore.PWA
在您的程式中, cs 添加 :
builder.Services.AddProgressiveWebApp();
然后创建一些与下面大小相匹配的飞行要量 在这里 是一个可以用来创建它们的工具。 这些真的可以是任何图标( 我使用了 emoji @ )
Save these in your wwrroot folder as android-chrome-192x192.png and android-chrome-512x512.png (in the example below)
然后,你需要一个名单。 json。
{
"name": "mostlylucid",
"short_name": "mostlylucid",
"description": "The web site for mostlylucid limited",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512"
}
],
"display": "standalone",
"start_url": "/"
}