From 4ebf9b6bc4834b93f04b8a67c5ce639ae07db6fe Mon Sep 17 00:00:00 2001 From: Carl-Erik Kopseng Date: Thu, 14 Jun 2018 08:25:10 +0200 Subject: [PATCH] Use migration guide include in guide index Avoid landing in the situation where we remember to update one place, but not the other. Ref https://github.com/sinonjs/sinon/pull/1829#issuecomment-396529641 --- Gemfile.lock | 4 ++-- docs/_includes/docs/migration-guides.md | 2 ++ docs/guides/index.md | 8 +------- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ef4d1f742..9cc3770dc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -199,7 +199,7 @@ DEPENDENCIES minima (~> 2.0) RUBY VERSION - ruby 2.4.0p0 + ruby 2.5.1p57 BUNDLED WITH - 1.13.7 + 1.16.1 diff --git a/docs/_includes/docs/migration-guides.md b/docs/_includes/docs/migration-guides.md index d85b145d4..d0003cb5e 100644 --- a/docs/_includes/docs/migration-guides.md +++ b/docs/_includes/docs/migration-guides.md @@ -4,3 +4,5 @@ * Migrating from [v2.x to v3.0](/guides/migrating-to-3.0) * Migrating from [v3.x to v4.0](/guides/migrating-to-4.0) * Migrating from [v4.x to v5.0](/guides/migrating-to-5.0) +* Migrating from [v5.x to v6.0](/guides/migrating-to-6.0) + diff --git a/docs/guides/index.md b/docs/guides/index.md index ac9bbde04..440ed4322 100644 --- a/docs/guides/index.md +++ b/docs/guides/index.md @@ -4,10 +4,4 @@ title: Guides breadcrumb: guides --- -## Migration guides - -* [Migrating to v6.0](./migrating-to-6.0) -* [Migrating to v5.0](./migrating-to-5.0) -* [Migrating to v4.0](./migrating-to-4.0) -* [Migrating to v3.0](./migrating-to-3.0) -* [Migrating to v2.0](./migrating-to-2.0) +{% include docs/migration-guides.md %}