Make all doc URLs point to docs.streamlit.io (new domain)
diff --git a/Makefile b/Makefile
index b218c8f2ef0a..1a899a1fb4f1 100644
--- a/Makefile
+++ b/Makefile
@@ -181,30 +181,21 @@ devel-docs: docs
 publish-docs: docs
 	cd docs/_build; \
 		aws s3 sync \
-				--acl public-read html s3://streamlit.io/docs/ \
-				--profile streamlit
-
-  # For now, continue publishing to secret/docs.
-	# TODO: Remove after 2020-01-01
-	cd docs/_build; \
-		aws s3 sync \
-				--acl public-read html s3://streamlit.io/secret/docs/ \
+				--acl public-read html s3://docs.streamlit.io \
 				--profile streamlit
 
 	# The line below uses the distribution ID obtained with
 	# $ aws cloudfront list-distributions | \
 	#     jq '.DistributionList.Items[] | \
 	#     select(.Aliases.Items[0] | \
-	#     contains("www.streamlit.io")) | \
+	#     contains("docs.streamlit.io")) | \
 	#     .Id'
 
 	aws cloudfront create-invalidation \
-		--distribution-id=E5G9JPT7IOJDV \
+		--distribution-id=E16K3UXOWYZ8U7 \
 		--paths \
-			'/docs/*' \
-			'/docs/tutorial/*' \
-			'/secret/docs/*' \
-			'/secret/docs/tutorial/*' \
+			'/*' \
+			'/tutorial/*' \
 		--profile streamlit
 
 .PHONY: protobuf
