From f8fd9ba137dd20d097f86852bce6d197d6ae2a23 Mon Sep 17 00:00:00 2001 From: Callum Whyte Date: Thu, 24 Jun 2021 10:43:52 +0100 Subject: [PATCH] Release 1.2.0 --- CHANGELOG.md | 16 +++++-- LICENSE.md | 4 +- README.md | 42 ++----------------- .../Our.Umbraco.FriendlyRobots.csproj | 4 +- 4 files changed, 20 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b772aaf..e50699e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/). +## [1.2.0] - 2021-06-24 +### Added +* Custom `IRobotsBuilder`s and routes are registerable at startup + +### Changed +* `IRobotsBuilder` takes a culture for multi-lingual content +* Files are cached for 15 minutes +* Default configuration is more easily extensible + ## [1.1.0] - 2020-08-17 ### Added * Default output can now be overwritten with `IRobotsBuilder` @@ -19,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/) and this ### Added * Initial release of Friendly Robots for Umbraco 8.1 -[Unreleased]: https://github.com/callumbwhyte/friendly-robots/compare/release-1.1.0...HEAD -[1.1.0]: https://github.com/callumbwhyte/friendly-robots/compare/release-1.1.0 -[1.0.0]: https://github.com/callumbwhyte/friendly-robots/compare/release-1.0.0 \ No newline at end of file +[Unreleased]: https://github.com/callumbwhyte/friendly-robots/compare/release-1.2.1...HEAD +[1.2.0]: https://github.com/callumbwhyte/friendly-robots/compare/release-1.1.0...release-1.2.0 +[1.1.0]: https://github.com/callumbwhyte/friendly-robots/compare/release-1.0.0...release-1.1.0 +[1.0.0]: https://github.com/callumbwhyte/friendly-robots/tree/release-1.0.0 \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md index 6dbfeab..4c9d78c 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Callum Whyte +Copyright (c) 2021 Callum Whyte Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index ee667f4..ed1122a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![NuGet release](https://img.shields.io/nuget/v/Our.Umbraco.FriendlyRobots.svg)](https://www.nuget.org/packages/Our.Umbraco.FriendlyRobots/) [![Our Umbraco project page](https://img.shields.io/badge/our-umbraco-orange.svg)](https://our.umbraco.com/projects/website-utilities/friendly-robots/) -Friendly Robots makes adding a dynamic robots.txt file to your Umbraco 8 website easy! +Friendly Robots makes adding a dynamic robots.txt file to your Umbraco website easy! ## Getting started @@ -47,43 +47,7 @@ Multiple values can be supplied for each of the "allow", "disallow", and "sitema ``` -### Advanced configuration - -It is possible to override the default configuration of the package using dependency injection, by registering a new instance of `RobotsConfiguration` within an `IUserComposer` class. - -This is helpful for advanced configuration needs, such as defining unique settings per site in a multi-site Umbraco installation. - -Here's an example: - -``` -using Our.Umbraco.FriendlyRobots.Startup; - -[ComposeAfter(typeof(RobotsComposer))] -public class CustomRobotsComposer : IUserComposer -{ - public void Compose(Composition composition) - { - composition.Register(factory => GetConfiguration(), Lifetime.Request); - } - - private RobotsConfiguration GetConfiguration() - { - var configuration = new RobotsConfiguration - { - UserAgent = "*", - Allow = new[] { "/" }, - Disallow = new[] - { - "/some-path/", - "/some-other-path/" - }, - Sitemaps = new[] { "/sitemap.xml" } - }; - - return configuration; - } -} -``` +The [project wiki](https://github.com/callumbwhyte/friendly-robots/wiki) contains further details about the advanced configuration options available. ## Contribution guidelines @@ -99,6 +63,6 @@ The package logo uses the [Robot](https://thenounproject.com/term/search/2490617 ## License -Copyright © 2019 [Callum Whyte](https://callumwhyte.com/), and other contributors +Copyright © 2021 [Callum Whyte](https://callumwhyte.com/), and other contributors Licensed under the [MIT License](LICENSE.md). \ No newline at end of file diff --git a/src/Our.Umbraco.FriendlyRobots/Our.Umbraco.FriendlyRobots.csproj b/src/Our.Umbraco.FriendlyRobots/Our.Umbraco.FriendlyRobots.csproj index 78a5452..1aba7b2 100644 --- a/src/Our.Umbraco.FriendlyRobots/Our.Umbraco.FriendlyRobots.csproj +++ b/src/Our.Umbraco.FriendlyRobots/Our.Umbraco.FriendlyRobots.csproj @@ -3,9 +3,9 @@ net472 1.0.0.0 $(BUILD_BUILDNUMBER) - A friendly tool for creating dynamic robots.txt files in Umbraco 8 + A friendly tool for creating dynamic robots.txt files in Umbraco Callum Whyte - Copyright © 2020 Callum Whyte, and other contributors + Copyright © 2021 Callum Whyte, and other contributors https://github.com/callumbwhyte/friendly-robots/blob/main/LICENSE.md https://github.com/callumbwhyte/friendly-robots https://raw.githubusercontent.com/callumbwhyte/friendly-robots/main/docs/img/logo.png