2.3 KiB
2.3 KiB
Hacking - Static Site
The Static Site Generator support is split into various classes, as indicated by the class diagram below.
Please note that this diagram only describes classes created as part of the Static Site Generator implementation, and only classes in the OpenLiveWriter.BlogClient.Clients.StaticSite
namespace. Other classes are implemented, such as wizard pages, which have been ommited from the above diagram.
Class roles and descriptions
Name | Role and description | Dependency summary |
---|---|---|
StaticSiteClient | Serves as the primary interface between Open Live Writer and the Static Site Generator support. Implements Blog functions such as CRUD on posts and pages. |
|
StaticSiteConfig | Defines and handles the storage and processing of configuration settings for the Static Site Generator support. |
|
StaticSitePost | Represents a published or yet-to-be-published post to StaticSiteClient . Contains methods related to loading from disk, saving to disk, and generating safe on-disk slugs and IDs, as well as other functionality. |
|
StaticSitePostFrontMatter | Defines and stores all possible static post front matter keys. Implements loading and saving from YAML, as well as loading and saving from a OpenLiveWriter.Extensibility.BlogClient.BlogPost instance. |
|
StaticSitePostFrontMatterKeys | A subset of the static site config, StaticSitePostFrontMatterKeys contains the key names for each of the supported front-matter attributes. Used to support different static site generators. |
|