Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: correctly generate documentation #396

Merged
merged 1 commit into from
May 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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