Skip to content

Commit 2c00e64

Browse files
authored
Merge pull request #155 from tidepool-org/alex-back-3631-redocly
[BACK-3631] Migrate to redocly
2 parents b1f98ed + 3314d8b commit 2c00e64

File tree

109 files changed

+338
-737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+338
-737
lines changed

.markdownlint.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ MD013: false
66

77
# MD033/no-inline-html - Inline HTML
88
MD033:
9-
allowed_elements: [ table, colgroup, col, thead, tbody, tr, th, td ]
9+
allowed_elements: [table, colgroup, col, thead, tbody, tr, th, td]
10+
11+
# MD059/Link text should be descriptive
12+
MD059: false

Makefile

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,15 @@ NPM_TOOLS = \
130130
$(NPM_BIN)/redocly \
131131
$(NPM_BIN)/spectral \
132132
$(NPM_BIN)/stoplight \
133-
$(NPM_BIN)/swagger-cli
134133

135-
# TODO: update markdown-link-check version. Right now there's a bug in
136-
# 3.12.x. 3.11.2 is the latest version before 3.12.x. See
137-
# https://github.com/tcort/markdown-link-check/issues/304
138134
NPM_PKG_SPECS = \
139-
@apidevtools/swagger-cli@^4.0.4 \
140-
@openapi-contrib/json-schema-to-openapi-schema@^2.2.5 \
141-
@redocly/cli@^1.0.0-rc.3 \
142-
@stoplight/cli@^6.0.1280 \
143-
@stoplight/spectral-cli@^6.8.0 \
144-
markdown-link-check@3.11.2 \
145-
markdownlint-cli@^0.33.0 \
146-
openapi-merge-cli@1.3.1
135+
@openapi-contrib/json-schema-to-openapi-schema@^3.0.3 \
136+
@redocly/cli@1.34.3 \
137+
@stoplight/cli@^6.0.2382 \
138+
@stoplight/spectral-cli@^6.15.0 \
139+
markdown-link-check@3.13.7 \
140+
markdownlint-cli@^0.45.0 \
141+
openapi-merge-cli@1.3.2
147142

148143
.PHONY: install_npm_pkgs
149144
install_npm_pkgs:

docs/quick-start/fetching-device-data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ You can narrow the fetch query by specifying a type, sub-type and/or date query
4343
<!-- title: Query Parameters -->
4444

4545
| Parameter | Type | Effect | Example
46-
| --- | --- | --- | --- |
46+
| --- | --- | --- | ---
4747
| Device ID | String | Only objects with a device ID field matching the specified device ID param will be returned. | E.g. `/data/userid?deviceId=abcdef0123456789`
4848
| End date | String (in ISO-8601 date/time format) | Only objects with time field less than or equal to end date will be returned. | E.g. `?endDate=2015-10-10T15:00:00.000Z`
4949
| Latest data | Boolean | Returns only the most recent results for each type matching the results filtered by the other query parameters. | All types: `?latest=true` or single type: `?latest=true&type=cbg`
@@ -57,7 +57,7 @@ In addition, there are several “special” parameters that have an effect on t
5757
<!-- title: Additional Query Parameters -->
5858

5959
| Parameter | Type | Effect | Example
60-
| --- | --- | --- | --- |
60+
| --- | --- | --- | ---
6161
| Carelink | Boolean | Return data from the now-deprecated CareLink import, unless data for the same time period has been uploaded using the Uploader (the device manufacturers field contains the string Medtronic). | E.g. `/data/userid?carelink=true`
6262
| Dexcom | Boolean | Return CGM data from *only* the Dexcom API, even if other CGM data exists from other sources. | E.g. `/data/userid?dexcom=true`
6363
| Medtronic | Boolean | Return CGM, Basal and Bolus data from Medtronic Uploads, provided that data exists after `2017-09-01`. Unless data from a Medtronic device has been uploaded by Loop via HealthKit (`origin.payload.device.manufacturer` is Medtronic), and that data exists after `2017-09-01`. | E.g. `/data/userid?medtronic=true`
@@ -99,7 +99,7 @@ So, you have three time ranges that apply here:
9999
<!-- title: Time Ranges -->
100100

