Skip to content

Commit 3a1315e

Browse files
committed
mv docs
1 parent 1fa5cbf commit 3a1315e

15 files changed

+31
-31
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ChatGPT, Claude, and Copilot won’t give useful answers about it. To fix
9090
that problem, we’ve provided an LLM-friendly guide that teaches them how
9191
to use FastHTML. To use it, add this link for your AI helper to use:
9292

93-
- [/llms-ctx.txt](https://fastht.ml/docs/llms-ctx.txt)
93+
- [/llms-ctx.txt](https://answerdotai.github.io/fasthtml/llms-ctx.txt)
9494

9595
This example is in a format based on recommendations from Anthropic for
9696
use with [Claude
@@ -114,7 +114,7 @@ Start with the official sources to learn more about FastHTML:
114114

115115
- [About](https://fastht.ml/about): Learn about the core ideas behind
116116
FastHTML
117-
- [Documentation](https://fastht.ml/docs): Learn from examples how to
117+
- [Documentation](https://answerdotai.github.io/fasthtml): Learn from examples how to
118118
write FastHTML code
119119
- [Idiomatic
120120
app](https://github.com/AnswerDotAI/fasthtml/blob/main/examples/adv_app.py):

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta http-equiv="refresh" content="0; url=https://fastht.ml/docs" />
4+
<meta http-equiv="refresh" content="0; url=https://answerdotai.github.io/fasthtml" />
55
<title>Redirecting...</title>
66
</head>
77
<body>
8-
<p>If you are not redirected automatically, <a href="fastht.ml/docs">click here</a>.</p>
8+
<p>If you are not redirected automatically, <a href="answerdotai.github.io/fasthtml">click here</a>.</p>
99
</body>
1010
</html>

fasthtml/_modidx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
d = { 'settings': { 'branch': 'main',
44
'doc_baseurl': '/',
5-
'doc_host': 'https://fastht.ml/docs',
5+
'doc_host': 'https://answerdotai.github.io/fasthtml',
66
'git_url': 'https://github.com/AnswerDotAI/fasthtml',
77
'lib_path': 'fasthtml'},
88
'syms': { 'fasthtml.authmw': {},

nbs/CNAME renamed to nbs/CNAME.off

File renamed without changes.

nbs/_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ website:
2323
twitter-card:
2424
creator: "@jeremyphoward"
2525
site: "@answerdotai"
26-
image: https://fastht.ml/docs/og-image.png
26+
image: https://answerdotai.github.io/fasthtml/og-image.png
2727
open-graph: true
2828
repo-actions: [issue]
2929
navbar:

nbs/api/05_svg.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"cell_type": "markdown",
9898
"metadata": {},
9999
"source": [
100-
"You can also use libraries such as [fa6-icons](https://answerdotai.github.io/fa6-icons/).\n",
100+
"You can also use libraries such as [fa6-icons](https://answerdotai.github.io/fasthtml/fa6-icons/).\n",
101101
"\n",
102102
"To create and modify SVGs using a Python API, use the FT elements in `fasthtml.svg`, discussed below.\n",
103103
"\n",

nbs/api/08_oauth.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"id": "507cd009",
2828
"metadata": {},
2929
"source": [
30-
"See the [docs page](https://fastht.ml/docs/explains/oauth.html) for an explanation of how to use this."
30+
"See the [docs page](https://answerdotai.github.io/fasthtml/explains/oauth.html) for an explanation of how to use this."
3131
]
3232
},
3333
{
@@ -425,7 +425,7 @@
425425
"id": "d978e813",
426426
"metadata": {},
427427
"source": [
428-
"After logging in via the provider, the user will be redirected back to the supplied redirect URL. The request to this URL will contain a `code` parameter, which is used to get an access token and fetch the user's profile information. See [the explanation here](https://fastht.ml/docs/explains/oauth.html) for a worked example. You can either:\n",
428+
"After logging in via the provider, the user will be redirected back to the supplied redirect URL. The request to this URL will contain a `code` parameter, which is used to get an access token and fetch the user's profile information. See [the explanation here](https://answerdotai.github.io/fasthtml/explains/oauth.html) for a worked example. You can either:\n",
429429
"\n",
430430
"- Use client.retr_info(code) to get all the profile information, or\n",
431431
"- Use client.retr_id(code) to get just the user's ID.\n",

nbs/index.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"source": [
111111
"Because FastHTML is newer than most LLMs, AI systems like Cursor, ChatGPT, Claude, and Copilot won't give useful answers about it. To fix that problem, we've provided an LLM-friendly guide that teaches them how to use FastHTML. To use it, add this link for your AI helper to use:\n",
112112
"\n",
113-
"- [/llms-ctx.txt](https://fastht.ml/docs/llms-ctx.txt)\n",
113+
"- [/llms-ctx.txt](https://answerdotai.github.io/fasthtml/llms-ctx.txt)\n",
114114
"\n",
115115
"This example is in a format based on recommendations from Anthropic for use with [Claude Projects](https://support.anthropic.com/en/articles/9517075-what-are-projects). This works so well that we've actually found that Claude can provide even better information than our own documentation! For instance, read through [this annotated Claude chat](https://gist.github.com/jph00/9559b0a563f6a370029bec1d1cc97b74) for some great getting-started information, entirely generated from a project using the above text file as context.\n",
116116
"\n",
@@ -131,7 +131,7 @@
131131
"Start with the official sources to learn more about FastHTML:\n",
132132
"\n",
133133
"- [About](https://fastht.ml/about): Learn about the core ideas behind FastHTML\n",
134-
"- [Documentation](https://fastht.ml/docs): Learn from examples how to write FastHTML code\n",
134+
"- [Documentation](https://answerdotai.github.io/fasthtml): Learn from examples how to write FastHTML code\n",
135135
"- [Idiomatic app](https://github.com/AnswerDotAI/fasthtml/blob/main/examples/adv_app.py): Heavily commented source code walking through a complete application, including custom authentication, JS library connections, and database use.\n",
136136
"\n",
137137
"We also have a 1-hour intro video:\n",

nbs/llms.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Things to remember when writing FastHTML apps:
1212

1313
## Docs
1414

15-
- [FastHTML quick start](https://fastht.ml/docstutorials/quickstart_for_web_devs.html.md): A brief overview of many FastHTML features
15+
- [FastHTML quick start](https://answerdotai.github.io/fasthtml/tutorials/quickstart_for_web_devs.html.md): A brief overview of many FastHTML features
1616
- [HTMX reference](https://raw.githubusercontent.com/bigskysoftware/htmx/master/www/content/reference.md): Brief description of all HTMX attributes, CSS classes, headers, events, extensions, js lib methods, and config options
1717
- [Surreal](https://raw.githubusercontent.com/AnswerDotAI/surreal/main/README.md): Tiny jQuery alternative for plain Javascript with inline Locality of Behavior, providing `me` and `any` functions
1818
- [CSS Scope Inline](https://raw.githubusercontent.com/gnat/css-scope-inline/main/README.md): A JS library which allow `me` to be used in CSS selectors, by using a `MutationObserver` to monitor the DOM
1919
- [Starlette quick guide](https://gist.githubusercontent.com/jph00/e91192e9bdc1640f5421ce3c904f2efb/raw/61a2774912414029edaf1a55b506f0e283b93c46/starlette-quick.md): A quick overview of some Starlette features useful to FastHTML devs.
2020

2121
## API
2222

23-
- [API List](https://fastht.ml/docs/apilist.txt): A succint list of all functions and methods in fasthtml.
23+
- [API List](https://answerdotai.github.io/fasthtml/apilist.txt): A succint list of all functions and methods in fasthtml.
2424

2525
## Examples
2626

@@ -30,15 +30,15 @@ Things to remember when writing FastHTML apps:
3030
## Optional
3131

3232
- [Starlette full documentation](https://gist.githubusercontent.com/jph00/809e4a4808d4510be0e3dc9565e9cbd3/raw/9b717589ca44cedc8aaf00b2b8cacef922964c0f/starlette-sml.md): A subset of the Starlette documentation useful for FastHTML development.
33-
- [JS App Walkthrough](https://fastht.ml/docs/tutorials/e2e.html.md): An end-to-end walkthrough of a complete FastHTML app, including deployment to railway.
34-
- [FastHTML by Example](https://fastht.ml/docs/tutorials/by_example.html.md): A collection of 4 FastHTML apps showcasing idiomatic use of FastHTML and HTMX patterns.
35-
- [Using Jupyter to write FastHTML](https://fastht.ml/docs/tutorials/jupyter_and_fasthtml.html.md): A guide to developing FastHTML apps inside Jupyter notebooks.
36-
- [FT Components](https://fastht.ml/docs/explains/explaining_xt_components.html.md): Explanation of the `FT` components, which are a way to write HTML in a Pythonic way.
37-
- [FAQ](https://fastht.ml/docs/explains/faq.html.md): Answers to common questions about FastHTML.
38-
- [MiniDataAPI Spec](https://fastht.ml/docs/explains/minidataapi.html.md): Explanation of the MiniDataAPI specification, which allows us to use the same API for many different database engines.
39-
- [OAuth](https://fastht.ml/docs/explains/oauth.html.md): Tutorial and explanation of how to use OAuth in FastHTML apps.
40-
- [Routes](https://fastht.ml/docs/explains/routes.html.md): Explanation of how routes work in FastHTML.
41-
- [WebSockets](https://fastht.ml/docs/explains/websockets.html.md): Explanation of websockets and how they work in FastHTML.
42-
- [Custom Components](https://fastht.ml/docs/ref/defining_xt_component.html.md): Explanation of how to create custom components in FastHTML.
43-
- [Handling Handlers](https://fastht.ml/docs/ref/handlers.html.md): Explanation of how to request and response handlers work in FastHTML as routes.
44-
- [Live Reloading](https://fastht.ml/docs/ref/live_reload.html.md): Explanation of how to use live reloading for FastHTML development.
33+
- [JS App Walkthrough](https://answerdotai.github.io/fasthtml/tutorials/e2e.html.md): An end-to-end walkthrough of a complete FastHTML app, including deployment to railway.
34+
- [FastHTML by Example](https://answerdotai.github.io/fasthtml/tutorials/by_example.html.md): A collection of 4 FastHTML apps showcasing idiomatic use of FastHTML and HTMX patterns.
35+
- [Using Jupyter to write FastHTML](https://answerdotai.github.io/fasthtml/tutorials/jupyter_and_fasthtml.html.md): A guide to developing FastHTML apps inside Jupyter notebooks.
36+
- [FT Components](https://answerdotai.github.io/fasthtml/explains/explaining_xt_components.html.md): Explanation of the `FT` components, which are a way to write HTML in a Pythonic way.
37+
- [FAQ](https://answerdotai.github.io/fasthtml/explains/faq.html.md): Answers to common questions about FastHTML.
38+
- [MiniDataAPI Spec](https://answerdotai.github.io/fasthtml/explains/minidataapi.html.md): Explanation of the MiniDataAPI specification, which allows us to use the same API for many different database engines.
39+
- [OAuth](https://answerdotai.github.io/fasthtml/explains/oauth.html.md): Tutorial and explanation of how to use OAuth in FastHTML apps.
40+
- [Routes](https://answerdotai.github.io/fasthtml/explains/routes.html.md): Explanation of how routes work in FastHTML.
41+
- [WebSockets](https://answerdotai.github.io/fasthtml/explains/websockets.html.md): Explanation of websockets and how they work in FastHTML.
42+
- [Custom Components](https://answerdotai.github.io/fasthtml/ref/defining_xt_component.html.md): Explanation of how to create custom components in FastHTML.
43+
- [Handling Handlers](https://answerdotai.github.io/fasthtml/ref/handlers.html.md): Explanation of how to request and response handlers work in FastHTML as routes.
44+
- [Live Reloading](https://answerdotai.github.io/fasthtml/ref/live_reload.html.md): Explanation of how to use live reloading for FastHTML development.

nbs/nbdev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project:
33

44
website:
55
title: "fasthtml"
6-
site-url: "https://fastht.ml/docs/"
6+
site-url: "https://answerdotai.github.io/fasthtml/"
77
description: "The fastest way to create an HTML app"
88
repo-branch: main
99
repo-url: "https://github.com/AnswerDotAI/fasthtml"

nbs/ref/handlers.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
"id": "42d62408",
267267
"metadata": {},
268268
"source": [
269-
"Handler functions can return [`FT`](https://fastht.ml/docs/explains/explaining_xt_components.html) objects, which are automatically converted to HTML strings. The `FT` class can take other `FT` components as arguments, such as `Div`. This allows for easy composition of HTML elements in your responses."
269+
"Handler functions can return [`FT`](https://answerdotai.github.io/fasthtml/explains/explaining_xt_components.html) objects, which are automatically converted to HTML strings. The `FT` class can take other `FT` components as arguments, such as `Div`. This allows for easy composition of HTML elements in your responses."
270270
]
271271
},
272272
{

nbs/ref/live_reload.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"- A reload is only triggered when you save your changes.\n",
3232
"- `FastHTMLWithLiveReload` should only be used during development.\n",
3333
"- If your app spans multiple directories you might need to use the `--reload-dir` flag to watch all files in each directory. See the uvicorn [docs](https://www.uvicorn.org/settings/#development) for more info.\n",
34-
"- The live reload script is only injected into the page when rendering [ft components](https://fastht.ml/docs/explains/explaining_xt_components.html)."
34+
"- The live reload script is only injected into the page when rendering [ft components](https://answerdotai.github.io/fasthtml/explains/explaining_xt_components.html)."
3535
]
3636
},
3737
{

nbs/robots.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
User-agent: *
22
Allow: /
3-
Sitemap: https://fastht.ml/docs/sitemap.xml
3+
Sitemap: https://answerdotai.github.io/fasthtml/sitemap.xml

nbs/tutorials/quickstart_for_web_devs.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"::: {.callout-note}\n",
103103
"While some linters and developers will complain about the wildcard import, it is by design here and perfectly safe. FastHTML is very deliberate about the objects it exports in `fasthtml.common`. If it bothers you, you can import the objects you need individually, though it will make the code more verbose and less readable.\n",
104104
"\n",
105-
"If you want to learn more about how FastHTML handles imports, we cover that [here](https://fastht.ml/docs/explains/faq.html#why-use-import).\n",
105+
"If you want to learn more about how FastHTML handles imports, we cover that [here](https://answerdotai.github.io/fasthtml/explains/faq.html#why-use-import).\n",
106106
":::"
107107
]
108108
},

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tst_flags = notest
1616
put_version_in_init = True
1717
branch = main
1818
custom_sidebar = False
19-
doc_host = https://fastht.ml/docs
19+
doc_host = https://answerdotai.github.io/fasthtml
2020
doc_baseurl = /
2121
git_url = https://github.com/AnswerDotAI/fasthtml
2222
title = fasthtml

0 commit comments

Comments
 (0)