Skip to content

Commit d6f252c

Browse files
davanstrienclaude
andauthored
[docs] Promote manage-spaces walkthrough steps to H3 (#4108)
Steps 1-6 in "A simple example" were bold pseudo-headings and didn't generate anchors. That broke `#mount-volumes-in-your-space` deep-links used from hub-docs#2377 and storage-buckets-access.md. Promoting to H3 gives each step an auto-generated anchor and a sidebar entry. Drop the leading `N.` numbers — step order is preserved by document position. `Bonus:` subsections stay bold since they are variants of their parent step, not peers. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 52e6adb commit d6f252c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/source/en/guides/manage-spaces.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In this guide, we will see how to manage your Space runtime
1212

1313
Here is an end-to-end example to create and set up a Space on the Hub.
1414

15-
**1. Create a Space on the Hub.**
15+
### Create a Space on the Hub
1616

1717
```py
1818
>>> from huggingface_hub import HfApi
@@ -23,7 +23,7 @@ Here is an end-to-end example to create and set up a Space on the Hub.
2323
>>> api.create_repo(repo_id=repo_id, repo_type="space", space_sdk="gradio")
2424
```
2525

26-
**1. (bis) Duplicate a Space.**
26+
### Duplicate a Space
2727

2828
This can prove useful if you want to build up from an existing Space instead of starting from scratch.
2929
It is also useful is you want control over the configuration/settings of a public Space. See [`duplicate_repo`] for more details.
@@ -32,7 +32,7 @@ It is also useful is you want control over the configuration/settings of a publi
3232
>>> api.duplicate_repo("multimodalart/dreambooth-training", repo_type="space")
3333
```
3434

35-
**2. Upload your code using your preferred solution.**
35+
### Upload your code using your preferred solution
3636

3737
Here is an example to upload the local folder `src/` from your machine to your Space:
3838

@@ -43,7 +43,7 @@ Here is an example to upload the local folder `src/` from your machine to your S
4343
At this step, your app should already be running on the Hub for free !
4444
However, you might want to configure it further with secrets and upgraded hardware.
4545

46-
**3. Configure secrets and variables**
46+
### Configure secrets and variables
4747

4848
Your Space might require some secret keys, token or variables to work.
4949
See [docs](https://huggingface.co/docs/hub/spaces-overview#managing-secrets) for more details.
@@ -90,7 +90,7 @@ Secrets and variables can be set when creating or duplicating a space:
9090
... )
9191
```
9292

93-
**4. Configure the hardware**
93+
### Configure the hardware
9494

9595
By default, your Space will run on a CPU environment for free. You can upgrade the hardware
9696
to run it on GPUs. A payment card or a community grant is required to access upgrade your
@@ -144,7 +144,7 @@ Upgraded hardware will be automatically assigned to your Space once it's built.
144144
... )
145145
```
146146

147-
**5. Pause and restart your Space**
147+
### Pause and restart your Space
148148

149149
By default if your Space is running on an upgraded hardware, it will never be stopped. However to avoid getting billed,
150150
you might want to pause it when you are not using it. This is possible using [`pause_space`]. A paused Space will be
@@ -199,7 +199,7 @@ Upgraded hardware will be automatically assigned to your Space once it's built.
199199
... )
200200
```
201201

202-
**6. Mount volumes in your Space**
202+
### Mount volumes in your Space
203203

204204
You can mount Hub resources (models, datasets, or storage buckets) as volumes in your Space's container. This gives your Space direct filesystem access to these resources without having to download them in your code. Volumes can be set directly when creating or duplicating a Space:
205205

0 commit comments

Comments
 (0)