101101
| Start Time | End Time | CGM Data Returned
102-
| --- | --- | --- |
102+
| --- | --- | ---
103103
| Beginning of Time | Dexcom API Earliest Data Time | All CGM Data
104104
| Dexcom API Earliest Data Time | Dexcom API Latest Data Time | Only Dexcom API CGM Data
105105
| Dexcom API Latest Data Time | End of Time | All CGM data

docs/summary-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
---
1818

19-
# Overview
19+
## Overview
2020

2121
Tidepool Platform automatically calculates several summary statistics for each user as they upload diabetes data into their account. Currently supported data types are CGM and BGM, from [Continuous Glucose Monitors][cgm] and [Blood Glucose Meters][bgm], respectively. Our plan is to add insulin delivery summaries as well in the future.
2222

@@ -51,7 +51,7 @@ sequenceDiagram
5151
Platform->>Clinic: Summary available via patient list
5252
```
5353

54-
# Calculation
54+
## Calculation
5555

5656
The summary calculation is done in batches of up to 250 most out-of-date user accounts, up to 4 batches in one iteration, where each iteration may begin every 30 seconds. Thus, each calculation iteration may update up to 1,000 accounts. The calculation for each user proceeds as shown in the diagram below:
5757

reference/auth.v1.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ paths:
6262
summary: Refresh Session Token
6363
description: |-
6464
**This API is deprecated and will be removed by end of 2023.**
65-
Refreshes an existing session token.
65+
Refreshes an existing session token.
6666
responses:
6767
'200':
6868
$ref: '#/components/responses/TokenData'
@@ -405,7 +405,7 @@ paths:
405405
get:
406406
operationId: VerifyDeviceToken
407407
summary: Verify Device Token
408-
description: 'Checks the validity of Apple''s DeviceCheck token by calling Apple''s server to verify it. For more details, see Apple''s [developer documentation](https://developer.apple.com/documentation/devicecheck).'
408+
description: "Checks the validity of Apple's DeviceCheck token by calling Apple's server to verify it. For more details, see Apple's [developer documentation](https://developer.apple.com/documentation/devicecheck)."
409409
requestBody:
410410
$ref: '#/components/requestBodies/VerifyDeviceToken'
411411
responses:
@@ -547,7 +547,7 @@ paths:
547547
parameters:
548548
- $ref: ./common/parameters/paginationpage.v1.yaml
549549
- $ref: ./common/parameters/paginationsize.v1.yaml
550-
- $ref: ./auth/parameters/providers/name.v1.yaml
550+
- $ref: ./auth/parameters/providers/providerName.v1.yaml
551551
- $ref: ./auth/parameters/providers/provider-type.v1.yaml
552552
responses:
553553
'200':

reference/auth/models/providers/newsession.v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: >-
44
type: object
55
properties:
66
name:
7-
$ref: './name.v1.yaml'
7+
$ref: './providerName.v1.yaml'
88
type:
99
$ref: './provider-type.v1.yaml'
1010
oauthToken:
File renamed without changes.

reference/auth/models/providers/session.v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ properties:
1010
modifiedTime:
1111
$ref: '../../../common/models/datetime.v1.yaml'
1212
name:
13-
$ref: './name.v1.yaml'
13+
$ref: './providerName.v1.yaml'
1414
oauthToken:
1515
$ref: './oauthtoken.v1.yaml'
1616
type:

reference/auth/parameters/providers/name.v1.yaml renamed to reference/auth/parameters/providers/providerName.v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ name: name
44
in: query
55
required: false
66
schema:
7-
$ref: '../../models/providers/name.v1.yaml'
7+
$ref: '../../models/providers/providerName.v1.yaml'

0 commit comments

Comments
 (0)