thibaud frere commited on
Commit
33b2b3a
·
1 Parent(s): fa5aa90

update tutorial

Browse files
app/src/content/chapters/getting-started.mdx CHANGED
@@ -29,9 +29,13 @@ npm run dev
29
  ```bash
30
  npm run build
31
  ```
32
- <small className="muted">- Serving the `dist/` directory on any static host is enough to deliver the site.</small>
33
- <br/>
34
- <small className="muted">- A [slug-title].pdf and thumb.jpg are also generated at build time. You can find them in the public folder.</small>
 
 
 
 
35
 
36
 
37
  ### Deploy
@@ -39,13 +43,14 @@ npm run build
39
  The recommended way is to **duplicate this Space** on **Hugging Face** rather than cloning it directly:
40
 
41
  1. Open the template Space: **[🤗 science-blog-template](https://huggingface.co/spaces/tfrere/science-blog-template)** and click **"Duplicate this Space"**.
42
- <Note>💡 It runs on a **free** CPU basic instance.</Note>
43
- 2. Give it a name, choose visibility, and **keep the SDK as Docker**.
44
- 3. Then push your changes to your new Space repo.<br/>**Every push automatically triggers a build and deploy** on Spaces.
45
-
46
  ```bash
47
  git clone git@hf.co:spaces/<your-username>/<your-space>
48
  cd <your-space>
 
 
 
49
  # Make edits locally, then:
50
  git add .
51
  git commit -m "Update content"
 
29
  ```bash
30
  npm run build
31
  ```
32
+
33
+ <Note title="Note">
34
+ Serving the `dist/` directory on any static host is enough to deliver the site.
35
+ </Note>
36
+ <Note title="Note">
37
+ A [slug-title].pdf and thumb.jpg are also generated at build time.<br/>You can find them in the public folder.
38
+ </Note>
39
 
40
 
41
  ### Deploy
 
43
  The recommended way is to **duplicate this Space** on **Hugging Face** rather than cloning it directly:
44
 
45
  1. Open the template Space: **[🤗 science-blog-template](https://huggingface.co/spaces/tfrere/science-blog-template)** and click **"Duplicate this Space"**.
46
+ 2. Give it a name, choose visibility, and **keep the free CPU instance**.
47
+ 3. Clone your new Space repo.
 
 
48
  ```bash
49
  git clone git@hf.co:spaces/<your-username>/<your-space>
50
  cd <your-space>
51
+ ```
52
+ 3. Then push your changes to your new Space repo.<br/>**Every push automatically triggers a build and deploy** on Spaces.
53
+ ```bash
54
  # Make edits locally, then:
55
  git add .
56
  git commit -m "Update content"
app/src/content/chapters/writing-your-content.mdx CHANGED
@@ -54,7 +54,9 @@ This is a short paragraph written in Markdown. Below is an example image:
54
 
55
  ### MDX
56
 
57
- MDX is a mix of Markdown and HTML/JSX: write regular Markdown, and embed interactive components inline when needed. We’ll describe the available components you can use later in this guide. For Markdown syntax, see the complete [Markdown documentation](https://www.markdownguide.org/basic-syntax/).
 
 
58
 
59
  <small className="muted">Example</small>
60
  ```mdx
 
54
 
55
  ### MDX
56
 
57
+ **MDX** is a mix of **Markdown** and **HTML/JSX**: write regular Markdown, and embed **interactive components** inline when needed. We’ll describe the available components you can use later in this guide.
58
+
59
+ For Markdown syntax, see the complete [**Markdown documentation**](https://www.markdownguide.org/basic-syntax/).
60
 
61
  <small className="muted">Example</small>
62
  ```mdx