Skip to content

Commit c75a174

Browse files
Docusaurus 3 (windmill-labs#513)
* Upgraded to Docusaurus 3 * Fix prop names * Fix all errors * Improving lighthouse score * Fix broken links * Fix broken links * improve seo + accessibitlity * Restore swizzled components * Fix build * Add missing titles * Fix blog posts + restore broken feature * fix(frontend): Fix footer * fix(frontend): Fix inkeep design
1 parent 1dcfc84 commit c75a174

File tree

256 files changed

+11544
-14548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+11544
-14548
lines changed

blog/2023-06-05-discord-bot/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ We need to ingest a data source, here the [Windmill documentation](/docs/intro).
123123

124124
[Workflows](/docs/flows/flow_editor) are graphs ([DAG](https://en.wikipedia.org/wiki/Directed_acyclic_graph)) that represent the dependencies between steps.
125125

126-
<br/>
126+
<br />
127127

128128
The goal of an orchestrator or workflow engine is to execute the steps on different workers that respect that graph's dependencies, and pass the required data defined in the steps' inputs while applying parallelism when possible.
129129

130-
<br/>
130+
<br />
131131

132132
In Windmill, each step is [code](/docs/getting_started/scripts_quickstart) with a main function in TypeScript, Python, Go, Bash or raw queries to databases.
133133

@@ -258,7 +258,7 @@ function getDocusaurusPathFromGithub(githubUrl: string): string {
258258

259259
Notice that the script takes a special parameter `gh_auth` which is a Windmill resource that contains the [GitHub token](/docs/integrations/github).
260260

261-
<div class="grid grid-cols-2 gap-6 mb-4">
261+
<div className="grid grid-cols-2 gap-6 mb-4">
262262
<DocCard
263263
title="Resources"
264264
description="Resources are rich objects in JSON that allow to store configuration and credentials."
@@ -335,7 +335,7 @@ We can [schedule](/docs/core_concepts/scheduling) the flow to run every month.
335335

336336
#### Learn more about Windmill features
337337

338-
<div class="grid grid-cols-2 gap-6 mb-4">
338+
<div className="grid grid-cols-2 gap-6 mb-4">
339339
<DocCard title="For loops" description="For loops documentation" href="/docs/flows/flow_loops" />
340340
<DocCard
341341
title="Schedule"
@@ -663,7 +663,7 @@ export async function main(
663663

664664
#### Learn more about approval steps
665665

666-
<div class="grid grid-cols-2 gap-6 mb-4">
666+
<div className="grid grid-cols-2 gap-6 mb-4">
667667
<DocCard
668668
title="Suspend & Approval / Prompts"
669669
description="Flows can be suspended until resumed or cancelled event(s) are received"

blog/2023-08-04-windmill-ai/index.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ We use the same system message for all the different languages supported by Wind
9494
You write code as queried by the user. Only output code. Wrap the code like that:
9595
9696
```language
97-
{code}
97+
\{code\}
9898
```
9999
100100
Put explanations directly in the code as comments.
@@ -106,11 +106,11 @@ If you do not speak fluently regex, this expression looks for three back ticks f
106106
For the user message, we use the following template (here for Python):
107107

108108
```
109-
Write a function in python called "main". The function should {description}.
109+
Write a function in python called "main". The function should \{description\}.
110110
Specify the parameter types. Do not call the main function.
111111
```
112112

113-
The {description} placeholder gets replaced by the user's instructions.
113+
The \{description\} placeholder gets replaced by the user's instructions.
114114
In addition, we simply instruct the model to fit Windmill's execution model: a main function with typed parameters used to infer the script's inputs.
115115

116116
### Handling resource types
@@ -161,7 +161,7 @@ To achieve this, we include all the resource types within the user message, prov
161161
Below is the updated template for Python with sample resource types:
162162

163163
```
164-
Write a function in python called "main". The function should {description}.
164+
Write a function in python called "main". The function should \{description\}.
165165
Specify the parameter types. Do not call the main function.
166166
167167
You have access to the following resource types.
@@ -229,7 +229,7 @@ insert into users (first_name, last_name) values ($1, $2);
229229
Below is the corresponding prompt template:
230230

231231
```
232-
Write SQL code for PostgreSQL that should {description}.
232+
Write SQL code for PostgreSQL that should \{description\}.
233233
Arguments can be obtained directly in the statement with `$1::{type}`, `$2::{type}`, etc...
234234
Name the parameters by adding comments before the command like that:
235235
`-- $1 name1` or `-- $2 name = default` (one per row, do not include the type)
@@ -246,7 +246,7 @@ To achieve this, we query the schema of the selected database, and we include it
246246
Below is the updated template, accompanied by part of the schema from a Windmill instance database as an example:
247247

248248
```
249-
Write SQL code for PostgreSQL that should {description}.
249+
Write SQL code for PostgreSQL that should \{description\}.
250250
Arguments can be obtained directly in the statement with `$1::{type}`, `$2::{type}`, etc...
251251
Name the parameters by adding comments before the command like that:
252252
`-- $1 name1` or `-- $2 name = default` (one per row, do not include the type)
@@ -295,7 +295,7 @@ We continue to use the same system message to guide the AI but we use a differen
295295
````
296296
Here's my python3 code:
297297
```python
298-
{code}
298+
\{code\}
299299
```
300300
301301
Additional information:
@@ -306,7 +306,7 @@ If you need them, you have to define the TypedDict exactly as specified
306306
Only use the ones you need. If the TypedDict name conflicts with the imported object,
307307
rename the imported object NOT THE TYPE.
308308
309-
My instructions: {description}
309+
My instructions: \{description\}
310310
````
311311

312312
We integrated this feature into the script builder by simply changing the "AI Gen" button to "AI Edit" button when code is selected.
@@ -333,7 +333,7 @@ For bug fixing, we pass the complete code and the error message, but no user ins
333333
````
334334
Here's my python3 code:
335335
```python
336-
{code}
336+
\{code\}
337337
```
338338
Additional information:
339339
We have to export a "main" function and specify the parameter types but do not call it.
@@ -353,7 +353,7 @@ We instruct GPT-4 to include an explanation in a specific format which we then e
353353
````
354354
You fix the code shared by the user. Only output code. Wrap the code like that:
355355
```language
356-
{code}
356+
\{code\}
357357
```
358358
Explain the error and the fix in the following format:
359359
explanation: "Here's the explanation"

blog/2023-11-15-launch-week-1/index.mdx

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ For less technical users, it's an opportunity to use Windmill while avoiding bac
4141
- Docs - [Windmill AI for Flows](/docs/core_concepts/ai_generation#windmill-ai-for-flows)
4242
- Docs - [Windmill AI Code Completion](/docs/core_concepts/ai_generation#windmill-ai-code-completion)
4343

44-
<div class="grid grid-cols-2 gap-6 mb-4">
44+
<div className="grid grid-cols-2 gap-6 mb-4">
4545
<DocCard
4646
title="Launch Week Day 1 - Flow Builder Copilot"
4747
description="Generate workflows from prompts."
@@ -71,7 +71,7 @@ It unlocks fully the ability to iterate on your scripts and flows in the comfort
7171
- Docs - [Local Development](/docs/advanced/local_development)
7272
- Docs - [Windmill CLI](/docs/advanced/cli)
7373

74-
<div class="grid grid-cols-2 gap-6 mb-4">
74+
<div className="grid grid-cols-2 gap-6 mb-4">
7575
<DocCard
7676
title="Launch Week Day 1 - VS Code Extension"
7777
description="Write scripts & flows in your code editor with a UI preview."
@@ -115,7 +115,7 @@ Examples of worker groups configurations include:
115115

116116
Once the configurations are done from the Windmill UI, the workers take their configuration dynamically, without having to restart.
117117

118-
<div class="grid grid-cols-2 gap-6 mb-4">
118+
<div className="grid grid-cols-2 gap-6 mb-4">
119119
<DocCard
120120
title="Launch Week Day 2 - Worker Groups"
121121
description="Define Worker Groups and configure them in the UI"
@@ -143,7 +143,7 @@ Dedicated Workers for scripts enable to reach up to 1000rps per worker for a giv
143143

144144
- Docs - [Dedicated Workers - High Throughput](/docs/core_concepts/dedicated_workers)
145145

146-
<div class="grid grid-cols-2 gap-6 mb-4">
146+
<div className="grid grid-cols-2 gap-6 mb-4">
147147
<DocCard
148148
title="Launch Week Day 2 - Dedicated Workers for scripts"
149149
description="Assign workers dedciated to a script for maxmium performance by removing cold starts"
@@ -162,9 +162,9 @@ Dedicated Workers for scripts enable to reach up to 1000rps per worker for a giv
162162
src="/videos/windmill_fastest.mp4"
163163
/>
164164

165-
<br/>
165+
<br />
166166

167-
Big claim today: We've benchmarked Windmill to be the fastest self-hostable generic workflow engine among Airflow, Prefect and even Temporal. For Airflow, there is a quite a margin, up to 10x faster!
167+
Big claim today: We've benchmarked Windmill to be the fastest self-hostable generic workflow engine among Airflow, Prefect and even Temporal. For Airflow, there is a quite a margin, up to 10x faster!
168168

169169
You've known Windmill to be a productive environment to monitor, write and iterate on workflows, but we wanted to prove it's also the best system to deploy at scale in production.
170170

@@ -177,7 +177,7 @@ Enjoy the reading.
177177
- [Blog post](../2023-11-22-why-is-windmill-the-fastest-workflow-engine/index.mdx)
178178
- Docs - [Benchmarks](/docs/misc/benchmarks/competitors)
179179

180-
<div class="grid grid-cols-2 gap-6 mb-4">
180+
<div className="grid grid-cols-2 gap-6 mb-4">
181181
<DocCard
182182
title="Launch Week Day 3 - Fastest self-hostable open-source workflow engine"
183183
description="Why is Windmill the fastest self-hostable workflow engine and job processing framework"
@@ -211,13 +211,13 @@ Not only that, but we also took care of doing an exhaustive hierarchy of classes
211211
className="border-2 rounded-xl object-cover w-full dark:border-gray-800"
212212
></iframe>
213213

214-
<br/>
214+
<br />
215215

216216
- [Blog post](../2023-11-23-3-global-css/Index.mdx)
217217
- Docs - [Styling](/docs/apps/app_configuration_settings/app_styling)
218218
- Docs - [CSS Editor](/docs/apps/css_editor)
219219

220-
<div class="grid grid-cols-2 gap-6 mb-4">
220+
<div className="grid grid-cols-2 gap-6 mb-4">
221221
<DocCard
222222
title="Launch Week Day 4 - Global Custom CSS"
223223
description="Introducing Custom CSS theming to share across your apps."
@@ -234,18 +234,18 @@ Windmill already provides over sixty components for its users. All components co
234234
We are proud to introduce component groups, which allow you to build your own meta-components, accessible via drag-and-drop from any app in your workspace. Saved components group keep the logic between each components, avoiding creating it over and over.
235235

236236
<video
237-
className="border-2 rounded-xl object-cover w-full h-full dark:border-gray-800"
238-
autoPlay
239-
controls
240-
src="/videos/save_component_group.mp4"
237+
className="border-2 rounded-xl object-cover w-full h-full dark:border-gray-800"
238+
autoPlay
239+
controls
240+
src="/videos/save_component_group.mp4"
241241
/>
242242

243-
<br/>
243+
<br />
244244

245245
- [Blog post](../2023-11-23-2-components-groups/index.mdx)
246246
- Docs - [Groups of components](/docs/apps/app_configuration_settings/components_groups)
247247

248-
<div class="grid grid-cols-2 gap-6 mb-4">
248+
<div className="grid grid-cols-2 gap-6 mb-4">
249249
<DocCard
250250
title="Launch Week Day 4 - Groups of Components"
251251
description="Introducing Components Groups to group and save components, therefore building your own meta components."
@@ -264,6 +264,7 @@ However, for components that are more specific you can now go even further and i
264264
Once imported to Windmill, custom React components will be able to interact with the rest of the app.
265265

266266
There are 3 main benefits of using your own components:
267+
267268
1. Reusing react components you've already written in other codebases.
268269
2. Controlling fully the component including theming, inputs and outputs allowing for more complex components and interactions.
269270
3. Embeding very complex components such as a code editor.
@@ -280,13 +281,13 @@ If that's not sufficient you can even build your own app in React.
280281
className="border-2 rounded-xl object-cover w-full dark:border-gray-800"
281282
></iframe>
282283

283-
<br/>
284+
<br />
284285

285286
- [Blog post](/blog/launch-week-1/react-components)
286287
- Docs - [Import Custom React Components](/docs/apps/react_components)
287288
- Docs - [React App Import](/docs/react_vue_svelte_apps/react)
288289

289-
<div class="grid grid-cols-2 gap-6 mb-4">
290+
<div className="grid grid-cols-2 gap-6 mb-4">
290291
<DocCard
291292
title="Launch Week Day 4 - Custom React Components & Apps"
292293
description="Define components in React or Vanilla JS that interact with the rest of your app."
@@ -300,7 +301,7 @@ For the last day of our launch week today we focused on features that will help
300301

301302
### Windmill for data pipelines - S3 Integration
302303

303-
![Windmill for data pipelines - S3 Integration](../2023-11-24-data-pipeline-orchestrator/data_pipelines.png.webp "Windmill for data pipelines - S3 Integration")
304+
![Windmill for data pipelines - S3 Integration](../2023-11-24-data-pipeline-orchestrator/data_pipelines.png.webp 'Windmill for data pipelines - S3 Integration')
304305

305306
_Run your ETLs on-prem up to 5x faster using Windmill compared to Spark while simplifying your infra._
306307

@@ -328,12 +329,12 @@ will be easier to manage and your pipeline will be easier to write, maintain, an
328329
className="border-2 rounded-xl object-cover w-full dark:border-gray-800"
329330
></iframe>
330331

331-
<br/>
332+
<br />
332333

333334
- [Blog post](../2023-11-24-data-pipeline-orchestrator/index.mdx)
334335
- Docs - [Persistent Storage](/docs/core_concepts/persistent_storage)
335336

336-
<div class="grid grid-cols-2 gap-6 mb-4">
337+
<div className="grid grid-cols-2 gap-6 mb-4">
337338
<DocCard
338339
title="Launch Week Day 5 - Windmill for data pipelines"
339340
description="Use Windmill to build, run, and monitor your data pipelines."
@@ -343,7 +344,7 @@ will be easier to manage and your pipeline will be easier to write, maintain, an
343344

344345
### Restartable Flows
345346

346-
![Restartable flows](../2023-11-24-restartable-flows/restartable_flows.png.webp "Restartable flows")
347+
![Restartable flows](../2023-11-24-restartable-flows/restartable_flows.png.webp 'Restartable flows')
347348

348349
The principle is simple: once the flow is executed (whether in test or deployed), you have the possibility to restart it from any node (step, iteration of a for loop, or branch).
349350

@@ -363,12 +364,12 @@ This feature is part of the logic of the different ways to iterate over a flow (
363364
className="border-2 rounded-xl object-cover w-full dark:border-gray-800"
364365
></iframe>
365366

366-
<br/>
367+
<br />
367368

368369
- [Blog post](../2023-11-24-restartable-flows/index.mdx)
369370
- Docs - [Instant Preview & Testing](/docs/core_concepts/instant_preview)
370371

371-
<div class="grid grid-cols-2 gap-6 mb-4">
372+
<div className="grid grid-cols-2 gap-6 mb-4">
372373
<DocCard
373374
title="Launch Week Day 5 - Restartable Flows"
374375
description="Re-start a flow from a specific node."
@@ -386,4 +387,4 @@ If you want to follow our announcements, <a href="https://app.windmill.dev/" rel
386387
height="400px"
387388
></iframe>
388389

389-
You can unsubscribe at any time.
390+
You can unsubscribe at any time.

blog/2023-11-20-ai-flow-builder/index.mdx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ At the same time, we're also releasing a new feature for the [script editor](/do
4949
which prompts you with suggestions based on the code you're writing. This completes our already existing
5050
copilot which allows you to generate, edit and fix your scripts, learn more here:
5151

52-
<div class="grid grid-cols-2 gap-6 mb-4">
52+
<div className="grid grid-cols-2 gap-6 mb-4">
5353
<DocCard
54-
title="Windmill AI for Scripts"
55-
description="Have AI complete code on Windmill."
56-
href="/docs/core_concepts/ai_generation#windmill-ai-for-script"
57-
/>
54+
title="Windmill AI for Scripts"
55+
description="Have AI complete code on Windmill."
56+
href="/docs/core_concepts/ai_generation#windmill-ai-for-script"
57+
/>
5858
</div>
5959

6060
Have a look:
@@ -73,7 +73,7 @@ To enable Windmill AI, you simply have to setup an OpenAI API key in your worksp
7373

7474
These features complement Windmill AI for Scripts, which lets you generate whole scripts using prompts and fix your errors automatically:
7575

76-
<div class="grid grid-cols-2 gap-6 mb-4">
76+
<div className="grid grid-cols-2 gap-6 mb-4">
7777
<DocCard
7878
title="Windmill AI for Scripts"
7979
description="Generate Windmill-specific code from simple text"
@@ -82,7 +82,7 @@ These features complement Windmill AI for Scripts, which lets you generate whole
8282
</div>
8383

8484
We are using [GPT-4-turbo (1106-preview version)](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) for the AI Flow Builder and have changed Windmill AI for Scripts to use it too, as it is faster, three times cheaper and more up-to-date with libraries than GPT-4. We observed similar results to those obtained with GPT-4 in our tests, but we will continue to monitor the quality of the generations.
85-
85+
8686
## What are Windmill Flows?
8787

8888
Workflows are graphs ([DAG](https://en.wikipedia.org/wiki/Directed_acyclic_graph)) that represent the dependencies between steps.
@@ -102,7 +102,6 @@ You can see below an example of a simple workflow with a [for-loop](/docs/flows/
102102

103103
![Windmill DAG](./media/windmill-dag.png.webp)
104104

105-
106105
:::info Workflow engine vs Analytics engine
107106
All the examples above focus on small api integrations but data pipeline that would usually be run on dedicated analytics engine are a great fit for Windmill when combined with s3, and dataframe/olap libraries such as polars or duckdb.
108107
Indeed, thanks to these integrations and Windmill's lack of boilerplate, Windmill offers state-of-the-art performances for data processing at scale while keeping complexity low.
@@ -266,10 +265,10 @@ This is just the first day of the launch week! To learn more about the launch we
266265

267266
To learn more about Windmill AI, please refer to our documentation:
268267

269-
<div class="grid grid-cols-2 gap-6 mb-4">
268+
<div className="grid grid-cols-2 gap-6 mb-4">
270269
<DocCard
271-
title="Windmill AI"
272-
description="Have AI complete code on Windmill."
273-
href="/docs/core_concepts/ai_generation"
274-
/>
275-
</div>
270+
title="Windmill AI"
271+
description="Have AI complete code on Windmill."
272+
href="/docs/core_concepts/ai_generation"
273+
/>
274+
</div>

0 commit comments

Comments
 (0)