OutWit.Web.Generator 1.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global OutWit.Web.Generator --version 1.2.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local OutWit.Web.Generator --version 1.2.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=OutWit.Web.Generator&version=1.2.0
                    
nuke :add-package OutWit.Web.Generator --version 1.2.0
                    

OutWit.Web.Generator

A .NET CLI tool for generating static content, OG images, sitemap, search index, and RSS feeds for OutWit.Web sites.

Installation

dotnet tool install -g OutWit.Web.Generator

Usage

When using OutWit.Web.Framework, content generation runs automatically on Release builds:

  1. Install the Generator tool globally
  2. In Visual Studio, switch to Release configuration
  3. Build your project (Ctrl+Shift+B)
  4. Generation runs automatically after build!

Manual CLI Usage

outwit-generate --content-path ./wwwroot/content --output-path ./wwwroot

CLI Options

Option Description Default
--content-path Path to content folder Required
--output-path Output directory site/wwwroot
--site-url Base URL for sitemap/RSS https://example.com
--site-name Site name for RSS feed My Site
--hosting Hosting provider (cloudflare/netlify/vercel/github) cloudflare
--no-sitemap Skip sitemap generation false
--no-search Skip search index generation false
--no-rss Skip RSS feed generation false
--no-static Skip static HTML generation false
--no-og Skip OG image generation false
--force-og Force regenerate OG images false
--search-content-max-length Max content length for search index 10000

MSBuild Properties

When using the Framework, configure generation via MSBuild properties in your .csproj:

<PropertyGroup>
  
  <OutWitSiteUrl>https://example.com</OutWitSiteUrl>
  
  
  <OutWitSiteName>My Site</OutWitSiteName>
  
  
  <OutWitHostingProvider>cloudflare</OutWitHostingProvider>
  
  
  <OutWitGenerateStaticPages>true</OutWitGenerateStaticPages>
  <OutWitGenerateSearchIndex>true</OutWitGenerateSearchIndex>
  <OutWitGenerateRssFeed>true</OutWitGenerateRssFeed>
  <OutWitGenerateOgImages>false</OutWitGenerateOgImages>
  
  
  <OutWitGenerateContent>true</OutWitGenerateContent>
</PropertyGroup>

Features

Content Index

Generates index.json listing all content files by category (blog, projects, docs, articles, features) and dynamic sections.

Sitemap

Creates sitemap.xml and robots.txt with proper lastmod dates.

Search Index

Generates search-index.json for client-side search functionality.

RSS Feed

Creates feed.xml for blog posts with proper formatting.

Static HTML

Pre-renders HTML pages for SEO and faster initial load.

OG Images

Generates Open Graph images for social sharing using Playwright.

# Install Playwright before using OG images
npx playwright install chromium

Dynamic Content Sections

Define custom content sections in site.config.json:

{
  "contentSections": [
    { "folder": "solutions", "route": "solutions", "menuTitle": "Solutions" }
  ]
}

GitHub Actions

Example workflow step:

- name: Build and Run Generator
  run: |
    dotnet build OutWit.Web.Generator -c Release
    dotnet run --project OutWit.Web.Generator -c Release -- \
      --content-path publish/wwwroot/content \
      --output-path publish/wwwroot \
      --site-url https://example.com \
      --site-name "My Site"

License

Licensed under the Apache License, Version 2.0. See LICENSE.

Attribution (optional)

If you use OutWit.Web.Generator in a product, a mention is appreciated (but not required), for example: "Powered by OutWit.Web.Generator (https://ratner.io/)".

Trademark / Project name

"OutWit" and the OutWit logo are used to identify the official project by Dmitry Ratner.

You may:

  • refer to the project name in a factual way (e.g., "built with OutWit.Web.Generator");
  • use the name to indicate compatibility (e.g., "OutWit.Web.Generator-compatible").

You may not:

  • use "OutWit.Web.Generator" as the name of a fork or a derived product in a way that implies it is the official project;
  • use the OutWit.Web.Generator logo to promote forks or derived products without permission.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.3.4 110 2/5/2026
1.3.3 96 2/5/2026
1.3.2 103 2/3/2026
1.3.1 89 2/3/2026
1.3.0 92 2/2/2026
1.2.0 97 2/2/2026
1.0.7 101 1/25/2026
1.0.6 107 1/23/2026
1.0.5 92 1/18/2026
1.0.3 96 1/18/2026
1.0.2 94 1/18/2026
1.0.1 98 1/14/2026
1.0.0 93 1/14/2026