You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/README.md
+78-8
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,88 @@ This readme will outline the steps to create a Tutorial on the [Tutorial page of
5
5
6
6
## How to Create a Tutorial
7
7
8
-
### Step 1: Create a Markdown file
9
-
First, you will need to create a markdown file in the ...
8
+
Definitions
9
+
* Module: A set of several step-by-step modules
10
+
* Tutorial: An individual page in a set of tutorials
10
11
11
-
### Step 2: Update ....
12
+

13
+
14
+
### Create a new Tutorial
15
+
* First, you will need to create a markdown file (or a directory containing a markdown file, if the tutorial has images) in the `/content/en/tutorials`[directory](https://github.com/protocol/launchpad/tree/main/content/en/tutorials) in the root of the repo.
16
+
* Add a tutorial to an existing tutorial module, by simply copy-pasting the tutorials template into the module folder where you will place the file.
Update the `parent:` field in the header, with the identifier from the `config/_default/menus/menus.en.toml`[file](https://github.com/protocol/launchpad/blob/main/config/_default/menus/menus.en.toml):
* For example, to add to the **Introduction to IPFS** module, you would replace`"<identifier of tutorial module>"`that with `"tutorials-ipfs"` found on here in the [menus.en.toml file](https://github.com/protocol/launchpad/blob/main/config/_default/menus/menus.en.toml#L159)
30
+
<br>
31
+

32
+
* To add the tutorial within a curriculum module as well, under the `menu` field, add an additional two lines with a `curriculm` field witht he correct file from [menus.en.toml](https://github.com/protocol/launchpad/blob/main/config/_default/menus/menus.en.toml#L91):
33
+
```
34
+
menu:
35
+
tutorials:
36
+
parent: "tutorials-ipfs"
37
+
curriculum:
38
+
parent: "curriculum-ipfs"
39
+
```
40
+
41
+
42
+
### Create a new Module
43
+
To create a new set of tutorials or Module, follow these steps:
* Copy the `.md` template into your new module folder in `content/en/tutorials/<your-tutorial-module-name` (or make a directory with a markdown file if the tutorial has images)
47
+
* In `config/_default/menus/menus.en.toml` add a new field:
48
+
```
49
+
[[tutorials]]
50
+
name = "<Namethatwillrenderonthepage>"
51
+
weight = <make 10 higher than the previous one >
52
+
identifier = "<tutorial-id-for-header>"
53
+
[tutorials.params]
54
+
category = "libp2p"
55
+
image = "/tutorials/libp2p.png"
56
+
```
57
+
58
+
* `name` This will render on the webpage
59
+
* `weight` controls what order tutorials are displayed in, make it 10 higher
60
+
* `identifier` is
61
+
* `category` create a new unique category name, just make sure it's unique
62
+
* `image' - Find an image and upload to `static/tutorials` [directory](https://github.com/protocol/launchpad/tree/main/static/tutorials)
63
+
64
+
* When you have created this, mark @enoldev or @walkerlj0 as a reviewer in Github
12
65
13
-
### Step 3: Add ....
14
66
15
67
## How to Create a Dev Tools Page
16
68
17
-
### Step 1: Create a Markdown file
18
-
First, you will need to create a markdown file in the ...
69
+
* Create a Markdown file or a directory with a markddown file in `content/en/curriculum/dev-tools`
70
+
* Update the `weight` field to be 10 after the very last dev-tools page
71
+

72
+
_in this example, the last page is currently spice.md, and you would want to make the next page havea weight of 80_
0 commit comments