Skip to content

Commit 4218dc3

Browse files
committed
docs: formatting
1 parent 3aaf76a commit 4218dc3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

exampleSite/content/basics/migration/_index.en.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,15 +425,15 @@ This document shows you what's new in the latest release. For a detailed list of
425425

426426
In this case, you must apply one of two options:
427427

428-
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.
428+
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**.
429429

430-
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**.
430+
| Type | Search | Replace by |
431+
| ------------- | ---------------------------- | ---------- |
432+
| Branch bundle | `(ref\s+"[^"]*)/_index\.md"` | `$1"` |
433+
| Leaf bundle | `(ref\s+"[^"]*)/index\.md"` | `$1"` |
434+
| Page | `(ref\s+"[^"]*)\.md"` | `$1"` |
431435

432-
| Type | Search | Replace by |
433-
| ------------- | ---------------------------- | ---------- |
434-
| Branch bundle | `(ref\s+"[^"]*)/_index\.md"` | `$1"` |
435-
| Leaf bundle | `(ref\s+"[^"]*)/index\.md"` | `$1"` |
436-
| Page | `(ref\s+"[^"]*)\.md"` | `$1"` |
436+
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.
437437

438438
---
439439

0 commit comments

Comments
 (0)