From 37bf68b428850ee26ed7c3be6c26236dd95a95f1 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 29 Apr 2019 16:05:39 -0500 Subject: [PATCH] docs: opt-in to new version switcher - Bumps v2 docs TOC under a new parent, "v2". - Adds `extra.current_version` config, with value `v2`. - Adds `extra.versions` config --- mkdocs.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index c39ef09c..a063c0c6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,16 +1,22 @@ docs_dir: docs/book site_dir: docs/html +extra: + current_version: v2 + versions: + - v2 + - v1 pages: - Home: index.md - - Overview: v2/overview.md - - Installation: v2/install.md - - Usage: v2/usage.md - - Reference: - - Factories: v2/factories.md - - "Custom Responses": v2/custom-responses.md - - Serialization: v2/serialization.md - - API: v2/api.md - - Migration: v2/migration.md + - v2: + - Overview: v2/overview.md + - Installation: v2/install.md + - Usage: v2/usage.md + - Reference: + - Factories: v2/factories.md + - "Custom Responses": v2/custom-responses.md + - Serialization: v2/serialization.md + - API: v2/api.md + - Migration: v2/migration.md - v1: - Overview: v1/overview.md - Installation: v1/install.md