diff --git a/docs/book/installation.md b/docs/book/v1/installation.md similarity index 100% rename from docs/book/installation.md rename to docs/book/v1/installation.md diff --git a/docs/book/intro.md b/docs/book/v1/intro.md similarity index 100% rename from docs/book/intro.md rename to docs/book/v1/intro.md diff --git a/docs/book/middleware.md b/docs/book/v1/middleware.md similarity index 100% rename from docs/book/middleware.md rename to docs/book/v1/middleware.md diff --git a/docs/book/persistence.md b/docs/book/v1/persistence.md similarity index 100% rename from docs/book/persistence.md rename to docs/book/v1/persistence.md diff --git a/docs/book/session.md b/docs/book/v1/session.md similarity index 100% rename from docs/book/session.md rename to docs/book/v1/session.md diff --git a/mkdocs.yml b/mkdocs.yml index 57bdf53..ae95ced 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,12 +2,13 @@ docs_dir: docs/book site_dir: docs/html nav: - Home: index.md - - Introduction: intro.md - - Installation: installation.md - - Usage: - - "Session Containers": session.md - - "Session Persistence": persistence.md - - "Session Middleware": middleware.md + - v1: + - Introduction: v1/intro.md + - Installation: v1/installation.md + - Usage: + - "Session Containers": v1/session.md + - "Session Persistence": v1/persistence.md + - "Session Middleware": v1/middleware.md site_name: mezzio-session site_description: 'Sessions and session middleware for PSR-7 applications.' repo_url: 'https://github.com/mezzio/mezzio-session' @@ -15,3 +16,14 @@ extra: project: Mezzio installation: config_provider_class: 'Mezzio\Session\ConfigProvider' + current_version: v1 + versions: + - v1 +plugins: + - redirects: + - redirect_maps: + - intro.md: v1/intro.md + - installation.md: v1/installation.md + - session.md: v1/session.md + - persistence.md: v1/persistence.md + - middleware.md: v1/middleware.md