Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
callumbwhyte committed Jun 24, 2021
1 parent 1196131 commit f8fd9ba
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 46 deletions.
16 changes: 13 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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
[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
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
42 changes: 3 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -47,43 +47,7 @@ Multiple values can be supplied for each of the "allow", "disallow", and "sitema
<add key="Umbraco.Robots.Disallow" value="/some-path/,/some-other-path/" />
```

### 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

Expand All @@ -99,6 +63,6 @@ The package logo uses the [Robot](https://thenounproject.com/term/search/2490617

## License

Copyright &copy; 2019 [Callum Whyte](https://callumwhyte.com/), and other contributors
Copyright &copy; 2021 [Callum Whyte](https://callumwhyte.com/), and other contributors

Licensed under the [MIT License](LICENSE.md).
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<TargetFramework>net472</TargetFramework>
<Version Condition="'$(BUILD_BUILDNUMBER)' == ''">1.0.0.0</Version>
<Version Condition="'$(BUILD_BUILDNUMBER)' != ''">$(BUILD_BUILDNUMBER)</Version>
<Description>A friendly tool for creating dynamic robots.txt files in Umbraco 8</Description>
<Description>A friendly tool for creating dynamic robots.txt files in Umbraco</Description>
<Authors>Callum Whyte</Authors>
<Copyright>Copyright © 2020 Callum Whyte, and other contributors</Copyright>
<Copyright>Copyright © 2021 Callum Whyte, and other contributors</Copyright>
<PackageLicenseUrl>https://github.com/callumbwhyte/friendly-robots/blob/main/LICENSE.md</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/callumbwhyte/friendly-robots</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/callumbwhyte/friendly-robots/main/docs/img/logo.png</PackageIconUrl>
Expand Down

0 comments on commit f8fd9ba

Please sign in to comment.