-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowed title as props for <details>
#3388
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,7 +117,7 @@ pipeline stages, such as the <abbr>DVC project</abbr> created for the | |
[Get Started](/doc/start). Then we can see what `dvc fetch` does in different | ||
scenarios. | ||
|
||
<details> | ||
<details title="Click and expand to set up the example"> | ||
|
||
### Click and expand to set up the project | ||
Comment on lines
-120
to
122
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,9 +79,7 @@ $ wget https://example.com/path/to/data.csv | |
|
||
## Examples | ||
|
||
<details> | ||
|
||
### Amazon S3 | ||
<details title="Amazon S3"> | ||
|
||
This command will copy an S3 object into the current working directory with the | ||
same file name: | ||
|
@@ -106,9 +104,7 @@ configuration, you can use the parameters described in `dvc remote modify`. | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### Google Cloud Storage | ||
<details title="Google Cloud Storage"> | ||
|
||
```dvc | ||
$ dvc get-url gs://bucket/path file | ||
|
@@ -118,9 +114,7 @@ The above command downloads the `/path` file (or directory) into `./file`. | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### SSH | ||
<details title="SSH"> | ||
|
||
```dvc | ||
$ dvc get-url ssh://[email protected]/path/to/data | ||
|
@@ -131,19 +125,15 @@ directory). | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### HDFS | ||
<details title="HDFS"> | ||
|
||
```dvc | ||
$ dvc get-url hdfs://[email protected]/path/to/file | ||
``` | ||
|
||
</details> | ||
|
||
<details> | ||
|
||
### HTTP | ||
<details title="HTTP"> | ||
|
||
> Both HTTP and HTTPS protocols are supported. | ||
|
||
|
@@ -153,19 +143,15 @@ $ dvc get-url https://example.com/path/to/file | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### WebHDFS | ||
<details title="WebHDFS"> | ||
|
||
```dvc | ||
$ dvc get-url webhdfs://[email protected]/path/to/file | ||
``` | ||
|
||
</details> | ||
|
||
<details> | ||
|
||
### local | ||
<details title="Local file system paths"> | ||
|
||
```dvc | ||
$ dvc get-url /local/path/to/data | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,9 +168,7 @@ produces a regular stage in `dvc.yaml`. | |
To illustrate these examples we will be using the <abbr>project</abbr> explained | ||
in the [Get Started](/doc/start). | ||
|
||
<details> | ||
|
||
### Click and expand to set up example | ||
<details title="Click and expand to set up example"> | ||
Comment on lines
-173
to
+171
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK just noticed we're postponing this. Just a note that per #3391 these titles should no longer start in "Click for" nor end in "example" (same throughout docs codebase). Thanks |
||
|
||
Start by cloning our example repo if you don't already have it. Then move into | ||
the repo and checkout the | ||
|
@@ -285,9 +283,7 @@ $ unzip code.zip | |
$ rm -f code.zip | ||
``` | ||
|
||
<details> | ||
|
||
### Click and expand to set up the environment | ||
<details title="Click and expand to set up the environment"> | ||
|
||
Let's install the requirements. But before we do that, we **strongly** recommend | ||
creating a | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,9 +88,7 @@ DVC will determine the [type of remote](#supported-storage-types) based on the | |
|
||
The following are the types of remote storage (protocols) supported: | ||
|
||
<details> | ||
|
||
### Amazon S3 | ||
<details title="Amazon S3"> | ||
|
||
> 💡 Before adding an S3 remote, be sure to | ||
> [Create a Bucket](https://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html). | ||
|
@@ -113,9 +111,7 @@ methods that are performed by DVC (`list_objects_v2` or `list_objects`, | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### S3-compatible storage | ||
<details title="S3-compatible storage"> | ||
|
||
For object storage that supports an S3-compatible API (e.g. | ||
[Minio](https://min.io/), | ||
|
@@ -141,9 +137,7 @@ they're effective depends on each storage platform. | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### Microsoft Azure Blob Storage | ||
<details title="Microsoft Azure Blob Storage"> | ||
|
||
```dvc | ||
$ dvc remote add -d myremote azure://mycontainer/path | ||
|
@@ -163,9 +157,7 @@ To use a custom authentication method, use the parameters described in | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### Google Drive | ||
<details title="Google Drive"> | ||
|
||
To start using a GDrive remote, first add it with a | ||
[valid URL format](/doc/user-guide/setup-google-drive-remote#url-format). Then | ||
|
@@ -197,9 +189,7 @@ modified. | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### Google Cloud Storage | ||
<details title="Google Cloud Storage"> | ||
|
||
> 💡 Before adding a GC Storage remote, be sure to | ||
> [Create a storage bucket](https://cloud.google.com/storage/docs/creating-buckets). | ||
|
@@ -219,9 +209,7 @@ parameters, use the parameters described in `dvc remote modify`. | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### Aliyun OSS | ||
<details title="Aliyun OSS"> | ||
|
||
First you need to set up OSS storage on Aliyun Cloud. Then, use an S3 style URL | ||
for OSS storage, and configure the | ||
|
@@ -261,9 +249,7 @@ $ export OSS_ACCESS_KEY_SECRET='mysecret' | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### SSH | ||
<details title="SSH"> | ||
|
||
```dvc | ||
$ dvc remote add -d myremote ssh://[email protected]/path | ||
|
@@ -279,9 +265,7 @@ Please check that you are able to connect both ways with tools like `ssh` and | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### HDFS | ||
<details title="HDFS"> | ||
|
||
⚠️ Using HDFS with a Hadoop cluster might require additional setup. Our | ||
assumption is that the client is set up to use it. Specifically, [`libhdfs`] | ||
|
@@ -301,9 +285,7 @@ $ dvc remote add -d myremote hdfs://[email protected]/path | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### WebHDFS | ||
<details title="WebHDFS"> | ||
|
||
⚠️ Using WebHDFS requires to enable REST API access in the cluster: set the | ||
config property `dfs.webhdfs.enabled` to `true` in `hdfs-site.xml`. | ||
|
@@ -329,9 +311,7 @@ active kerberos session. | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### HTTP | ||
<details title="HTTP"> | ||
|
||
```dvc | ||
$ dvc remote add -d myremote https://example.com/path | ||
|
@@ -341,9 +321,7 @@ $ dvc remote add -d myremote https://example.com/path | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### WebDAV | ||
<details title="WebDAV"> | ||
|
||
```dvc | ||
$ dvc remote add -d myremote \ | ||
|
@@ -362,9 +340,7 @@ $ dvc remote add -d myremote \ | |
|
||
</details> | ||
|
||
<details> | ||
|
||
### local remote | ||
<details title="Local file system paths"> | ||
|
||
A "local remote" is a directory in the machine's file system. Not to be confused | ||
with the `--local` option of `dvc remote` (and other config) commands! | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,9 +74,7 @@ manually. | |
|
||
## Example: Add a default local remote | ||
|
||
<details> | ||
|
||
### What is a "local remote" ? | ||
<details title=' What is a "local remote" ?'> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While it looks alright since the result is trimmed, we should trim out the excess spaces here. |
||
|
||
While the term may seem contradictory, it doesn't have to be. The "local" part | ||
refers to the type of location where the storage is: another directory in the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this PR update all existing
<details>
blocks? Thanks