thibaud frere commited on
Commit ·
e904bd4
1
Parent(s): 9e27095
update
Browse filesFiles changed (4)
133 unmodified lines134135136137138139140141142143144145133 unmodified lines padding: 12px 4px 4px; }
/* Ensure the very last slotted element has no bottom spacing */ .accordion .accordion__content > :global(*:last-child) { padding-bottom: 0 !important; margin-bottom: 0 !important; }
/* Separator between header and content when open (edge-to-edge) */ .accordion[open] .accordion__content-wrapper::before { content: "";157 unmodified lines158159160161162162163164164165166167168169170171165166167168175176177178179180181182183169170185186187188189190191192193194195196197198199200201202203204205206207208171172210211212173174175176143 unmodified lines320321322362323324325326157 unmodified lines[^f1]: Footnote attached to the sentence above.```
### Separator
### PlacementUse `---` on its own line to insert a horizontal separator between sections. This is a standard Markdown “thematic break”. Don’t confuse it with the `---` used at the very top of the file to delimit the frontmatter.
#### Asides
<Aside> This paragraph presents a **key idea** concisely. <Fragment slot="aside"> **Side note** for brief context or a definition. </Fragment> </Aside>---
<small className="muted">Example</small>```mdximport Aside from '../components/Aside.astro'
<Aside> Main paragraph with the core idea. <Fragment slot="aside">Short side note.</Fragment></Aside>```
Use these helpers to expand content beyond the main column when needed. They will always be centered and displayed above every other content.Intro paragraph.
#### Wide example
<Wide> <div className="demo-wide">demo wide</div></Wide>
<small className="muted">Example</small>```mdximport Wide from '../components/Wide.astro'
<Wide> Your content here...</Wide>```
#### Full-bleed example
<FullBleed> <div className="demo-full-bleed">demo full-bleed</div></FullBleed>
<small className="muted">Example</small>```mdximport FullBleed from '../components/FullBleed.astro'---
<FullBleed> Your content here...</FullBleed>Next section begins here.```
143 unmodified lines<iframe src="https://trackio-documentation.hf.space/?project=fake-training-750735&metrics=train_loss,train_accuracy&sidebar=hidden&lang=en" width="100%" height="600" frameborder="0"></iframe>```
#### gradio#### Gradio
You can also embed **gradio** apps.
34 unmodified lines3536373838394040414243444546474849505152535442555657585934 unmodified lines
### Deploy
The recommended way is to **clone this [🤗 Hugging Face Space](https://huggingface.co/spaces/tfrere/science-blog-template)**. The recommended way is to **duplicate this Space on Hugging Face** rather than cloning it directly:
Once you have cloned the Space, **just push your changes** to your repository. 1. Open the template Space: **[🤗 science-blog-template](https://huggingface.co/spaces/tfrere/science-blog-template)** and click "Duplicate this Space".2. Give it a name, choose visibility, and keep the SDK as **Docker** (this project includes a `Dockerfile`).3. A new Space repository will be created under your account.
Then push your changes to your new Space repo:
```bashgit clone https://huggingface.co/spaces/<your-username>/<your-space>cd <your-space># Make edits locally, then:git add .git commit -m "Update content"git push```
**Every push automatically triggers a build and deploy** — no extra configuration needed.**Every push automatically triggers a build and deploy** on Spaces.
Notes for Docker Spaces:- This project exposes port `8080` via Nginx; the Space front matter includes `app_port: 8080` so the service can be probed correctly.- No extra configuration is required; the `Dockerfile` builds the Astro site and serves it.71 unmodified lines727374757677787980818283848575767742 unmodified lines12012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717871 unmodified lines```
Use `---` on its own line to insert a horizontal separator between sections. This is a standard Markdown “thematic break”. Don’t confuse it with the `---` used at the very top of the file to delimit the frontmatter.
<small className="muted">Example</small>```mdxIntro paragraph.
---
Next section begins here.```
### Chapters
42 unmodified linesHere is a suggestion of **color palettes** for your **data visualizations** that align with your **brand identity**. These palettes are generated from your `--primary-color`.
<HtmlFragment src="palettes.html" />
### Placement
Use these helpers when you need to step outside the main content flow: **Asides** for contextual side notes, **Wide** to extend beyond the main column, and **Full-bleed** for full-width, immersive sections.
#### Asides
<Aside> This paragraph presents a **key idea** concisely. <Fragment slot="aside"> **Side note** for brief context or a definition. </Fragment> </Aside>
<small className="muted">Example</small>```mdximport Aside from '../components/Aside.astro'
<Aside> Main paragraph with the core idea. <Fragment slot="aside">Short side note.</Fragment></Aside>```
Use these helpers to expand content beyond the main column when needed. They will always be centered and displayed above every other content.
#### Wide example
<Wide> <div className="demo-wide">demo wide</div></Wide>
<small className="muted">Example</small>```mdximport Wide from '../components/Wide.astro'
<Wide> Your content here...</Wide>```
#### Full-bleed example
<FullBleed> <div className="demo-full-bleed">demo full-bleed</div></FullBleed>
<small className="muted">Example</small>```mdximport FullBleed from '../components/FullBleed.astro'
<FullBleed> Your content here...</FullBleed>```app/src/components/Accordion.astro+6
app/src/content/chapters/available-blocks.mdx+7-46
app/src/content/chapters/getting-started.mdx+20-3
app/src/content/chapters/writing-your-content.mdx+56-11