Skip to content

Commit

Permalink
docs: correctly generate documentation
Browse files Browse the repository at this point in the history
* INSPIR-3563

Signed-off-by: Micha Moskovic <michamos@gmail.com>
  • Loading branch information
michamos committed May 27, 2020
1 parent 5659e8a commit f12a96a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 58 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _generate_schemas_doc():
schemas_folder = os.path.join(
os.pardir,
'inspire_schemas',
'unresolved_records',
'records',
)
rst_output = 'schemas'
run_parser(schemas_folder, rst_output, yaml_only=True)
Expand Down
25 changes: 0 additions & 25 deletions inspire_schemas/unresolved_records/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions inspire_schemas/unresolved_records/elements/__init__.py

This file was deleted.

8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ def _yaml2json(yaml_file, json_file):

path = os.path.dirname(yaml_file)
resolved_json_object = _resolve_json_schema(data, path)
shutil.copy(
json_file, json_file.replace('records', 'unresolved_records')
)
shutil.copy(
yaml_file, yaml_file.replace('records', 'unresolved_records')
)
with open(json_file, 'w') as json_fd:
json.dump(
resolved_json_object,
Expand Down Expand Up @@ -155,7 +149,7 @@ def _generate_json_schemas():
]

docs_require = [
'jsonschema2rst>=0.0.8',
'jsonschema2rst>=0.1',
'Sphinx',
]

Expand Down

0 comments on commit f12a96a

Please sign in to comment.