-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make sure custom markdown renderer is always used, remove extra …
…files
- Loading branch information
1 parent
9200918
commit 99799ae
Showing
6 changed files
with
1 addition
and
43 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
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,37 +1,9 @@ | ||
from pathlib import Path | ||
|
||
import solara | ||
from solara.autorouting import generate_routes_directory | ||
from solara.website.components.markdown import MarkdownWithMetadata | ||
|
||
title = "Advanced" | ||
HERE = Path(__file__) | ||
# if we didn't put the content in the subdirectory, but pointed to the current file | ||
# we would include the current file recursively, causing an infinite loop | ||
routes = generate_routes_directory(HERE.parent / "content", MarkdownWithMetadata) | ||
|
||
|
||
@solara.component | ||
def Page(route_external=None): | ||
MarkdownWithMetadata(Path(HERE.parent / "content" / "10-howto" / "00-overview.md").read_text()) | ||
|
||
with solara.Row(justify="center", style={"flex-wrap": "wrap", "align-items": "start"}): | ||
for child in route_external.children: | ||
if child.path == "/": | ||
continue | ||
|
||
card_title = solara.Link("/documentation/advanced/" + child.path, children=[child.label]) | ||
|
||
with solara.Card(title=card_title, style={"min-width": "300px"}): | ||
with solara.v.List(): | ||
with solara.v.ListItemGroup(): | ||
for grandchild in child.children: | ||
if grandchild.path == "/": | ||
continue | ||
with solara.Link( | ||
"/documentation/advanced/" + child.path + "/" + grandchild.path | ||
if child.path != "/" | ||
else "/documentation/advanced/" + grandchild.path | ||
): | ||
with solara.v.ListItem(): | ||
solara.v.ListItemTitle(children=[grandchild.label]) |
Empty file.
7 changes: 0 additions & 7 deletions
7
solara/website/pages/documentation/getting_started/__init__.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,16 +1,9 @@ | ||
from pathlib import Path | ||
|
||
import solara | ||
from solara.autorouting import generate_routes_directory | ||
from solara.website.components.markdown import MarkdownWithMetadata | ||
|
||
title = "Getting Started" | ||
HERE = Path(__file__) | ||
# if we didn't put the content in the subdirectory, but pointed to the current file | ||
# we would include the current file recursively, causing an infinite loop | ||
routes = generate_routes_directory(HERE.parent / "content", MarkdownWithMetadata) | ||
|
||
|
||
@solara.component | ||
def Page(route_external=None): | ||
MarkdownWithMetadata(Path(HERE.parent / "content" / "01-introduction.md").read_text()) |
7 changes: 0 additions & 7 deletions
7
...ra/website/pages/documentation/getting_started/content/08-lab/00-what-is-lab.md
This file was deleted.
Oops, something went wrong.
Empty file.