Skip to content

Commit 444b0e4

Browse files
author
gdj0nes
committed
CHG: naming
1 parent 8d5c549 commit 444b0e4

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

examples/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11

2-
3-
4-
5-
convert:
6-
python scripts/tutorials.py --config-path 'scripts/config.json'
2+
upload:
3+
python scripts/upload_documentation.py --config-path 'scripts/config.json'

examples/scripts/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
"dir": "annotation_import",
19-
"title": "Annotation import",
19+
"title": "Annotation import (Ground Truth & MAL)",
2020
"order": 3
2121
},
2222
{

examples/scripts/tutorials.py renamed to examples/scripts/upload_documentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def upload_doc(path, section):
2828

2929
payload = {
3030
"hidden": True,
31-
"title": f'{section["slug"]}-' + title.replace(' ', '-'),
31+
"title": f'{section["slug"]}-' + title.replace(' ', '-').replace("(", ''),
3232
"category": CATEGORY_ID,
3333
"parentDoc": section['id'],
3434
"body": body
@@ -52,7 +52,7 @@ def make_sections(sections):
5252
payload = {
5353
"hidden": True,
5454
"order": section['order'],
55-
"title": section['title'].replace(' ', '-') + '-nb-section',
55+
"title": 'section-' + section['dir'] + '-notebooks',
5656
"category": CATEGORY_ID
5757
}
5858
headers = {

0 commit comments

Comments
 (0)