Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ pip-wheel-metadata/
# Generated widgets
*.html
!doc/index.html
!doc/public/404.html
output/

# Doc build output
Expand Down
28 changes: 28 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,34 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vibe Widgets Docs</title>

<!-- Single Page Apps for GitHub Pages -->
<!-- https://github.com/rafrex/spa-github-pages -->
<script type="text/javascript">
// This script checks to see if a redirect is present in the query string
// and converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(function (l) {
if (l.search) {
var q = {};
l.search.slice(1).split('&').forEach(function (v) {
var a = v.split('=');
q[a[0]] = a.slice(1).join('=').replace(/~and~/g, '&');
});
if (q.p !== undefined) {
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + (q.p || '') +
(q.q ? ('?' + q.q) : '') +
l.hash
);
}
}
}(window.location))
</script>
</head>

<body>
Expand Down
44 changes: 44 additions & 0 deletions doc/public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Vibe Widgets - Redirecting...</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ----------------------------------------------------------------------
// This script takes the current url and converts the path and query
// string into just a query string, and then redirects the browser
// to the new url with only a query string and hash fragment,
// e.g. http://www.foo.tld/one/two?a=b&c=d#qwe, becomes
// http://www.foo.tld/?p=/one/two&q=a=b~and~c=d#qwe
// Note: this 404.html file must be at least 512 bytes for it to work
// with Internet Explorer (it is currently > 512 bytes)

// If you're creating a Project Pages site and NOT using a custom domain,
// then set segmentCount to 1 (enterprise users may need to set it to > 1).
// This way the code will only replace the route part of the path, and not
// the real directory in which the app resides, for example:
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?p=/one/two&q=a=b~and~c=d#qwe
// Otherwise, leave segmentCount as 0.
var segmentCount = 0;

var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + segmentCount).join('/') + '/?p=/' +
l.pathname.slice(1).split('/').slice(segmentCount).join('/').replace(/&/g, '~and~') +
(l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);
</script>
</head>

<body>
<p>Redirecting...</p>
</body>

</html>
78 changes: 19 additions & 59 deletions doc/public/docs-export.json

Large diffs are not rendered by default.

50 changes: 10 additions & 40 deletions doc/public/docs.txt

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions doc/public/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ Pages:
- /docs/edit: Edit - Iterate on generated widgets using code or the UI.
- /docs/audit: Audit - Review widget code and behavior for risks, usability issues, and design gaps.
- /docs/reactivity: Reactivity - Connect widgets with reactive inputs and outputs.
- /docs/data-sources: Data Sources - Supported inputs and loaders.
- /docs/composability: Composability - Compose widgets using components and outputs.
- /docs/composability: Load & Save - Persist widgets to disk and reload them later.
- /docs/theming: Theming - Style widgets with natural-language design specs.
- /docs/examples/cross-widget: Cross-Widget Interactions - Interactive notebook example for cross-widget state sharing.
- /docs/examples/tictactoe: Tic-Tac-Toe AI - Interactive notebook example for game logic and UI.
- /docs/examples/pdf-web: PDF & Web Data Extraction - Interactive notebook example for scraping and parsing.
- /docs/examples/edit: Widget Editing - Interactive notebook example for editing workflows.
- /docs/widgetarium: Widgetarium - The ecosystem of widgets and templates.

Docs export:
Expand Down
5 changes: 1 addition & 4 deletions doc/public/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ Security model:
- Widgets execute LLM-generated JavaScript in the notebook frontend. Treat outputs as untrusted and verify results with audits and your own checks.

Examples:
- /docs/examples/cross-widget
- /docs/examples/tictactoe
- /docs/examples/pdf-web
- /docs/examples/edit
- /gallery

Docs export:
- /docs.txt
Expand Down
2 changes: 1 addition & 1 deletion doc/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://vibewidget.dev/</loc></url><url><loc>https://vibewidget.dev/docs</loc></url><url><loc>https://vibewidget.dev/gallery</loc></url><url><loc>https://vibewidget.dev/docs/config</loc></url><url><loc>https://vibewidget.dev/docs/create</loc></url><url><loc>https://vibewidget.dev/docs/edit</loc></url><url><loc>https://vibewidget.dev/docs/audit</loc></url><url><loc>https://vibewidget.dev/docs/reactivity</loc></url><url><loc>https://vibewidget.dev/docs/data-sources</loc></url><url><loc>https://vibewidget.dev/docs/composability</loc></url><url><loc>https://vibewidget.dev/docs/theming</loc></url><url><loc>https://vibewidget.dev/docs/examples/cross-widget</loc></url><url><loc>https://vibewidget.dev/docs/examples/tictactoe</loc></url><url><loc>https://vibewidget.dev/docs/examples/pdf-web</loc></url><url><loc>https://vibewidget.dev/docs/examples/edit</loc></url><url><loc>https://vibewidget.dev/docs/widgetarium</loc></url></urlset>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://vibewidget.dev/</loc></url><url><loc>https://vibewidget.dev/docs</loc></url><url><loc>https://vibewidget.dev/gallery</loc></url><url><loc>https://vibewidget.dev/docs/config</loc></url><url><loc>https://vibewidget.dev/docs/create</loc></url><url><loc>https://vibewidget.dev/docs/edit</loc></url><url><loc>https://vibewidget.dev/docs/audit</loc></url><url><loc>https://vibewidget.dev/docs/reactivity</loc></url><url><loc>https://vibewidget.dev/docs/composability</loc></url><url><loc>https://vibewidget.dev/docs/theming</loc></url><url><loc>https://vibewidget.dev/docs/widgetarium</loc></url></urlset>