Spaces:
Sleeping
Sleeping
Commit
·
5197624
1
Parent(s):
3dfc3fe
fix hrefs
Browse files
main.py
CHANGED
|
@@ -34,27 +34,50 @@ def main():
|
|
| 34 |
Nav(
|
| 35 |
H3("Table of Contents"),
|
| 36 |
Div(
|
| 37 |
-
A("TxT360", href="#
|
| 38 |
hx_get="/intro",
|
| 39 |
hx_target="#inner-text",
|
| 40 |
-
hx_swap="innerHTML",
|
| 41 |
),
|
| 42 |
Div(
|
| 43 |
Ul(
|
| 44 |
-
Li(
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
),
|
| 49 |
-
hx_get="/intro",
|
| 50 |
-
hx_target="#inner-text",
|
| 51 |
-
hx_swap="innerHTML",
|
| 52 |
),
|
| 53 |
Div(
|
| 54 |
A("Web Data", href="#inner-text"),
|
| 55 |
hx_get="/web_data",
|
| 56 |
hx_target="#inner-text",
|
| 57 |
-
hx_swap="innerHTML",
|
| 58 |
),
|
| 59 |
Div(A("Curated Sources")),
|
| 60 |
Div(A("Common Steps")),
|
|
@@ -62,6 +85,7 @@ def main():
|
|
| 62 |
role="navigation",
|
| 63 |
cls="l-text figcaption",
|
| 64 |
),
|
|
|
|
| 65 |
),
|
| 66 |
intro(),
|
| 67 |
),
|
|
@@ -213,7 +237,7 @@ def intro():
|
|
| 213 |
|
| 214 |
@app.get("/web_data")
|
| 215 |
def web_data():
|
| 216 |
-
return Div(Section(
|
| 217 |
|
| 218 |
|
| 219 |
serve()
|
|
|
|
| 34 |
Nav(
|
| 35 |
H3("Table of Contents"),
|
| 36 |
Div(
|
| 37 |
+
A("TxT360", href="#_self"),
|
| 38 |
hx_get="/intro",
|
| 39 |
hx_target="#inner-text",
|
|
|
|
| 40 |
),
|
| 41 |
Div(
|
| 42 |
Ul(
|
| 43 |
+
Li(
|
| 44 |
+
A(
|
| 45 |
+
"Introduction",
|
| 46 |
+
href="/intro#section1",
|
| 47 |
+
hx_get="/intro#section1",
|
| 48 |
+
hx_target="#inner-text",
|
| 49 |
+
)
|
| 50 |
+
),
|
| 51 |
+
Li(
|
| 52 |
+
A(
|
| 53 |
+
"Background",
|
| 54 |
+
href="/intro#section2",
|
| 55 |
+
hx_get="/intro#section2",
|
| 56 |
+
hx_target="#inner-text",
|
| 57 |
+
)
|
| 58 |
+
),
|
| 59 |
+
Li(
|
| 60 |
+
A(
|
| 61 |
+
"Main Content",
|
| 62 |
+
href="/intro#section3",
|
| 63 |
+
hx_get="/intro#section3",
|
| 64 |
+
hx_target="#inner-text",
|
| 65 |
+
)
|
| 66 |
+
),
|
| 67 |
+
Li(
|
| 68 |
+
A(
|
| 69 |
+
"Conclusion",
|
| 70 |
+
href="/intro#section4",
|
| 71 |
+
hx_get="/intro#section4",
|
| 72 |
+
hx_target="#inner-text",
|
| 73 |
+
)
|
| 74 |
+
),
|
| 75 |
),
|
|
|
|
|
|
|
|
|
|
| 76 |
),
|
| 77 |
Div(
|
| 78 |
A("Web Data", href="#inner-text"),
|
| 79 |
hx_get="/web_data",
|
| 80 |
hx_target="#inner-text",
|
|
|
|
| 81 |
),
|
| 82 |
Div(A("Curated Sources")),
|
| 83 |
Div(A("Common Steps")),
|
|
|
|
| 85 |
role="navigation",
|
| 86 |
cls="l-text figcaption",
|
| 87 |
),
|
| 88 |
+
prerendered="true",
|
| 89 |
),
|
| 90 |
intro(),
|
| 91 |
),
|
|
|
|
| 237 |
|
| 238 |
@app.get("/web_data")
|
| 239 |
def web_data():
|
| 240 |
+
return Div(Section(H2(P("Web Data")), id="inner-text"))
|
| 241 |
|
| 242 |
|
| 243 |
serve()
|