Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace legacy app URLs in docs with custom subdomains #4959

Merged
merged 2 commits into from Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/streamlit/elements/bokeh_chart.py
Expand Up @@ -71,7 +71,7 @@ def bokeh_chart(
>>> st.bokeh_chart(p, use_container_width=True)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.bokeh_chart.py
https://doc-bokeh-chart.streamlitapp.com/
height: 700px

"""
Expand Down
4 changes: 2 additions & 2 deletions lib/streamlit/elements/button.py
Expand Up @@ -97,7 +97,7 @@ def button(
... st.write('Goodbye')
.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.button.py
https://doc-buton.streamlitapp.com/
height: 220px
"""
Expand Down Expand Up @@ -219,7 +219,7 @@ def download_button(
... )
.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.download_button.py
https://doc-download-buton.streamlitapp.com/
height: 335px
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/checkbox.py
Expand Up @@ -84,7 +84,7 @@ def checkbox(
... st.write('Great!')

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.checkbox.py
https://doc-checkbox.streamlitapp.com/
height: 220px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/color_picker.py
Expand Up @@ -83,7 +83,7 @@ def color_picker(
>>> st.write('The current color is', color)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.color_picker.py
https://doc-color-picker.streamlitapp.com/
height: 335px

"""
Expand Down
16 changes: 8 additions & 8 deletions lib/streamlit/elements/dataframe_selector.py
Expand Up @@ -72,7 +72,7 @@ def dataframe(
>>> st.dataframe(df) # Same as st.write(df)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/data.dataframe.py
https://doc-dataframe.streamlitapp.com/
height: 410px

>>> st.dataframe(df, 200, 100)
Expand All @@ -87,7 +87,7 @@ def dataframe(
>>> st.dataframe(df.style.highlight_max(axis=0))

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/data.dataframe1.py
https://doc-dataframe1.streamlitapp.com/
height: 410px

"""
Expand Down Expand Up @@ -120,7 +120,7 @@ def table(self, data: "Data" = None) -> "DeltaGenerator":
>>> st.table(df)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/data.table.py
https://doc-table.streamlitapp.com/
height: 480px

"""
Expand Down Expand Up @@ -174,7 +174,7 @@ def line_chart(
>>> st.line_chart(chart_data)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.line_chart.py
https://doc-line-chart.streamlitapp.com/
height: 400px

"""
Expand Down Expand Up @@ -228,7 +228,7 @@ def area_chart(
>>> st.area_chart(chart_data)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.area_chart.py
https://doc-area-chart.streamlitapp.com/
height: 400px

"""
Expand Down Expand Up @@ -282,7 +282,7 @@ def bar_chart(
>>> st.bar_chart(chart_data)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.bar_chart.py
https://doc-bar-chart.streamlitapp.com/
height: 400px

"""
Expand Down Expand Up @@ -328,7 +328,7 @@ def altair_chart(
https://altair-viz.github.io/gallery/.

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.vega_lite_chart.py
https://doc-vega-lite-chart.streamlitapp.com/
height: 300px

"""
Expand Down Expand Up @@ -390,7 +390,7 @@ def vega_lite_chart(
... })

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.vega_lite_chart.py
https://doc-vega-lite-chart.streamlitapp.com/
height: 300px

Examples of Vega-Lite usage without Streamlit can be found at
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/file_uploader.py
Expand Up @@ -230,7 +230,7 @@ def file_uploader(
... st.write(bytes_data)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.file_uploader.py
https://doc-file-uploader.streamlitapp.com/
height: 375px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/graphviz_chart.py
Expand Up @@ -85,7 +85,7 @@ def graphviz_chart(self, figure_or_dot, use_container_width=False):
''')

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.graphviz_chart.py
https://doc-graphviz-chart.streamlitapp.com/
height: 600px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/image.py
Expand Up @@ -120,7 +120,7 @@ def image(
>>> st.image(image, caption='Sunrise by the mountains')

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.image.py
https://doc-image.streamlitapp.com/
height: 710px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/json.py
Expand Up @@ -59,7 +59,7 @@ def json(
... })

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/data.json.py
https://doc-json.streamlitapp.com/
height: 385px

"""
Expand Down
18 changes: 9 additions & 9 deletions lib/streamlit/elements/layouts.py
Expand Up @@ -50,7 +50,7 @@ def container(self) -> "DeltaGenerator":
>>> st.write("This is outside the container")

.. output ::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/layout.container1.py
https://doc-container1.streamlitapp.com/
height: 520px

Inserting elements out of order:
Expand All @@ -63,7 +63,7 @@ def container(self) -> "DeltaGenerator":
>>> container.write("This is inside too")

.. output ::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/layout.container2.py
https://doc-container2.streamlitapp.com/
height: 480px
"""
return self.dg._block()
Expand Down Expand Up @@ -129,7 +129,7 @@ def columns(
... st.image("https://static.streamlit.io/examples/owl.jpg")

.. output ::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/layout.columns1.py
https://doc-columns1.streamlitapp.com/
height: 620px

Or you can just call methods directly in the returned objects:
Expand All @@ -144,7 +144,7 @@ def columns(
>>> col2.write(data)

.. output ::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/layout.columns2.py
https://doc-columns2.streamlitapp.com/
height: 550px

"""
Expand Down Expand Up @@ -239,8 +239,8 @@ def tabs(self, tabs: Sequence[str]) -> Sequence["DeltaGenerator"]:
... st.image("https://static.streamlit.io/examples/owl.jpg", width=200)

.. output ::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/layout.tabs1.py
height: 700px
https://doc-tabs1.streamlitapp.com/
height: 620px

Or you can just call methods directly in the returned objects:

Expand All @@ -255,7 +255,7 @@ def tabs(self, tabs: Sequence[str]) -> Sequence["DeltaGenerator"]:


.. output ::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/layout.tabs2.py
https://doc-tabs2.streamlitapp.com/
height: 700px

"""
Expand Down Expand Up @@ -318,7 +318,7 @@ def expander(self, label: str, expanded: bool = False) -> "DeltaGenerator":
... st.image("https://static.streamlit.io/examples/dice.jpg")

.. output ::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/layout.expander.py
https://doc-expander.streamlitapp.com/
height: 750px

Or you can just call methods directly in the returned objects:
Expand All @@ -334,7 +334,7 @@ def expander(self, label: str, expanded: bool = False) -> "DeltaGenerator":
>>> expander.image("https://static.streamlit.io/examples/dice.jpg")

.. output ::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/layout.expander.py
https://doc-expander.streamlitapp.com/
height: 750px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/map.py
Expand Up @@ -66,7 +66,7 @@ def map(self, data=None, zoom=None, use_container_width=True):
>>> st.map(df)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.map.py
https://doc-map.streamlitapp.com/
height: 650px

"""
Expand Down
4 changes: 2 additions & 2 deletions lib/streamlit/elements/media.py
Expand Up @@ -67,7 +67,7 @@ def audio(
>>> st.audio(audio_bytes, format='audio/ogg')

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.audio.py
https://doc-audio.streamlitapp.com/
height: 465px

"""
Expand Down Expand Up @@ -106,7 +106,7 @@ def video(
>>> st.video(video_bytes)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.video.py
https://doc-video.streamlitapp.com/
height: 700px

.. note::
Expand Down
6 changes: 3 additions & 3 deletions lib/streamlit/elements/metric.py
Expand Up @@ -81,7 +81,7 @@ def metric(
>>> st.metric(label="Temperature", value="70 掳F", delta="1.2 掳F")
.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/metric.example1.py
https://doc-metric-example1.streamlitapp.com/
height: 210px
``st.metric`` looks especially nice in combination with ``st.columns``:
Expand All @@ -92,7 +92,7 @@ def metric(
>>> col3.metric("Humidity", "86%", "4%")
.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/metric.example2.py
https://doc-metric-example2.streamlitapp.com/
height: 210px
The delta indicator color can also be inverted or turned off:
Expand All @@ -104,7 +104,7 @@ def metric(
... delta_color="off")
.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/metric.example3.py
https://doc-metric-example3.streamlitapp.com/
height: 320px
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/multiselect.py
Expand Up @@ -106,7 +106,7 @@ def multiselect(
>>> st.write('You selected:', options)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.multiselect.py
https://doc-multiselect.streamlitapp.com/
height: 420px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/number_input.py
Expand Up @@ -105,7 +105,7 @@ def number_input(
>>> st.write('The current number is ', number)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.number_input.py
https://doc-number-input.streamlitapp.com/
height: 260px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/plotly_chart.py
Expand Up @@ -128,7 +128,7 @@ def plotly_chart(
>>> st.plotly_chart(fig, use_container_width=True)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.plotly_chart.py
https://doc-plotly-chart.streamlitapp.com/
height: 400px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/pyplot.py
Expand Up @@ -63,7 +63,7 @@ def pyplot(self, fig=None, clear_figure=None, **kwargs):
>>> st.pyplot(fig)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/charts.pyplot.py
https://doc-pyplot.streamlitapp.com/
height: 630px

Notes
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/radio.py
Expand Up @@ -102,7 +102,7 @@ def radio(
... st.write("You didn\'t select comedy.")

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.radio.py
https://doc-radio.streamlitapp.com/
height: 260px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/select_slider.py
Expand Up @@ -114,7 +114,7 @@ def select_slider(
>>> st.write('You selected wavelengths between', start_color, 'and', end_color)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.select_slider.py
https://doc-select-slider.streamlitapp.com/
height: 450px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/selectbox.py
Expand Up @@ -91,7 +91,7 @@ def selectbox(
>>> st.write('You selected:', option)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.selectbox.py
https://doc-selectbox.streamlitapp.com/
height: 320px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/slider.py
Expand Up @@ -144,7 +144,7 @@ def slider(
>>> st.write("Start time:", start_time)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.slider.py
https://doc-slider.streamlitapp.com/
height: 300px

"""
Expand Down
2 changes: 1 addition & 1 deletion lib/streamlit/elements/text_widgets.py
Expand Up @@ -100,7 +100,7 @@ def text_input(
>>> st.write('The current movie title is', title)

.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.text_input.py
https://doc-text-input.streamlitapp.com/
height: 260px

"""
Expand Down
4 changes: 2 additions & 2 deletions lib/streamlit/elements/time_widgets.py
Expand Up @@ -211,7 +211,7 @@ def time_input(
>>> st.write('Alarm is set for', t)
.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.time_input.py
https://doc-time-input.streamlitapp.com/
height: 260px
"""
Expand Down Expand Up @@ -362,7 +362,7 @@ def date_input(
>>> st.write('Your birthday is:', d)
.. output::
https://share.streamlit.io/streamlit/docs/main/python/api-examples-source/widget.date_input.py
https://doc-date-input.streamlitapp.com/
height: 260px
"""
Expand Down