Skip to content

Commit

Permalink
Adds configure options to readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Philo authored Aug 15, 2016
1 parent 30c0722 commit a8c15ee
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ The installation process should have updated your web.config file to include a h
```

## Customisation
The sitemap handler can be customised by altering the base configuration via the ```Sitemapify.Configure``` static configuration class. Sitemapify is split into providers that are responsible for elements of the sitemap generation.
The sitemap handler can be customised by altering the base configuration via the ```Sitemapify.Configure``` static configuration class.

```c#
Sitemapify.Configure(c => c
.UsingContentProvider(new YourContentProvider())
.UsingCacheProvider(new YourCacheProvider())
.UsingDocumentBuilder(new YourDocumentBuilder())
);
```

Sitemapify is split into providers that are responsible for elements of the sitemap generation.

### Content Provider (`ISitemapifyContentProvider`)
An implementation of a content provider supplies Sitemapify with a collection of `SitemapUrl` objects representing the nodes to output within the sitemap.
Expand Down

0 comments on commit a8c15ee

Please sign in to comment.