From 4218dc3978a4597b3f3eeca81f01a7a1052063d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 19 May 2023 22:23:51 +0200 Subject: [PATCH] docs: formatting --- exampleSite/content/basics/migration/_index.en.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md index 16f93ad280..ce70764c41 100644 --- a/exampleSite/content/basics/migration/_index.en.md +++ b/exampleSite/content/basics/migration/_index.en.md @@ -425,15 +425,15 @@ This document shows you what's new in the latest release. For a detailed list of In this case, you must apply one of two options: - 1. Copy the old implementation files `theme/hugo-theme-relearn/layouts/shortcode/ref.html` and `theme/hugo-theme-relearn/layouts/shortcode/relref.html` to your own projects `layouts/shortcode/ref.html` and `layouts/shortcode/relref.html` respectively. **This is not recommended** as your project will still rely on non-standard behavior afterwards. + 1. Start up a text editor with regular expression support for search and replace. Apply the following conversions in the given order on all `*.md` files. **This is the recommended choice**. - 2. Start up a text editor with regular expression support for search and replace. Apply the following conversions in the given order on all `*.md` files. **This is the recommended choice**. + | Type | Search | Replace by | + | ------------- | ---------------------------- | ---------- | + | Branch bundle | `(ref\s+"[^"]*)/_index\.md"` | `$1"` | + | Leaf bundle | `(ref\s+"[^"]*)/index\.md"` | `$1"` | + | Page | `(ref\s+"[^"]*)\.md"` | `$1"` | - | Type | Search | Replace by | - | ------------- | ---------------------------- | ---------- | - | Branch bundle | `(ref\s+"[^"]*)/_index\.md"` | `$1"` | - | Leaf bundle | `(ref\s+"[^"]*)/index\.md"` | `$1"` | - | Page | `(ref\s+"[^"]*)\.md"` | `$1"` | + 2. Copy the old implementation files `theme/hugo-theme-relearn/layouts/shortcode/ref.html` and `theme/hugo-theme-relearn/layouts/shortcode/relref.html` to your own projects `layouts/shortcode/ref.html` and `layouts/shortcode/relref.html` respectively. **This is not recommended** as your project will still rely on non-standard behavior afterwards. ---