You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: improve backend docs autogenerated marker line
Replace custom rem hugo shortcode template with HTML comment. HTML comments are now
allowed in Hugo without enabling unsafe HTML parsing.
Improve the text in the comment: Remove unnecessary quoting, and avoid impression that
make backenddocs has to be run and results committed, since we have a lint check which
will then report error because we want to prevent manual changes in autogenerated sections.
Disable the markdownlint rule line-length on the autogenerated marker line.
Make the autogenerated marker detection a bit more robust.
See #8942 for more details.
start_full= (start+"\"- DO NOT EDIT - instead edit fs.RegInfo in backend/%s/%s.go then run make backenddocs\""+end+"\n") % (backend, backend)
49
-
out_file.write(start_full)
50
+
line_marker_start= (line_marker_start_prefix+"- DO NOT EDIT - instead edit fs.RegInfo in backend/%s/%s.go and run make backenddocs to verify"+end) % (backend, backend)
Copy file name to clipboardExpand all lines: docs/content/alias.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ Copy another local directory to the alias directory called source
104
104
rclone copy /home/source remote:source
105
105
```
106
106
107
-
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/alias/alias.go then run make backenddocs" >}}
107
+
<!--autogenerated options start - DO NOT EDIT - instead edit fs.RegInfo in backend/alias/alias.go and run make backenddocs to verify --><!-- markdownlint-disable-line line-length -->
108
108
### Standard options
109
109
110
110
Here are the Standard options specific to alias (Alias for an existing remote).
Copy file name to clipboardExpand all lines: docs/content/archive.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,7 +236,8 @@ It would be possible to add ISO support fairly easily as the library we use ([go
236
236
237
237
It would be possible to add write support, but this would only be for creating new archives, not for updating existing archives.
238
238
239
-
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/archive/archive.go then run make backenddocs" >}}
239
+
<!-- autogenerated options start - DO NOT EDIT - instead edit fs.RegInfo in backend/archive/archive.go and run make backenddocs to verify --><!-- markdownlint-disable-line line-length -->
240
+
240
241
### Standard options
241
242
242
243
Here are the Standard options specific to archive (Read archives).
@@ -283,4 +284,4 @@ Any metadata supported by the underlying remote is read and written.
283
284
284
285
See the [metadata](/docs/#metadata) docs for more info.
Copy file name to clipboardExpand all lines: docs/content/azureblob.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -368,7 +368,7 @@ If you want to access resources with public anonymous access then set
368
368
rclone lsf :azureblob,account=ACCOUNT:CONTAINER
369
369
```
370
370
371
-
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/azureblob/azureblob.go then run make backenddocs" >}}
371
+
<!--autogenerated options start - DO NOT EDIT - instead edit fs.RegInfo in backend/azureblob/azureblob.go and run make backenddocs to verify --><!-- markdownlint-disable-line line-length -->
372
372
### Standard options
373
373
374
374
Here are the Standard options specific to azureblob (Microsoft Azure Blob Storage).
Copy file name to clipboardExpand all lines: docs/content/azurefiles.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,7 @@ Setting this can be useful if you wish to use the `az` CLI on a host with
348
348
a System Managed Identity that you do not want to use.
349
349
Don't set `env_auth` at the same time.
350
350
351
-
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/azurefiles/azurefiles.go then run make backenddocs" >}}
351
+
<!--autogenerated options start - DO NOT EDIT - instead edit fs.RegInfo in backend/azurefiles/azurefiles.go and run make backenddocs to verify --><!-- markdownlint-disable-line line-length -->
352
352
### Standard options
353
353
354
354
Here are the Standard options specific to azurefiles (Microsoft Azure Files).
0 commit comments