Skip to content

Commit 32ba6c2

Browse files
committed
add new lines to end of files and modify python script to do the same
1 parent 5827386 commit 32ba6c2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/en/chdb/guides/table_of_contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
"title": "Using a clickhouse-local database",
2828
"slug": "/en/chdb/guides/clickhouse-local"
2929
}
30-
]
30+
]

docs/en/cloud/changelogs/table_of_contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"title": "v24.8 Changelog for Cloud",
1616
"slug": "/en/changelogs/24.8"
1717
}
18-
]
18+
]

scripts/autogenerate_table_of_contents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ def main():
3333
json_array.append(result)
3434

3535
json_array = sorted(json_array, key=lambda x: x["title"])
36-
36+
json_array.append("\n")
3737
with open("table_of_contents.json", "w") as f:
3838
json.dump(json_array, f, indent=4)
39-
39+
f.write('\n')
4040

4141
if __name__ == "__main__":
4242
main()

0 commit comments

Comments
 (0)