Skip to content

Commit 8d7e004

Browse files
authored
Merge pull request #167 from danyeaw/fix-files-examples
Fix paths in files config examples
2 parents f74ec2a + 84d8a44 commit 8d7e004

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: docs/user-guide/configuration.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ The following JSON and TOML are equivalent:
131131
{
132132
"files": {
133133
"https://example.com/data.csv": "./data.csv",
134-
"/code.py": "./subdir/code.py"
134+
"./code.py": "./subdir/code.py"
135135
}
136136
}
137137
```
138138

139139
```toml title="Fetch files onto the filesystem with TOML."
140140
[files]
141141
"https://example.com/data.csv" = "./data.csv"
142-
"/code.py" = "./subdir/code.py"
142+
"./code.py" = "./subdir/code.py"
143143
```
144144

145145
If you make the target an empty string, the final "filename" part of the source
@@ -151,15 +151,15 @@ examples could be equivalently re-written as:
151151
{
152152
"files": {
153153
"https://example.com/data.csv": "",
154-
... etc ...
154+
"./code.py": ""
155155
}
156156
}
157157
```
158158

159159
```toml title="TOML implied filename in the root directory."
160160
[files]
161161
"https://example.com/data.csv" = ""
162-
... etc ...
162+
"./code.py" = ""
163163
```
164164

165165
If the source part of the configuration is either a `.zip` or `.tar.gz` file

0 commit comments

Comments
 (0)