Skip to content

nils-org/StatiqExtensions.WellKnown

Repository files navigation

StatiqExtensions.WellKnown

standard-readme compliant Contributor Covenant Build Codecov Report NuGet package

A set of Statiq helpers to create files in .well-known/

Table of Contents

Install

dotnet add package StatiqExtensions.WellKnown

Usage

Example:

await Bootstrapper
    .Factory
    .CreateWeb(args)
    .AddSetting(SettingKeys.WebFingerAlias.FromTemplate, "@nils_andresen@mastodon.social")
    .AddPipeline<WellKnownFolderPipeline>()
    .RunAsync();

WebFinger

To creates a WebFinger file that contains static content and "redirects" to a real account in the fediverse, use one of the following settings:

  • WebFingerAliasFromTemplate: Set this to a fediverse handle and the content of the webFinger-file will be generated from an internal template.
  • WebFingerAliasStaticResult: Set this to the full content of the webFinger-file. This setting takes precedence over WebFingerAliasFromTemplate.

MicrosoftIdentityAssociation

To create a microsoft-identity-association.json file, use the setting below:

  • MicrosoftIdentityAssociation.ApplicationId: Set this to an application-id or a list of application-ids.

Maintainer

Nils Andresen @nils-a

Contributing

StatiqExtensions.WellKnown follows the Contributor Covenant Code of Conduct.

We accept Pull Requests.

Small note: If editing the Readme, please conform to the standard-readme specification.

This project follows the [all-contributors][] specification. Contributions of any kind welcome!

License

MIT License © Nils Andresen