About Wyam .Net Static Site Generator

About Wyam .Net Static Site Generator

Wyam

Wyam is a static content generator and can be used to generate web sites. And also produce documentation, create ebooks, and much more.

Then since everything is configured by chaining together flexible modules (that you can even write yourself). Therefore the only limits to what it can create are your imagination.


Wyam Features

Written in .NET and easily extensible

  1. Low ceremony – download a zip file, unzip, and run
  2. Flexible script-based configuration using the power of the .NET Compiler Platform (Roslyn)
  3. Lots of modules for things like reading and writing files, handling frontmatter and manipulating metadata YAML parser
  4. Less CSS compiler
  5. Support for multiple templating languages including Razor
  6. Integrated web server for previewing output
  7. Integrated file watching and regeneration
  8. Full NuGet support
  9. Embeddable engine

Wyam Concepts

The primary concepts in Wyam are documents, metadata, modules, pipelines, recipes, and themes.

While not strictly necessary if you’re just planning on using a recipe. Then understanding these concepts will go a long way towards making sense of how your generation works. And how best to customize it to your needs.

  1. Documents. A document is combination of content, metadata and is what conveys information through the framework.
  2. Metadata.   Metadata is the primary means of passing information between modules and pipelines.
  3. Module. A module is a small single-purpose component that acts on documents.
  4. Shortcodes.    Shortcodes are small but powerful macros that can generate content in your documents.
  5. Pipelines.    A pipeline is a series of modules executed in sequence.
  6. Recipes.    A recipe is a pre-configured series of modules and pipelines.
  7. Themes.    Each theme contains a set of content such as CSS files, layouts, etc. that apply to a specific recipe.
  8. I/O.    Explains Wyam’s powerful I/O abstraction.

Wyam Usage

How to obtain, configure, and execute Wyam.

  1. Obtaining. How to download and install.
  2. Command Line. Describes how to run Wyam from the command line and the available options.
  3. Configuration.    Describes the format of the configuration file.
  4. Settings. How to set global settings and a list of all general settings metadata.
  5. Embedding.   Wyam can be embedded into your own application.
  6. Executing In A Unit Test.    How to call Wyam from within a unit test.
  7. Examples.    Where to find usage examples.

Deployment

One of the many benefits of static generation is that the end result is a collection of final files. By default, Wyam places the result of your build in the output folder.

You can manually deploy your site by simply uploading these files to your host.  However there are also other ways to build and deploy your content described below. 

  1. AppVeyor for Continuous Integration    How to use GitHub Pages and AppVeyor to enable a free
  2. Continuous integration environment for your site.
  3. Azure, How to deploy your static site to Azure.
  4. Netlify, How to deploy your static site to Netlify.
  5. Serving From A Subdirectory    How to support hosts that place your site under a subdirectory.
  6. SSL and HTTPS    Making your Wyam site work over HTTPS.
  7. Using Cake    Instrument your build and deployment steps with Cake.

Extensibility

Wyam is extremely extensible and these topics discuss the ways in which you can extend it.

  1. Creating A Theme. Explains how to create and distribute your own theme.
  2. Customizing Recipe Pipelines. Tips for customizing recipes by modifying their pipelines and modules.
  3. Customizing Themes.    Tips for customizing recipes by modifying their themes.
  4. Writing a Module. How to write a module for Wyam.

Advanced

Discussions of more advanced topics and how to bend Wyam to your will.

  1. Customs Document. TypesUse custom document types to add new document behavior.
  2. Document Content Streams. How content for documents is stored and how to customize that behavior.
  3. Migrating to 0.12.x.   How to migrate existing sites to the new IO abstraction in 0.12.x.
  4. Setting The Culture. 

What To Exclude From Source Control    Files and folders that generate and should not be included in source control.

Resources

Additional resource about Wyam and about static generation in general.

  1. Some Background. A little background on the name and intent of this project.
  2. Built With Wyam. These people know how to party!
  3. Blog Posts.    Blog posts about Wyam from around the web.
  4. Tools.    A list of JavaScript components, hosted services, and other resources that can help improve your static sites.
  5. Hosts.    A list of hosts specializing in static sites.

Wyam is crafted by Dave Glick and other awesome contributors. Code on GitHub.


Source : 

  1. Staticgen.com
  2. Wyam.io

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

error: Content is protected !!