-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs updates & Docs CI concurrency fix (#249)
- Minor improvements to docs clarity. - Prevent concurrent docs publishing runs from stomping on each other.
- Loading branch information
1 parent
8531c04
commit 50c26e4
Showing
17 changed files
with
277 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ jobs: | |
git config user.email [email protected] | ||
cd docs | ||
mike deploy --push develop | ||
concurrency: | ||
group: publish-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ jobs: | |
git config user.email [email protected] | ||
cd docs | ||
mike deploy --push --update-aliases ${{ github.event.release.name }} latest | ||
concurrency: | ||
group: publish-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
docs/overrides/home-code-examples/create-user-interfaces.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
from reactpy import component, html | ||
|
||
|
||
def thumbnail(video): | ||
return None | ||
def thumbnail(*_, **__): ... | ||
|
||
|
||
def like_button(video): | ||
return None | ||
def like_button(*_, **__): ... | ||
|
||
|
||
@component | ||
def video(video): | ||
def video(data): | ||
return html.div( | ||
thumbnail(video), | ||
thumbnail(data), | ||
html.a( | ||
{"href": video.url}, | ||
html.h3(video.title), | ||
html.p(video.description), | ||
{"href": data.url}, | ||
html.h3(data.title), | ||
html.p(data.description), | ||
), | ||
like_button(video), | ||
like_button(data), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.