diff --git a/README.md b/README.md
index d7aa75be6a2b..f2793b8eacb0 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ streamlit run https://raw.githubusercontent.com/streamlit/demo-self-driving/mast
 
 - Our [launch post](https://towardsdatascience.com/coding-ml-tools-like-you-code-ml-models-ddba3357eace)
 - Our lovely [community](https://discuss.streamlit.io/)
-- Streamlit [documentation](https://streamlit.io/docs)
+- Streamlit [documentation](https://docs.streamlit.io/)
 - More [demo projects](https://github.com/streamlit/)
 - If you would like to contribute, see [instructions here](https://github.com/streamlit/streamlit/wiki/Contributing)
 
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html
deleted file mode 100644
index 38f5535fdaea..000000000000
--- a/docs/_templates/layout.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% extends "!layout.html" %} {% block extrahead %}
-<script>
-  if (document.location.pathname.indexOf("/secret") == 0) {
-    document.location = document.location.href.replace("/secret", "");
-  }
-</script>
-{% endblock %}
diff --git a/docs/changelog.md b/docs/changelog.md
index 0f20b8368e1a..d24645e854e6 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -29,7 +29,7 @@ _Release date: December 20, 2019_
 **Highlights:**
 
 - 📤 Preview release of the file uploader widget. To try it out just call
-  [`st.file_uploader`](https://streamlit.io/docs/api.html#streamlit.file_uploader)!
+  [`st.file_uploader`](https://docs.streamlit.io/api.html#streamlit.file_uploader)!
   _Note that as a **preview release** things may change in the near future.
   Looking forward to hearing input from the community before we stabilize the
   API!_
@@ -44,7 +44,7 @@ _Release date: December 20, 2019_
   having to call
   [`pyplot.clf`](https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.clf.html)
   every time. If you want to turn this behavior off, use
-  [`st.pyplot(clear_figure=False)`](https://streamlit.io/docs/api.html#streamlit.pyplot)
+  [`st.pyplot(clear_figure=False)`](https://docs.streamlit.io/api.html#streamlit.pyplot)
 - 📣 `st.cache` no longer checks for input mutations. This is the first change
   of our ongoing effort to simplify the caching system and prepare Streamlit
   for the launch of other caching primitives like Session State!
@@ -156,7 +156,7 @@ _Release date: September 19, 2019_
 **Highlights:**
 
 - ✨ Magic commands! Use `st.write` without typing `st.write`. See
-  https://streamlit.io/docs/api.html#magic-commands
+  https://docs.streamlit.io/api.html#magic-commands
 - 🎛️ New `st.multiselect` widget.
 - 🐍 Fixed numerous install issues so now you can use `pip install streamlit`
   even in Conda! We've therefore deactivated our Conda repo.
diff --git a/docs/index.md b/docs/index.md
index 03f1c14ab8b2..feb287479f57 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -4,7 +4,7 @@
    :maxdepth: 2
    :hidden:
 
-   Home <https://streamlit.io/docs/>
+   Home <https://docs.streamlit.io/>
    main_concepts
    getting_started
 
diff --git a/docs/tutorial/create_a_data_explorer_app.md b/docs/tutorial/create_a_data_explorer_app.md
index 35afcfea84c3..6e6d89d27dfc 100644
--- a/docs/tutorial/create_a_data_explorer_app.md
+++ b/docs/tutorial/create_a_data_explorer_app.md
@@ -1,7 +1,7 @@
 # Tutorial: Create a data explorer app
 
 If you've made it this far, chances are you've
-[installed Streamlit](https://streamlit.io/docs/#install-streamlit) and
+[installed Streamlit](https://docs.streamlit.io/#install-streamlit) and
 run through the basics in our [get started guide](../getting_started.md). If
 not, now is a good time to take a look.
 
diff --git a/frontend/src/components/core/MainMenu/MainMenu.tsx b/frontend/src/components/core/MainMenu/MainMenu.tsx
index 6da84590b057..230609e991f5 100644
--- a/frontend/src/components/core/MainMenu/MainMenu.tsx
+++ b/frontend/src/components/core/MainMenu/MainMenu.tsx
@@ -25,7 +25,7 @@ import {
 import Icon from "components/shared/Icon"
 import "./MainMenu.scss"
 
-const ONLINE_DOCS_URL = "https://streamlit.io/docs"
+const ONLINE_DOCS_URL = "https://docs.streamlit.io"
 const COMMUNITY_URL = "https://discuss.streamlit.io"
 const TEAMS_URL = "https://streamlit.io/forteams"
 const BUG_URL = "https://github.com/streamlit/streamlit/issues/new/choose"
diff --git a/lib/streamlit/DeltaGenerator.py b/lib/streamlit/DeltaGenerator.py
index 8f4fe2ad4d36..07865792ec07 100644
--- a/lib/streamlit/DeltaGenerator.py
+++ b/lib/streamlit/DeltaGenerator.py
@@ -500,12 +500,14 @@ def markdown(self, element, body, unsafe_allow_html=False):
             information can be found at: https://github.github.com/gfm.
 
             This also supports:
+
             * Emoji shortcodes, such as `:+1:`  and `:sunglasses:`.
-            For a list of all supported codes,
-            see https://www.webfx.com/tools/emoji-cheat-sheet/.
+              For a list of all supported codes,
+              see https://www.webfx.com/tools/emoji-cheat-sheet/.
+
             * LaTeX expressions, by just wrapping them in "$" or "$$" (the "$$"
-             must be on their own lines). Supported LaTeX functions are listed
-             at https://katex.org/docs/supported.html.
+              must be on their own lines). Supported LaTeX functions are listed
+              at https://katex.org/docs/supported.html.
 
         unsafe_allow_html : bool
             By default, any HTML tags found in the body will be escaped and
@@ -2401,7 +2403,7 @@ def map(self, element, data, zoom=None):
 
         To get a token for yourself, create an account at
         https://mapbox.com. It's free! (for moderate usage levels) See
-        https://streamlit.io/docs/cli.html#view-all-config-options for more
+        https://docs.streamlit.io/cli.html#view-all-config-options for more
         info on how to set config options.
 
         Parameters
@@ -2449,7 +2451,7 @@ def deck_gl_chart(self, element, spec=None, **kwargs):
 
         To get a token for yourself, create an account at
         https://mapbox.com. It's free! (for moderate usage levels) See
-        https://streamlit.io/docs/cli.html#view-all-config-options for more
+        https://docs.streamlit.io/cli.html#view-all-config-options for more
         info on how to set config options.
 
         Parameters
diff --git a/lib/streamlit/__init__.py b/lib/streamlit/__init__.py
index c4d935dd9594..329b0b3ded69 100644
--- a/lib/streamlit/__init__.py
+++ b/lib/streamlit/__init__.py
@@ -38,7 +38,7 @@
 
     $ streamlit hello
 
-For more detailed info, see https://streamlit.io/docs.
+For more detailed info, see https://docs.streamlit.io.
 """
 
 # IMPORTANT: Prefix with an underscore anything that the user shouldn't see.
diff --git a/lib/streamlit/caching.py b/lib/streamlit/caching.py
index b2af7180cbc9..33d0b5e162cc 100644
--- a/lib/streamlit/caching.py
+++ b/lib/streamlit/caching.py
@@ -203,8 +203,7 @@ def _get_mutated_output_error_message():
         By default, Streamlit’s cache is immutable. You received this warning
         because Streamlit thinks you modified a cached object.
 
-        [Click here to see how to fix this issue.]
-        (https://streamlit.io/docs/advanced_concepts.html#advanced-caching)
+        [Click here to see how to fix this issue.](https://docs.streamlit.io/advanced_concepts.html#advanced-caching)
         """
     ).strip("\n")
 
diff --git a/lib/streamlit/cli.py b/lib/streamlit/cli.py
index 92ed8f6270a7..bce2af943e7a 100644
--- a/lib/streamlit/cli.py
+++ b/lib/streamlit/cli.py
@@ -173,7 +173,7 @@ def main_docs():
     print("Showing help page in browser...")
     from streamlit import util
 
-    util.open_browser("https://streamlit.io/docs")
+    util.open_browser("https://docs.streamlit.io")
 
 
 @main.command("hello")
@@ -212,7 +212,7 @@ def main_run(target, args=None, **kwargs):
     _, extension = os.path.splitext(target)
     if extension[1:] not in ACCEPTED_FILE_EXTENSIONS:
         raise click.BadArgumentUsage(
-            "Streamlit requires raw Python (.py) files, not %s.\nFor more information, please see https://streamlit.io/docs"
+            "Streamlit requires raw Python (.py) files, not %s.\nFor more information, please see https://docs.streamlit.io"
             % extension
         )
 
diff --git a/lib/streamlit/hello/demos.py b/lib/streamlit/hello/demos.py
index 955733063f20..fdc9516d7640 100644
--- a/lib/streamlit/hello/demos.py
+++ b/lib/streamlit/hello/demos.py
@@ -34,7 +34,7 @@ def intro():
         ### Want to learn more?
 
         - Check out [streamlit.io](https://streamlit.io)
-        - Jump into our [documentation](https://streamlit.io/docs)
+        - Jump into our [documentation](https://docs.streamlit.io)
         - Ask a question in our [community
           forums](https://discuss.streamlit.io)
 
diff --git a/lib/streamlit/hello/hello.py b/lib/streamlit/hello/hello.py
index cb2b79286612..ffa53f656b2b 100644
--- a/lib/streamlit/hello/hello.py
+++ b/lib/streamlit/hello/hello.py
@@ -58,7 +58,7 @@
                 demos.mapping_demo,
                 """
 This demo shows how to use
-[`st.deck_gl_chart`](https://streamlit.io/docs/api.html#streamlit.deck_gl_chart)
+[`st.deck_gl_chart`](https://docs.streamlit.io/api.html#streamlit.deck_gl_chart)
 to display geospatial data.
 """,
             ),
diff --git a/lib/streamlit/util.py b/lib/streamlit/util.py
index 9a71b58fd876..fcd0e7117537 100644
--- a/lib/streamlit/util.py
+++ b/lib/streamlit/util.py
@@ -29,7 +29,7 @@
 from streamlit import env_util
 
 # URL of Streamlit's help page.
-HELP_DOC = "https://streamlit.io/docs/"
+HELP_DOC = "https://docs.streamlit.io/"
 
 # Make functools.wraps() in Python 2 set the __wrapped__ attribute, as
 # is done in Python 3. This is required in st.cache.
diff --git a/lib/tests/streamlit/write_test.py b/lib/tests/streamlit/write_test.py
index 0a1411b52a4d..300571e16954 100644
--- a/lib/tests/streamlit/write_test.py
+++ b/lib/tests/streamlit/write_test.py
@@ -31,7 +31,7 @@
 class StreamlitWriteTest(unittest.TestCase):
     """Test st.write.
 
-    Unit tests for https://streamlit.io/docs/api/text.html#streamlit.write
+    Unit tests for https://docs.streamlit.io/api/text.html#streamlit.write
 
     Because we're going to test st.markdown, st.pyplot, st.altair_chart
     later on, we don't have to test it in st.write In st.write, all we're
