Spaces:
Running
Running
thibaud frere
commited on
Commit
·
8c7d8bb
1
Parent(s):
a41b32c
update template doc
Browse files
app/src/content/chapters/demo/best-pratices.mdx
CHANGED
|
@@ -38,18 +38,6 @@ Favor **concise captions** and callouts that clarify what to look at and why it
|
|
| 38 |
|
| 39 |
</div>
|
| 40 |
|
| 41 |
-
### Use the right color
|
| 42 |
-
|
| 43 |
-
A palette encodes **meaning** (categories, magnitudes, oppositions), preserves **readability** and **accessibility** (sufficient contrast, color‑vision safety), and ensures **perceptually smooth transitions**. The three families below illustrate when to use **categorical**, **sequential**, or **diverging** colors and how they evolve from the same **reference hue**.
|
| 44 |
-
|
| 45 |
-
<div className="">
|
| 46 |
-
<HtmlEmbed src="palettes.html" />
|
| 47 |
-
</div>
|
| 48 |
-
|
| 49 |
-
<Sidenote>
|
| 50 |
-
You can choose a color from the palette to update palettes and copy them to your clipboard. It will be applied to the <a href="/" target="_blank">whole page</a>.
|
| 51 |
-
</Sidenote>
|
| 52 |
-
|
| 53 |
### Use the right chart
|
| 54 |
|
| 55 |
Picking the right visualization depends on your goal (compare values, show distribution, part-to-whole, trends, relationships, etc.). The Visual Vocabulary poster below provides a concise mapping from **analytical task** to **chart types**.
|
|
|
|
| 38 |
|
| 39 |
</div>
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
### Use the right chart
|
| 42 |
|
| 43 |
Picking the right visualization depends on your goal (compare values, show distribution, part-to-whole, trends, relationships, etc.). The Visual Vocabulary poster below provides a concise mapping from **analytical task** to **chart types**.
|
app/src/content/chapters/demo/greetings.mdx
CHANGED
|
@@ -12,4 +12,5 @@ import HfUser from '../../../components/HfUser.astro';
|
|
| 12 |
<HfUser username="molbap" name="Pablo Montalvo-Leroux" />
|
| 13 |
<HfUser username="lewtun" name="Lewis Tunstall" />
|
| 14 |
<HfUser username="guipenedo" name="Guilherme Penedo" />
|
|
|
|
| 15 |
</div>
|
|
|
|
| 12 |
<HfUser username="molbap" name="Pablo Montalvo-Leroux" />
|
| 13 |
<HfUser username="lewtun" name="Lewis Tunstall" />
|
| 14 |
<HfUser username="guipenedo" name="Guilherme Penedo" />
|
| 15 |
+
<HfUser username="fracapuano" name="Francesco Capuano" />
|
| 16 |
</div>
|
app/src/content/chapters/demo/markdown.mdx
CHANGED
|
@@ -63,13 +63,17 @@ See also the complete [**Markdown documentation**](https://www.markdownguide.org
|
|
| 63 |
|
| 64 |
### Math
|
| 65 |
|
| 66 |
-
KaTeX
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
$$
|
| 69 |
\mathrm{Attention}(Q,K,V)=\mathrm{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right) V
|
| 70 |
$$
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
```math
|
| 75 |
\htmlId{trajectory_definition}{\begin{align}
|
|
@@ -80,6 +84,7 @@ Aligned math equations are also supported. You can add IDs to equations using `\
|
|
| 80 |
\end{align}}
|
| 81 |
```
|
| 82 |
|
|
|
|
| 83 |
|
| 84 |
<Accordion title="Code example">
|
| 85 |
```mdx
|
|
|
|
| 63 |
|
| 64 |
### Math
|
| 65 |
|
| 66 |
+
**KaTeX** provides full LaTeX math support with two simple syntaxes:
|
| 67 |
+
|
| 68 |
+
**Inline math** — Use `$...$` for equations within text: $x^2 + y^2 = z^2$
|
| 69 |
+
|
| 70 |
+
**Block math** — Use `$$...$$` for centered equations:
|
| 71 |
|
| 72 |
$$
|
| 73 |
\mathrm{Attention}(Q,K,V)=\mathrm{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right) V
|
| 74 |
$$
|
| 75 |
|
| 76 |
+
**Advanced features** — Aligned equations with IDs for cross-referencing:
|
| 77 |
|
| 78 |
```math
|
| 79 |
\htmlId{trajectory_definition}{\begin{align}
|
|
|
|
| 84 |
\end{align}}
|
| 85 |
```
|
| 86 |
|
| 87 |
+
You can reference equations with links like [this equation](#trajectory_definition).
|
| 88 |
|
| 89 |
<Accordion title="Code example">
|
| 90 |
```mdx
|