From a8c15ee1c6a7eac31c13654929aea4e3bf65d77f Mon Sep 17 00:00:00 2001 From: Phil Oyston Date: Mon, 15 Aug 2016 15:43:40 +0100 Subject: [PATCH] Adds configure options to readme.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fd77a6a..afcce06 100644 --- a/README.md +++ b/README.md @@ -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.