Setting up xStatic is easy, and following these steps you can configure your first static site within minutes.
Configuring a static site step by step
First install Umbraco from NuGet and ensure that it is all set up. xStatic can only be installed once Umbraco is running correctly.
Install the xStatic package to your Umbraco solution by installing the NuGet package "xStatic".
Add "services.AddXStatic().Automatic().Build();" to the ConfigureServices method in your Startup.cs file. You will need to use "using XStatic.Core.App;".
Build the project. Make sure that the folder "App_Plugins/xStatic" is included in your project. These files need to be included for xStatic to appear as available sections.
Deploy the solution.
Go to the users section of Umbraco. In the top right click groups, select the administrators group and add the section "xStatic Generated Sites".
Press save and reload the page.
Click on the new "xStatic Generated Sites" section.
On the Dashboard click "Create new site".
At the very least, fill in a name, the root node of the site and choose "HTML site" as the Export format. The you can press create.
Click xStatic Generated Sites to go back to the dashboard.
Press "Build" on your newly set up site configuration. This will create a static version of the site in the App_Data folder ready for deploying in a later stage.