diff --git a/docs/code_editor/add_variables_resources.mdx b/docs/code_editor/add_variables_resources.mdx
index fc238b134..c14f5e27e 100644
--- a/docs/code_editor/add_variables_resources.mdx
+++ b/docs/code_editor/add_variables_resources.mdx
@@ -1,4 +1,6 @@
import DocCard from '@site/src/components/DocCard';
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
# Add Resources and Variables to Code
@@ -31,39 +33,56 @@ There are 2 main ways resources are used within scripts:
### Passing resources as parameters to scripts (prefered)
-Provided you have the right permissions and the resource type exists in the workspace, you can access resources from scripts, flows and apps using the Windmill client. For example, to access the `u/user/my_postgresql` resource of the `posgtgresql` Resource Type we would create a script.
+Provided you have the right permissions and the resource type exists in the workspace, you can access resource types from scripts, flows and apps using the Windmill client or [TypedDict](https://mypy.readthedocs.io/en/stable/typed_dict.html) in Python.
-Typescript:
+From the code editor's toolbar, click on the `+ Type` button and pick the right resource type. For example, to access the `u/user/my_postgresql` resource of the `posgtgresql` Resource Type we would create a script:
+
+
+
© 2023 Windmill Labs, Inc. All rights reserved.
1111B S Governors Ave, Dover, DE 19904, USA
+
Windmill Labs is SOC 2 Type II compliant
+
Windmill is an open-source platform to build internal tools from scripts and low code builders. @@ -58,7 +58,7 @@ export default function About() {
+
Windmill is released under the AGPLv3 license. This means the software is free and open-source. If you make modifications and distribute them, you must also release those changes under the AGPLv3. Significantly, if you run a modified version of Windmill on a server and let others interact with it over a network, you are obligated to provide them a way to access the modified source code. This ensures the software remains transparent and free for all users, even when used in online applications. @@ -97,7 +97,7 @@ export default function About() {
+
Make sure to use the official Windmill brand assets for your publications. diff --git a/src/pages/windmill_ai.jsx b/src/pages/windmill_ai.jsx index f50126616..e9e900713 100644 --- a/src/pages/windmill_ai.jsx +++ b/src/pages/windmill_ai.jsx @@ -3,8 +3,8 @@ import Head from '@docusaurus/Head'; import LandingHeader from '../landing/LandingHeader'; import Footer from '../landing/Footer'; import LayoutProvider from '@theme/Layout/Provider'; -import 'react-responsive-carousel/lib/styles/carousel.min.css'; // requires a loader -import { Code, Hand } from 'lucide-react'; +import 'react-responsive-carousel/lib/styles/carousel.min.css'; +import { Code, Workflow, HeartPulseIcon, FileEditIcon, Wand2, ZapIcon } from 'lucide-react'; import HeroAI from '../landing/HeroAI'; import Section from './../landing/Section'; @@ -12,44 +12,65 @@ import { DeveloperModeContext } from './index'; const tabs = [ { - label: 'App editor', + label: 'Code Editor', icon: Code, - id: 'app-editor', + id: 'code-editor', data: [ { title: 'Generate Windmill-specific code from simple prompt', description: - 'The AI-generated script will set to be tested right away, with an auto-generated UI and a dedicated webhook.', - icon: Hand, - caption: