Skip to content

Commit 0020dbd

Browse files
authored
Use blockquote rather than deprecated <Tip> component (#1950)
1 parent 0d8a6e8 commit 0020dbd

File tree

80 files changed

+320
-527
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+320
-527
lines changed

docs/hub/academia-hub.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Academia Hub
22

3-
<Tip>
4-
Ask your university's IT or Procurement Team to <a href="https://huggingface.co/contact/sales?from=academia" target="_blank">get in touch</a> from a university-affiliated email address to initiate the subscription process.
5-
</Tip>
3+
> [!TIP]
4+
> Ask your university's IT or Procurement Team to <a href="https://huggingface.co/contact/sales?from=academia" target="_blank">get in touch</a> from a university-affiliated email address to initiate the subscription process.
65
76
Academia Hub is a paid offering that provides the Hugging Face Hub’s PRO features to every student, researcher, or faculty member of an academic institution. Explore advanced tools, enhanced collaboration, and exclusive resources to accelerate your learning, research, and teaching. The Hugging Face team is able to work with your IT or procurement department to set the product up.
87

docs/hub/advanced-compute-options.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Advanced Compute Options
22

3-
<Tip warning={true}>
4-
This feature is part of the <a href="https://huggingface.co/enterprise">Team & Enterprise</a> plans.
5-
</Tip>
3+
> [!WARNING]
4+
> This feature is part of the <a href="https://huggingface.co/enterprise">Team & Enterprise</a> plans.
65
76
Enterprise Hub organizations gain access to advanced compute options to accelerate their machine learning journey.
87

docs/hub/agents.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ With the HF MCP Server, you can enhance your AI assistant's capabilities by conn
1818

1919
Visit [huggingface.co/settings/mcp](https://huggingface.co/settings/mcp) to configure your MCP client and get started. Read the dedicated one‑page guide: [HF MCP Server](./hf-mcp-server).
2020

21-
<Tip warning={true}>
22-
23-
This feature is experimental ⚗️ and will continue to evolve.
24-
25-
</Tip>
21+
> [!WARNING]
22+
> This feature is experimental ⚗️ and will continue to evolve.
2623
2724
## tiny-agents (JS and Python)
2825

@@ -143,11 +140,8 @@ To use a local LLM (such as [llama.cpp](https://github.com/ggerganov/llama.cpp),
143140

144141
Optionally, add a `PROMPT.md` to customize the system prompt.
145142

146-
<Tip>
147-
148-
Don't hesitate to contribute your agent to the community by opening a Pull Request in the [tiny-agents](https://huggingface.co/datasets/tiny-agents/tiny-agents) Hugging Face dataset.
149-
150-
</Tip>
143+
> [!TIP]
144+
> Don't hesitate to contribute your agent to the community by opening a Pull Request in the [tiny-agents](https://huggingface.co/datasets/tiny-agents/tiny-agents) Hugging Face dataset.
151145
152146
## Gradio MCP Server / Tools
153147

docs/hub/api.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ All API calls are subject to the HF-wide [Rate limits](./rate-limits). Upgrade y
2727

2828
The following endpoints help get information about models, datasets, and Spaces stored on the Hub.
2929

30-
<Tip>
31-
When making API calls to retrieve information about repositories, the <code>createdAt</code> attribute indicates the time when the respective repository was created. It's important to note that there is a unique value, <code>2022-03-02T23:29:04.000Z</code> assigned to all repositories that were created before we began storing creation dates.
32-
</Tip>
30+
> [!TIP]
31+
> When making API calls to retrieve information about repositories, the <code>createdAt</code> attribute indicates the time when the respective repository was created. It's important to note that there is a unique value, <code>2022-03-02T23:29:04.000Z</code> assigned to all repositories that were created before we began storing creation dates.
3332
3433
### GET /api/models
3534

@@ -486,11 +485,8 @@ If no parameter is set, all collections are returned.
486485

487486
The response is paginated. To get all collections, you must follow the [`Link` header](https://docs.github.com/en/rest/guides/using-pagination-in-the-rest-api?apiVersion=2022-11-28#link-header).
488487

489-
<Tip warning={true}>
490-
491-
When listing collections, the item list per collection is truncated to 4 items maximum. To retrieve all items from a collection, you need to make an additional call using its collection slug.
492-
493-
</Tip>
488+
> [!WARNING]
489+
> When listing collections, the item list per collection is truncated to 4 items maximum. To retrieve all items from a collection, you need to make an additional call using its collection slug.
494490
495491
Payload:
496492

docs/hub/audit-logs.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Audit Logs
22

3-
<Tip warning={true}>
4-
This feature is part of the <a href="https://huggingface.co/enterprise">Team & Enterprise</a> plans.
5-
</Tip>
3+
> [!WARNING]
4+
> This feature is part of the <a href="https://huggingface.co/enterprise">Team & Enterprise</a> plans.
65
76
Audit Logs enable organization admins to easily review actions taken by members, including organization membership, repository settings and billing changes.
87

docs/hub/datasets-duckdb-combine-and-export.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,10 @@ SELECT COUNT(*) FROM 'output.parquet';
8484

8585
```
8686
87-
<Tip>
88-
89-
You can also export to [CSV](https://duckdb.org/docs/guides/file_formats/csv_export), [Excel](https://duckdb.org/docs/guides/file_formats/excel_export
90-
) and [JSON](https://duckdb.org/docs/guides/file_formats/json_export
91-
) formats.
92-
93-
</Tip>
87+
> [!TIP]
88+
> You can also export to [CSV](https://duckdb.org/docs/guides/file_formats/csv_export), [Excel](https://duckdb.org/docs/guides/file_formats/excel_export
89+
> ) and [JSON](https://duckdb.org/docs/guides/file_formats/json_export
90+
> ) formats.
9491
9592
Finally, let's push the resulting dataset to the Hub. You can use the Hub UI, the `huggingface_hub` client library and more to upload your Parquet file, see more information [here](./datasets-adding).
9693

docs/hub/datasets-duckdb-sql.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,5 @@ Finally, lets highlight some of the DuckDB functions used in this section:
152152
- `regexp_replace`, if the string contains the regexp pattern, replaces the matching part with replacement.
153153
- `LENGTH`, gets the number of characters in the string.
154154
155-
<Tip>
156-
157-
There are plenty of useful functions available in DuckDB's [SQL functions overview](https://duckdb.org/docs/sql/functions/overview). The best part is that you can use them directly on Hugging Face datasets.
158-
159-
</Tip>
155+
> [!TIP]
156+
> There are plenty of useful functions available in DuckDB's [SQL functions overview](https://duckdb.org/docs/sql/functions/overview). The best part is that you can use them directly on Hugging Face datasets.

docs/hub/datasets-duckdb.md

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ You can use the Hugging Face paths (`hf://`) to access data on the Hub:
1010
The [DuckDB CLI](https://duckdb.org/docs/api/cli/overview.html) (Command Line Interface) is a single, dependency-free executable.
1111
There are also other APIs available for running DuckDB, including Python, C++, Go, Java, Rust, and more. For additional details, visit their [clients](https://duckdb.org/docs/api/overview.html) page.
1212

13-
<Tip>
14-
15-
For installation details, visit the [installation page](https://duckdb.org/docs/installation).
16-
17-
</Tip>
13+
> [!TIP]
14+
> For installation details, visit the [installation page](https://duckdb.org/docs/installation).
1815
1916
Starting from version `v0.10.3`, the DuckDB CLI includes native support for accessing datasets on the Hugging Face Hub via URLs with the `hf://` scheme. Here are some features you can leverage with this powerful tool:
2017

@@ -45,23 +42,20 @@ hf://datasets/{my-username}/{my-dataset}/{path_to_file}
4542
- **path_to_parquet_file**, the parquet file path which supports glob patterns, e.g `**/*.parquet`, to query all parquet files
4643

4744

48-
<Tip>
49-
50-
You can query auto-converted Parquet files using the @~parquet branch, which corresponds to the `refs/convert/parquet` revision. For more details, refer to the documentation at https://huggingface.co/docs/datasets-server/en/parquet#conversion-to-parquet.
51-
52-
To reference the `refs/convert/parquet` revision of a dataset, use the following syntax:
53-
54-
```plaintext
55-
hf://datasets/{my-username}/{my-dataset}@~parquet/{path_to_file}
56-
```
57-
58-
Here is a sample URL following the above syntax:
59-
60-
```plaintext
61-
hf://datasets/ibm/duorc@~parquet/ParaphraseRC/test/0000.parquet
62-
```
63-
64-
</Tip>
45+
> [!TIP]
46+
> You can query auto-converted Parquet files using the @~parquet branch, which corresponds to the `refs/convert/parquet` revision. For more details, refer to the documentation at https://huggingface.co/docs/datasets-server/en/parquet#conversion-to-parquet.
47+
>
48+
> To reference the `refs/convert/parquet` revision of a dataset, use the following syntax:
49+
>
50+
> ```plaintext
51+
> hf://datasets/{my-username}/{my-dataset}@~parquet/{path_to_file}
52+
> ```
53+
>
54+
> Here is a sample URL following the above syntax:
55+
>
56+
> ```plaintext
57+
> hf://datasets/ibm/duorc@~parquet/ParaphraseRC/test/0000.parquet
58+
> ```
6559
6660
Let's start with a quick demo to query all the rows of a dataset:
6761

docs/hub/datasets-gated.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,8 @@ By clicking on **Agree**, you agree to share your username and email address wit
147147

148148
Once the access request is sent, there are two possibilities. If the approval mechanism is automatic, you immediately get access to the dataset files. Otherwise, the requests have to be approved manually by the authors, which can take more time.
149149

150-
<Tip warning={true}>
151-
152-
The dataset authors have complete control over dataset access. In particular, they can decide at any time to block your access to the dataset without prior notice, regardless of approval mechanism or if your request has already been approved.
153-
154-
</Tip>
150+
> [!WARNING]
151+
> The dataset authors have complete control over dataset access. In particular, they can decide at any time to block your access to the dataset without prior notice, regardless of approval mechanism or if your request has already been approved.
155152
156153
### Download files
157154

docs/hub/datasets-manual-configuration.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,8 @@ configs:
7373
---
7474
```
7575

76-
<Tip warning={true}>
77-
78-
Note that `config_name` field is required even if you have a single subset.
79-
80-
</Tip>
76+
> [!WARNING]
77+
> Note that `config_name` field is required even if you have a single subset.
8178
8279
## Multiple Subsets
8380

@@ -105,19 +102,16 @@ configs:
105102

106103
Note that the order of subsets shown in the viewer is the default one first, then alphabetical.
107104

108-
<Tip>
109-
110-
You can set a default subset using `default: true`
111-
112-
```yaml
113-
- config_name: main_data
114-
data_files: "main_data.csv"
115-
default: true
116-
```
117-
118-
This is useful to set which subset the Dataset Viewer shows first, and which subset data libraries load by default.
119-
120-
</Tip>
105+
> [!TIP]
106+
> You can set a default subset using `default: true`
107+
>
108+
> ```yaml
109+
> - config_name: main_data
110+
> data_files: "main_data.csv"
111+
> default: true
112+
> ```
113+
>
114+
> This is useful to set which subset the Dataset Viewer shows first, and which subset data libraries load by default.
121115
122116
123117
## Builder parameters

0 commit comments

Comments
 (0)