diff --git a/apps/docs/docs/editor/blocks/_category_.json b/apps/docs/docs/editor/blocks/_category_.json new file mode 100644 index 000000000..6aa877545 --- /dev/null +++ b/apps/docs/docs/editor/blocks/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Blocks", + "position": 1 +} diff --git a/apps/docs/docs/editor/blocks/set-variable.md b/apps/docs/docs/editor/blocks/set-variable.md new file mode 100644 index 000000000..4e4a301f6 --- /dev/null +++ b/apps/docs/docs/editor/blocks/set-variable.md @@ -0,0 +1,29 @@ +# Set variable + +The "Set variable" block allows you to set a particular value to a variable. + +Set variable + +This value can be any kind of plain text but also **Javascript code**. + +It means you can apply operations on existing variables: + +``` +{{Score}} + 5 +``` + +``` +{{Score}} * {{Multiplier}} +``` + +But also set the variable to the current date for example: + +``` +new Date() +``` + +Or a random ID: + +``` +Math.round(Math.random() * 1000000) +``` diff --git a/apps/docs/docs/get-started/overview.md b/apps/docs/docs/get-started/overview.md index 2e7a8d2a2..445245755 100644 --- a/apps/docs/docs/get-started/overview.md +++ b/apps/docs/docs/get-started/overview.md @@ -4,6 +4,6 @@ sidebar_position: 2 # Overview -The best way for me to show you Typebot's simplicity is through a product tour video: +The best way to understand the basic principles of Typebot is by watching the "Get started" video series: - + diff --git a/apps/docs/docs/get-started/welcome.md b/apps/docs/docs/get-started/welcome.md index cabe9433c..40c334d75 100644 --- a/apps/docs/docs/get-started/welcome.md +++ b/apps/docs/docs/get-started/welcome.md @@ -5,10 +5,10 @@ slug: / # Welcome -[Typebot](https://www.typebot.io) is a conversational form builder that helps you collect more responses compared to other form builders (Typeform, Google Forms, Tally...). +[Typebot](https://www.typebot.io) Typebot is an open-source alternative to Landbot. It allows you to create conversational apps/forms (Lead qualification, Product launch, User onboarding, Customer support), embed them anywhere on your web/mobile apps, and collect results in real-time. This is the Typebot documentation. It's a great place to find most answers. Please use the search box in the top right or the navigation menu (soon available) on the left-hand side to find the answers you're looking for. This documentation is a work in progress. -If you can't find what you're looking for, don't hesitate to contact me directly on the web app or at baptiste@typebot.io. +If you can't find what you're looking for, don't hesitate to contact me directly on the web app or at support@typebot.io. diff --git a/apps/docs/docusaurus.config.js b/apps/docs/docusaurus.config.js index a8d5f1e13..f84d41d1f 100644 --- a/apps/docs/docusaurus.config.js +++ b/apps/docs/docusaurus.config.js @@ -17,7 +17,7 @@ module.exports = { }, items: [ { - href: 'https://github.com/typebot-io/docs', + href: 'https://github.com/baptisteArno/typebot.io/tree/main/apps/docs', label: 'Contribute', position: 'right', }, @@ -41,10 +41,6 @@ module.exports = { label: 'Roadmap', to: 'https://app.typebot.io/feedback', }, - { - label: 'Blog', - to: 'https://www.typebot.io/blog', - }, ], }, { @@ -63,10 +59,6 @@ module.exports = { { title: 'Company', items: [ - { - label: 'About', - to: 'https://www.typebot.io/about', - }, { label: 'Terms of Service', href: 'https://www.typebot.io/terms-of-service', diff --git a/apps/docs/static/img/blocks/set-variable.png b/apps/docs/static/img/blocks/set-variable.png new file mode 100644 index 000000000..fc16939e0 Binary files /dev/null and b/apps/docs/static/img/blocks/set-variable.png differ