Skip to content

Commit 7e84c28

Browse files
committed
remove the comment from the template and add it to the generation script
1 parent c8aa182 commit 7e84c28

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// This is an automatically generated file. Do not edit it directly.
2-
// It is generated from the templates/gql-index-template.adoc file and should be edited there. //// //// //// //// //// ////
1+
// This is an automatically generated file. Do not edit it directly. It is generated from the templates/gql-index-template.adoc file and should be edited there.
2+
33

44
:description: This section describes the GQLSTATUS errors that Neo4j can return, grouped by category, and an example of when they can occur.
55

modules/ROOT/templates/gql-index-template.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// This is an automatically generated file. Do not edit it directly.
2-
// It is generated from the templates/gql-index-template.adoc file and should be edited there. //// //// //// //// //// ////
1+
32

43
:description: This section describes the GQLSTATUS errors that Neo4j can return, grouped by category, and an example of when they can occur.
54

scripts/generate-gql-error-index-from-template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def generate_from_template(template_file, errors_dir, output_file, include_descr
140140

141141
# Write the result to the output file
142142
with open(output_file, 'w') as f:
143+
f.write("// This is an automatically generated file. Do not edit it directly. It is generated from the templates/gql-index-template.adoc file and should be edited there.\n")
143144
f.write(template_content)
144145

145146
print(f'Generated index file at: {output_file}')

0 commit comments

Comments
 (0)