From c5e9a062c116485e3a003de7093b574ab7ea14eb Mon Sep 17 00:00:00 2001 From: Matthew Evans <7916000+ml-evs@users.noreply.github.com> Date: Sun, 28 Jul 2024 18:03:29 +0100 Subject: [PATCH] Fix code block formatting --- optimade.rst | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/optimade.rst b/optimade.rst index 7f82dea5..3295671d 100644 --- a/optimade.rst +++ b/optimade.rst @@ -4527,25 +4527,25 @@ The OPTIMADE JSON Lines format then extends these rules with the following conve This leaves the following overall file structure: -``` -
- - - - - -``` +.. code:: jsonc +
+ + + + + + - Information about prefixes and provider fields Example OPTIMADE JSON Lines File ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -```jsonlines -{"x-optimade": {"api_version": "1.2.0"}} -{"meta": {"time_stamp": "2024-07-19T11:47:10Z", "data_returned": 6, "provider": {"name": "Example JSONL", "description": "An example JSONL file.", "prefix": "_exmpl"}}} -{"type": "info", "id": "/", "attributes": {"api_version": "1.2.0", "available_api_versions": ["1.2.0"], "formats": ["json"], "entry_types_by_format": {"json": ["references", "structures"]}, "license": "https://example.com/licenses/example_license.html"} "homepage": "https://example.com", "name": "Example API", "provider": {"description": "A simple example provider", "name": "Example Provider"}}} -{"type": "info", "id": "references", ...} -{"type": "info", "id": "structures", ...} -{"type": "structures", "id": "1", "attributes": {...} -``` +.. code:jsonc + {"x-optimade": {"api_version": "1.2.0"}} + {"meta": {"time_stamp": "2024-07-19T11:47:10Z", "data_returned": 6, "provider": {"name": "Example JSONL", "description": "An example JSONL file.", "prefix": "_exmpl"}}} + {"type": "info", "id": "/", "attributes": {"api_version": "1.2.0", "available_api_versions": ["1.2.0"], "formats": ["json"], "entry_types_by_format": {"json": ["references", "structures"]}, "license": "https://example.com/licenses/example_license.html"} "homepage": "https://example.com", "name": "Example API", "provider": {"description": "A simple example provider", "name": "Example Provider"}}} + {"type": "info", "id": "references", ...} + {"type": "info", "id": "structures", ...} + {"type": "structures", "id": "1", "attributes": {...} +