From 603b9cd84cae9103a16ace96be4cbc28a97f2e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= <165856+hramos@users.noreply.github.com> Date: Thu, 26 Oct 2017 16:14:18 -0700 Subject: [PATCH] Prefix, not append (#191) --- docs/guides-versioning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides-versioning.md b/docs/guides-versioning.md index c7f922f77f..7efec4c327 100644 --- a/docs/guides-versioning.md +++ b/docs/guides-versioning.md @@ -40,7 +40,7 @@ Users can create version numbers in whatever format they wish, and a new version Versioned documents are placed into `website/versioned_docs/version-${version}`, where `${version}` is the version number you supplied the `version` script. -The markdown header for each versioned doc is altered by appending `"version-${version}-"` to the id and by adding an `original_id` field. +The markdown header for each versioned doc is altered by renaming the id frontmatter field to `original_id`, then using `"version-${version}-${original_id}"` as the value for the actual `id` field. Versioned sidebars are copied into `website/versioned_sidebars` and are named as `version-${version}-sidebar.json`.