Update doc references for RTD
diff --git a/docs/changelog.md b/docs/changelog.md
index 1f7b10b0b3ea..fcae13ed251e 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -24,13 +24,13 @@ _Release date: May 18, 2020_
 
 - ↕️ Ability to set the height of an `st.text_area` with the `height` argument
   (expressed in pixels). See
-  [docs](https://docs.streamlit.io/api.html#streamlit.text_area) for more.
+  [docs](https://docs.streamlit.io/en/latest/api.html#streamlit.text_area) for more.
 - 🔡 Ability to set the maximimum number of characters allowed in `st.text_area`
   or `st.text_input`. Check out the `max_chars` argument in the
-  [docs](https://docs.streamlit.io/api.html#streamlit.text_area).
+  [docs](https://docs.streamlit.io/en/latest/api.html#streamlit.text_area).
 - 🗺️ Better DeckGL support for the [H3](https://h3geo.org/) geospatial indexing
   system. So now you can use things like `H3HexagonLayer` in
-  [`st.pydeck_chart`](https://docs.streamlit.io/api.html#streamlit.pydeck_chart).
+  [`st.pydeck_chart`](https://docs.streamlit.io/en/latest/api.html#streamlit.pydeck_chart).
 - 📦 Improved `@st.cache` support for PyTorch TensorBase and Model.
 
 ## Version 0.59.0
@@ -40,10 +40,10 @@ _Release date: May 05, 2020_
 **Highlights:**
 
 - 🎨 New color-picker widget! Use it with
-  [`st.beta_color_picker()`](https://docs.streamlit.io/api.html#streamlit.beta_color_picker)
+  [`st.beta_color_picker()`](https://docs.streamlit.io/en/latest/api.html#streamlit.beta_color_picker)
 - 🧪 Introducing `st.beta_*` and `st.experimental_*` function prefixes, for faster
   Streamlit feature releases. See
-  [docs](https://docs.streamlit.io/pre_release_features.html) for more info.
+  [docs](https://docs.streamlit.io/en/latest/pre_release_features.html) for more info.
 - 📦 Improved `@st.cache` support for SQL Alchemy objects, CompiledFFI, PyTorch
   Tensors, and `builtins.mappingproxy`.
 
@@ -67,7 +67,7 @@ _Release date: March 26, 2020_
 
 - ⏲️ Ability to set expiration options for `@st.cache`'ed functions by setting
   the `max_entries` and `ttl` arguments. See
-  [docs](https://docs.streamlit.io/api.html#streamlit.cache).
+  [docs](https://docs.streamlit.io/en/latest/api.html#streamlit.cache).
 - 🆙 Improved the machinery behind `st.file_uploader`, so it's much more
   performant now! Also increased the default upload limit to 200MB
   (configurable via `server.max_upload_size`).
@@ -132,11 +132,11 @@ _Release date: January 14, 2020_
 
 - 🗺️ Support for all DeckGL features! Just use
   [Pydeck](https://deckgl.readthedocs.io/en/latest/) instead of
-  [`st.deck_gl_chart`](https://docs.streamlit.io/api.html#streamlit.pydeck_chart).
+  [`st.deck_gl_chart`](https://docs.streamlit.io/en/latest/api.html#streamlit.pydeck_chart).
   To do that, simply pass a PyDeck object to
-  [`st.pydeck_chart`](https://docs.streamlit.io/api.html#streamlit.pydeck_chart),
-  [`st.write`](https://docs.streamlit.io/api.html#streamlit.write),
-  or [magic](https://docs.streamlit.io/api.html#magic).
+  [`st.pydeck_chart`](https://docs.streamlit.io/en/latest/api.html#streamlit.pydeck_chart),
+  [`st.write`](https://docs.streamlit.io/en/latest/api.html#streamlit.write),
+  or [magic](https://docs.streamlit.io/en/latest/api.html#magic).
 
   _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
@@ -174,7 +174,7 @@ _Release date: December 20, 2019_
 **Highlights:**
 
 - 📤 Preview release of the file uploader widget. To try it out just call
-  [`st.file_uploader`](https://docs.streamlit.io/api.html#streamlit.file_uploader)!
+  [`st.file_uploader`](https://docs.streamlit.io/en/latest/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
@@ -190,7 +190,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://docs.streamlit.io/api.html#streamlit.pyplot)
+  [`st.pyplot(clear_figure=False)`](https://docs.streamlit.io/en/latest/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!
@@ -302,7 +302,7 @@ _Release date: September 19, 2019_
 **Highlights:**
 
 - ✨ Magic commands! Use `st.write` without typing `st.write`. See
-  https://docs.streamlit.io/api.html#magic-commands
+  https://docs.streamlit.io/en/latest/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/tutorial/create_a_data_explorer_app.md b/docs/tutorial/create_a_data_explorer_app.md
index 85239ce20ab2..c8bdfe03b406 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://docs.streamlit.io/#install-streamlit) and
+[installed Streamlit](https://docs.streamlit.io/en/latest/#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/lib/streamlit/DeltaGenerator.py b/lib/streamlit/DeltaGenerator.py
index b06d0caddc1a..1caa62935a34 100644
--- a/lib/streamlit/DeltaGenerator.py
+++ b/lib/streamlit/DeltaGenerator.py
@@ -2151,7 +2151,7 @@ def beta_color_picker(self, element, label, value=None, key=None):
         """Display a color picker widget.
 
         Note: This is a beta feature. See
-        https://docs.streamlit.io/pre_release_features.html for more
+        https://docs.streamlit.io/en/latest/pre_release_features.html for more
         information.
 
         Parameters
@@ -2726,7 +2726,7 @@ def map(self, element, data=None, zoom=None, use_container_width=True):
 
         To get a token for yourself, create an account at
         https://mapbox.com. It's free! (for moderate usage levels) See
-        https://docs.streamlit.io/cli.html#view-all-config-options for more
+        https://docs.streamlit.io/en/latest/cli.html#view-all-config-options for more
         info on how to set config options.
 
         Parameters
@@ -2774,7 +2774,7 @@ def deck_gl_chart(self, element, spec=None, use_container_width=False, **kwargs)
 
         To get a token for yourself, create an account at
         https://mapbox.com. It's free! (for moderate usage levels) See
-        https://docs.streamlit.io/cli.html#view-all-config-options for more
+        https://docs.streamlit.io/en/latest/cli.html#view-all-config-options for more
         info on how to set config options.
 
         Parameters
@@ -2898,7 +2898,7 @@ def pydeck_chart(self, element, pydeck_obj=None, use_container_width=False):
 
         To get a token for yourself, create an account at
         https://mapbox.com. It's free! (for moderate usage levels) See
-        https://docs.streamlit.io/cli.html#view-all-config-options for more
+        https://docs.streamlit.io/en/latest/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 abe2e084c819..1fdfec1197a2 100644
--- a/lib/streamlit/__init__.py
+++ b/lib/streamlit/__init__.py
@@ -420,7 +420,7 @@ def experimental_show(*args):
         2. It returns None, so it's "slot" in the app cannot be reused.
 
     Note: This is an experimental feature. See
-    https://docs.streamlit.io/pre_release_features.html for more information.
+    https://docs.streamlit.io/en/latest/pre_release_features.html for more information.
 
     Parameters
     ----------
diff --git a/lib/streamlit/caching.py b/lib/streamlit/caching.py
index 494fd556254f..f4d56579665a 100644
--- a/lib/streamlit/caching.py
+++ b/lib/streamlit/caching.py
@@ -848,7 +848,7 @@ def _get_message(self, orig_exc):
 doing so, just annotate the function with `@st.cache(allow_output_mutation=True)`.
 
 For more information and detailed solutions check out [our documentation.]
-(https://docs.streamlit.io/advanced_caching.html)
+(https://docs.streamlit.io/en/latest/advanced_caching.html)
             """
             % {"func_name": orig_exc.cached_func_name}
         ).strip("\n")
diff --git a/lib/streamlit/hello/hello.py b/lib/streamlit/hello/hello.py
index 56c861ae7de2..1887d66d3ec4 100644
--- a/lib/streamlit/hello/hello.py
+++ b/lib/streamlit/hello/hello.py
@@ -55,7 +55,7 @@
                 demos.mapping_demo,
                 """
 This demo shows how to use
-[`st.deck_gl_chart`](https://docs.streamlit.io/api.html#streamlit.deck_gl_chart)
+[`st.deck_gl_chart`](https://docs.streamlit.io/en/latest/api.html#streamlit.deck_gl_chart)
 to display geospatial data.
 """,
             ),
diff --git a/lib/tests/streamlit/caching_test.py b/lib/tests/streamlit/caching_test.py
index 98ffce9bd43d..a7f77492bbe9 100644
--- a/lib/tests/streamlit/caching_test.py
+++ b/lib/tests/streamlit/caching_test.py
@@ -458,7 +458,7 @@ def mutation_warning_func():
 doing so, just annotate the function with `@st.cache(allow_output_mutation=True)`.
 
 For more information and detailed solutions check out [our
-documentation.](https://docs.streamlit.io/advanced_caching.html)
+documentation.](https://docs.streamlit.io/en/latest/advanced_caching.html)
             """
             ),
         )
diff --git a/lib/tests/streamlit/write_test.py b/lib/tests/streamlit/write_test.py
index f7c9acccb567..85af335d8bed 100644
--- a/lib/tests/streamlit/write_test.py
+++ b/lib/tests/streamlit/write_test.py
@@ -30,7 +30,7 @@
 class StreamlitWriteTest(unittest.TestCase):
     """Test st.write.
 
-    Unit tests for https://docs.streamlit.io/api/text.html#streamlit.write
+    Unit tests for https://docs.streamlit.io/en/latest/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

Fixes #1482  
