![]() ![]() md files are effectively mapped you can even navigate naturally between Markdown pages if they are linked in the Markdown as is often the case for GitHub doc.Īnd a real useful feature: Changes in Markdown also auto-refresh as soon as you change the markdown. This can be very useful if you are building documentation Web sites, so you can easily 'run' the documentation and see the Markdown rendered. The server provides default templates for the HTML styling, but you can override the rendering behavior with a custom Razor template that provides the chrome around the rendered Markdown, additional styling and syntax coloring. This serves HTML content directly off any. You can enable Markdown support in this server by setting -useMarkdown. The BrowserUrl can be an absolute URL ( or a relative URL ( /test.html or test.html or /subfolder/test.html). By default the root site is opened - by specifying a URL you can open a specific page. ![]() If you rather work without Live Reload you can turn it off via -useLiveReload False.īrowserUrl is an optional flag that allows you to specify a specific URL to open on launch. You can specify explicit file extensions to monitor using the -Extensions switch. HTML pages, CSS and scripts, and any other specific files with extensions you add are automatically reloaded whenever you make a change to the files. The Web Server automatically serves all static files and Live Reload is automatically enabled unless explicitly turned off. $env:LiveReloadServer_Port 5500 LiveReload Static Files You can also use Environment variables to set these save options by using a LiveReloadServer_ prefix: ![]() $env:LiveReloadServer_WebRoot c:\mySites\Site1\Web LiveReloadServer -WebRoot "c:\temp\My Site" -port 5500 -useSsl -useRazor -openBrowser false * Environment Variables with 'LIVERELOADSERVER_' prefix. * Logical Command Line Flags for true can be set like: -UseSsl or -UseRazor or -OpenBrowser MarkdownSyntaxTheme github*|vs2015|vs|monokai|monokai-sublime|twilightĬonfiguration options can be specified in: MarkdownTheme github*|dharkan|medium|blackout|westwind MarkdownTemplate ~/markdown-themes/_MarkdownTestmplatePage.cshtml* EditorLaunchCommand "code \"%1\""* (Win) or BrowserUrl optional startup url (site relative or absolute) Host 0.0.0.0*|localhost|custom Ip - 0.0.0.0 allows external access NET Tool using Dotnet SDK Tool installation: A single LiveReloadServer installation can serve many Web sites using the same static, Razor and Markdown resources which can be ideal for mostly static content sites that need 'a little extra' beyond plain static pages (examples here and here). You can also use this 'generic' server behind a live Web Server (like IIS, nginx etc.) by installing the main project as a deployed Web application to provide loose Razor support and Markdown rendering on a Web server. You can map additional extensions that trigger the LiveReload. If a checked file is changed, the browser's current page is refreshed. Live Reload is enabled by default and checks for changes to common static files. There's also optional support for rendering Markdown Pages as themed HTML directly from Markdown files. as well as loose Razor Pages that don't require any code behind or dependent source code. You can serve any static resources - HTML, CSS, JS etc. This tool is a generic local Web Server that you can point to any folder and provide simple and quick HTTP access to HTML and other Web resources. The EXE uses LiveReloadWebServer while the Dotnet Tool uses LiveReloadServer. NET/ASP.NET 8.0 Runtime) (windows, mac, linux)Īll three versions have the same features and interface, just the delivery mechanism and the executable name is different. Self Contained Windows Executable Folder (zipped) (windows) You can grab the compiled Dotnet Tool from: If optionally hosting requires a Web Server that supports WebSockets.Standalone Exe (Windows): self-contained (.NET 8).Available as: Dotnet Tool, Chocolatey Package, or Self-Contained (Windows) Download.Hostable ASP.NET Core app that can be used by multiple sites on a server.Cross Platform - Windows, Mac, Linux (dotnet tool only).Run Blazor Applications (without Live Reload support however).Run local SPA applications (Angular, VueJs, React etc.). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |