breslavsky commited on
Commit
926e78a
·
1 Parent(s): 3738bcd

first tutorial

Browse files
docs/img/create_project.webp ADDED
docs/img/rename_project.jpg ADDED
docs/intro.md CHANGED
@@ -2,46 +2,52 @@
2
  sidebar_position: 1
3
  ---
4
 
5
- # Tutorial Intro
 
6
 
7
- Let's discover **Piper in less than 5 minutes**.
8
 
9
- ## Getting Started
10
 
11
- Get started by **creating a new site**.
12
 
13
- Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
14
 
15
- ### What you'll need
16
 
17
- - [Node.js](https://nodejs.org/en/download/) version 18.0 or above:
18
- - When installing Node.js, you are recommended to check all checkboxes related to dependencies.
19
 
20
- ## Generate a new site
21
 
22
- Generate a new Docusaurus site using the **classic template**.
 
 
23
 
24
- The classic template will automatically be added to your project after you run the command:
25
 
26
- ```bash
27
- npm init docusaurus@latest my-website classic
28
- ```
29
 
30
- You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
 
 
31
 
32
- The command also installs all necessary dependencies you need to run Docusaurus.
33
 
34
- ## Start your site
 
 
35
 
36
- Run the development server:
37
 
38
- ```bash
39
- cd my-website
40
- npm run start
41
- ```
42
 
43
- The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
44
 
45
- The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
 
 
 
 
 
 
46
 
47
- Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.
 
2
  sidebar_position: 1
3
  ---
4
 
5
+ import Highlight from '@site/src/components/Highlight';
6
+ import Showcase from '@site/src/components/Showcase';
7
 
8
+ # Piper in Action
9
 
10
+ Let's build your first AI pipeline **in less than 5 minutes**
11
 
12
+ Just in 5 minutes using `Chat GPT` and `Flux` you will create unique AI pipeline for generating **Picture of the Day!**
13
 
14
+ `Chat GPT` will retrieve latest world news and prepare prompt for `Flux`
15
 
16
+ `Flux` will generate 4 images what describe current day.
17
 
18
+ ## Getting Started
 
19
 
20
+ Before make sure you have Piper set up in one of the following ways:
21
 
22
+ * [Self-hosted Piper](https://github.com/orgs/My-Piper/repositories) at your server
23
+ * [Piper Cloud](https://app.piper.my/en/signup) <Highlight color="#25c2a0">optimal</Highlight>
24
+ * Piper at your laptop <Highlight color="silver">soon</Highlight>
25
 
26
+ ## Creating a project
27
 
28
+ At application menu go `Pipelines` &rarr; `Create`
 
 
29
 
30
+ <Showcase>
31
+ ![Create project in Piper](./img/create_project.webp)
32
+ </Showcase>
33
 
34
+ In `Design` section rename project to `Picture of the Day`
35
 
36
+ <Showcase>
37
+ ![Create project in Piper](./img/rename_project.jpg)
38
+ </Showcase>
39
 
40
+ Back to `Pipeline` section.
41
 
42
+ ## Adding nodes
 
 
 
43
 
44
+ Add node `Ask Chat GPT` into the canvas.
45
 
46
+ Press at node and put question for Chat GPT:
47
+
48
+ ```
49
+ Chat GPT, please:
50
+ 1. Retrieve latest world news to today.
51
+ 2. Prepare prompt for Flux to generate picture - Picture of the Day.
52
+ ```
53
 
 
i18n/en/docusaurus-plugin-content-pages/index.tsx CHANGED
@@ -21,7 +21,7 @@ function HomepageHeader() {
21
  <Link
22
  className="button button--secondary button--lg"
23
  to="/docs/intro">
24
- Piper Tutorial - 5min
25
  </Link>
26
  </div>
27
  </div>
 
21
  <Link
22
  className="button button--secondary button--lg"
23
  to="/docs/intro">
24
+ Create First Pipeline
25
  </Link>
26
  </div>
27
  </div>
src/components/Highlight.tsx ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+
3
+ const Highlight = ({children, color}) => (
4
+ <span
5
+ style={{
6
+ backgroundColor: color,
7
+ borderRadius: '2px',
8
+ color: '#fff',
9
+ padding: '0.2rem',
10
+ }}>
11
+ {children}
12
+ </span>
13
+ );
14
+
15
+ export default Highlight
src/components/Showcase.tsx ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+
3
+ const Showcase = ({children}) => (
4
+ <div
5
+ style={{
6
+ margin: '20px 0',
7
+ overflow: 'hidden',
8
+ borderRadius: '5px',
9
+ backgroundColor: 'silver',
10
+ width: '90%'
11
+ }}>
12
+ {children}
13
+ </div>
14
+ );
15
+
16
+ export default Showcase
src/components/index.tsx ADDED
@@ -0,0 +1 @@
 
 
1
+ export * from "./Highlight"