Skip to content

Commit

Permalink
Update index.ftd
Browse files Browse the repository at this point in the history
Signed-off-by: Saurabh Lohiya <saurabhlohiya1234@gmail.com>
  • Loading branch information
saurabh-lohiya authored Sep 25, 2023
1 parent d6b4182 commit fadb5e9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ lang: ftd

\-- fastn.dependency: <user_name>.github.io/<repo_name>

-- site-doc.header:
-- site-doc.header: Next Step

Now import `<repo_name>` inside `.ftd` file as shown below:

Expand All @@ -43,7 +43,7 @@ lang: ftd
\-- import: <user_name>.github.io/<repo_name>


-- site-doc.header:
-- site-doc.header: Next Step

add `<repo_name>` `types` to `ds.page` `types` attribute as shown
below:
Expand All @@ -54,7 +54,7 @@ lang: ftd
\-- ds.page:
types: $<repo_name>.types

-- site-doc.header:
-- site-doc.header: Next Step

Once you add `types: $<repo_name>.types` inside your `.ftd` file,
`<repo_name>` will be added as `fastn` default typography to your
Expand All @@ -68,7 +68,7 @@ lang: ftd

\-- fastn.dependency: <user_name>.github.io/<repo_name>

-- site-doc.header:
-- site-doc.header: Next Step

Once you add above dependency, then import `<repo_name>` inside your
`.ftd` file:
Expand All @@ -78,7 +78,7 @@ lang: ftd

\-- import: <user_name>.github.io/<repo_name>

-- site-doc.header:
-- site-doc.header: Next Step

Done! `<repo_name>` is now added. Lets define a `page` component:

Expand Down Expand Up @@ -125,7 +125,7 @@ children: $page.wrap
\-- end: page


-- site-doc.header:
-- site-doc.header: Next Step

In above code snippet we defined `page` component which has `types`, `title`,
`body` and `wrap` attributes.
Expand Down Expand Up @@ -193,7 +193,7 @@ color: $inherited.colors.text

-- end: cb.rendered

-- site-doc.header:
-- site-doc.header: Next Step

Click on download icon on above code snippet `types.ftd` file will be
downloaded, add previously downloaded `my-ds.ftd` and `types.ftd` inside
Expand Down

0 comments on commit fadb5e9

Please sign in to comment.