diff --git a/README.md b/README.md index c2195cb26..291d51fca 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Docker-based WordPress Stack -[![Documentation Status](https://readthedocs.org/projects/docker4wordpress/badge/?version=latest)](http://docs.docker4wordpress.org) [![Build Status](https://travis-ci.org/wodby/docker4wordpress.svg?branch=master)](https://travis-ci.org/wodby/docker4wordpress) [![Wodby Slack](http://slack.wodby.com/badge.svg)](http://slack.wodby.com) [![Wodby Twitter](https://img.shields.io/twitter/follow/wodbyhq.svg?style=social&label=Follow)](https://twitter.com/wodbyhq) @@ -9,7 +8,7 @@ Docker4WordPress is a set of docker images optimized for WordPress. Use docker-compose.yml file from this repository to spin up a local environment for WordPress on Linux, macOS and Windows. -Read [**Getting Started**](http://docker4wordpress.readthedocs.io). +Read [**Quick Start**](https://wodby.com/stacks/wordpress/docs/local/quick-start/). ## Stack @@ -53,7 +52,7 @@ Supported WordPress versions: 4 ## Documentation -Full documentation is available at http://docker4wordpress.readthedocs.io. +Full documentation is available at https://wodby.com/stacks/wordpress/docs/local ## Deployment diff --git a/docs/redirect.js b/docs/redirect.js new file mode 100644 index 000000000..1b77597c7 --- /dev/null +++ b/docs/redirect.js @@ -0,0 +1,4 @@ +if (String(window.location).indexOf("readthedocs") !== -1) { + window.alert('The documentation has moved. I will redirect you to the new location.'); + window.location.replace('http://wodby.com/stacks/wordpress/docs/local'); +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 63848a7d3..2fe2ad9c3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,6 +8,8 @@ markdown_extensions: - toc: permalink: True +extra_javascript: ["redirect.js"] + pages: - Getting Started: 'index.md' - Domains: 'domains.md'