WP2Static and DocFX are both open source static site generators. WP2Static is written in PHP and DocFX is written in C#.
Property | WP2Static | DocFX |
---|---|---|
Language | PHP | C# |
Templates | Mustache, Liquid | |
License | Unlicense | MIT |
WordPress plugin to publish a static copy of your site to GitHub Pages, S3, Netlify or anywhere else you can pipe into your CI/CD workflow.
Formerly, "WP Static Site Generator"
For all the reasons why to use it and the benefits of going static, visit https://wp2static.com. For documentation, there's a site for that, too.
DocFX is an API documentation generator for .NET, and currently it supports C# and VB. It generates API reference documentation from triple-slash comments in your source code. It also allows you to use Markdown files to create additional topics such as tutorials and how-tos, and to customize the generated reference documentation. DocFX builds a static HTML website from your source code and Markdown files, which can be easily hosted on any web servers (for example, github.io). Also, DocFX provides you the flexibility to customize the layout and style of your website through templates. If you are interested in creating your own website with your own styles, you can follow how to create custom template to create custom templates.
DocFX also has the following cool features:
Install-Package docfx.console
docfx
extension in vscode to preview the content in real-time.