Skip to content

Commit cc867c1

Browse files
committed
Change demo iframe src to absolute path
1 parent 13af1aa commit cc867c1

32 files changed

+32
-32
lines changed

docs/components/audio.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Audio is the equivalent of an [`<audio>` HTML element](https://developer.mozilla
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=audio" style="height: 80px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=audio" style="height: 80px"></iframe>
88

99
```python
1010
--8<-- "demo/audio.py"

docs/components/badge.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Badge decorates a UI component and is oftentimes used for unread message count a
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=badge" style="height: 100px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=badge" style="height: 100px"></iframe>
88

99
```python
1010
--8<-- "demo/badge.py"

docs/components/box.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Box is a [content component](../guides/components.md#content-components) which a
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=box" style="height: 160px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=box" style="height: 160px"></iframe>
88

99
```python
1010
--8<-- "demo/box.py"

docs/components/button.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Button is based on the [Angular Material button component](https://material.angu
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=button" style="height: 200px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=button" style="height: 200px"></iframe>
88

99
```python
1010
--8<-- "demo/button.py"

docs/components/chat.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Chat component is a quick way to create a simple chat interface. Chat is part of
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=chat"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=chat"></iframe>
88

99
```python
1010
--8<-- "demo/chat.py"

docs/components/checkbox.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Checkbox is a multi-selection form control and is based on the [Angular Material
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=checkbox" style="height: 100px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=checkbox" style="height: 100px"></iframe>
88

99
```python
1010
--8<-- "demo/checkbox.py"

docs/components/code.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Code is used to render code with syntax highlighting. `code` is a simple wrapper
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=code"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=code"></iframe>
88

99
```python
1010
--8<-- "demo/code.py"

docs/components/divider.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Divider is used to provide visual separation and is based on the [Angular Materi
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=divider" style="height: 100px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=divider" style="height: 100px"></iframe>
88

99
```python
1010
--8<-- "demo/divider.py"

docs/components/embed.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Embed allows you to embed/[iframe](https://developer.mozilla.org/en-US/docs/Web/
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=embed"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=embed"></iframe>
88

99
```python
1010
--8<-- "demo/embed.py"

docs/components/icon.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Icon displays a Material icon/symbol and is based on the [Angular Material icon
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=icon" style="height: 60px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=icon" style="height: 60px"></iframe>
88

99
```python
1010
--8<-- "demo/icon.py"

docs/components/image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Image is the equivalent of an [`<img>` HTML element](https://developer.mozilla.o
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=image" style="height: 200px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=image" style="height: 200px"></iframe>
88

99
```python
1010
--8<-- "demo/image.py"

docs/components/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ For longer text inputs, also see [Textarea](./textarea.md)
66

77
## Examples
88

9-
<iframe class="component-demo" src="/mesop/demo/?demo=input" style="height: 120px"></iframe>
9+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=input" style="height: 120px"></iframe>
1010

1111
```python
1212
--8<-- "demo/input.py"

docs/components/markdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Markdown is used to render markdown text.
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=markdown_demo"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=markdown_demo"></iframe>
88

99
```python
1010
--8<-- "demo/markdown_demo.py"

docs/components/plot.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Plot provides a convenient way to render [Matplotlib](https://matplotlib.org/) f
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=plot"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=plot"></iframe>
88

99
```python
1010
--8<-- "demo/plot.py"

docs/components/progress_bar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Progress Bar is used to indicate something is in progress and is based on the [A
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=progress_bar" style="height: 60px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=progress_bar" style="height: 60px"></iframe>
88

99
```python
1010
--8<-- "demo/progress_bar.py"

docs/components/progress_spinner.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Progress Spinner is used to indicate something is in progress and is based on th
55

66
## Examples
77

8-
<iframe class="component-demo" src="/mesop/demo/?demo=progress_spinner" style="height: 70px"></iframe>
8+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=progress_spinner" style="height: 70px"></iframe>
99

1010
```python
1111
--8<-- "demo/progress_spinner.py"

docs/components/radio.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Radio is a single selection form control based on the [Angular Material radio co
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=radio" style="height: 100px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=radio" style="height: 100px"></iframe>
88

99
```python
1010
--8<-- "demo/radio.py"

docs/components/select.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Select allows the user to choose from a list of values and is based on the [Angu
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=select" style="height: 200px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=select" style="height: 200px"></iframe>
88

99
```python
1010
--8<-- "demo/select.py"

docs/components/sidenav.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Sidenav is a sidebar typically used for navigation and is based on the [Angular
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=sidenav" style="height: 100px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=sidenav" style="height: 100px"></iframe>
88

99
```python
1010
--8<-- "demo/sidenav.py"

docs/components/slide_toggle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Slide Toggle allows the user to toggle on and off and is based on the [Angular M
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=slide_toggle" style="height: 100px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=slide_toggle" style="height: 100px"></iframe>
88

99
```python
1010
--8<-- "demo/slide_toggle.py"

docs/components/slider.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Slider allows the user to select from a range of values and is based on the [Ang
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=slider" style="height: 120px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=slider" style="height: 120px"></iframe>
88

99
```python
1010
--8<-- "demo/slider.py"

docs/components/table.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Table allows the user to render an [Angular Material table component](https://ma
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=table"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=table"></iframe>
88

99
```python
1010
--8<-- "demo/table.py"

docs/components/text.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Text displays text as-is. If you have markdown text, use the [Markdown](./markdo
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=text"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=text"></iframe>
88

99
```python
1010
--8<-- "demo/text.py"

docs/components/text_to_image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Text To Image component is a quick and simple way of getting started with Mesop.
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=text_to_image"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=text_to_image"></iframe>
88

99
```python
1010
--8<-- "demo/text_to_image.py"

docs/components/text_to_text.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Text to text component allows you to take in user inputted text and return a tra
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=text_to_text"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=text_to_text"></iframe>
88

99
```python
1010
--8<-- "demo/text_to_text.py"

docs/components/textarea.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is similar to [Input](./input.md), but Textarea is better suited for long t
66

77
## Examples
88

9-
<iframe class="component-demo" src="/mesop/demo/?demo=textarea" style="height: 200px"></iframe>
9+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=textarea" style="height: 200px"></iframe>
1010

1111
```python
1212
--8<-- "demo/textarea.py"

docs/components/tooltip.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tooltip is based on the [Angular Material tooltip component](https://material.an
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=tooltip" style="height: 100px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=tooltip" style="height: 100px"></iframe>
88

99
```python
1010
--8<-- "demo/tooltip.py"

docs/components/uploader.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matches the look of Angular Material Components.
55

66
## Examples
77

8-
<iframe class="component-demo" src="/mesop/demo/?demo=uploader" style="height: 200px"></iframe>
8+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=uploader" style="height: 200px"></iframe>
99

1010
```python
1111
--8<-- "demo/uploader.py"

docs/components/video.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Video is the equivalent of an [`<video>` HTML element](https://developer.mozilla
44

55
## Examples
66

7-
<iframe class="component-demo" src="/mesop/demo/?demo=video" style="height: 300px"></iframe>
7+
<iframe class="component-demo" src="https://google.github.io/mesop/demo/?demo=video" style="height: 300px"></iframe>
88

99
```python
1010
--8<-- "demo/video.py"

docs/mesop/demo.md docs/demo.md

File renamed without changes.

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Mesop is a Python-based UI framework that allows you to rapidly build web apps l
5353

5454
<h2 style="margin: 0.5rem"> See what you can build in less than 10 lines of code... </h2>
5555

56-
<iframe class="immersive-demo" src="/mesop/demo/"></iframe>
56+
<iframe class="immersive-demo" src="https://google.github.io/mesop/demo/"></iframe>
5757

58-
Check out how the above [demo gallery](./mesop/demo.md) was [built in pure Mesop](https://github.com/google/mesop/blob/main/demo/main.py)!
58+
Check out how the above [demo gallery](./demo.md) was [built in pure Mesop](https://github.com/google/mesop/blob/main/demo/main.py)!
5959

6060
## Try it
6161

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ nav:
5151
- Advanced:
5252
- Embed: components/embed.md
5353
- Plot: components/plot.md
54-
- Demo Gallery 🔗: mesop/demo.md
54+
- Demo Gallery 🔗: demo.md
5555
- Blog:
5656
- blog/index.md
5757
- Internal:

0 commit comments

Comments
 (0)