Skip to content

Commit 8b3c6ec

Browse files
authored
Merge pull request #108 from SettleAPI/stage
Stage
2 parents 0a4a0af + ddd1f6b commit 8b3c6ec

File tree

21 files changed

+309
-180
lines changed

21 files changed

+309
-180
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ At its core, **Netlify CMS** is an open-source React app that acts as a wrapper
4343

4444
1. ### Clone this repo
4545

46-
`git clone https://github.com/SettleForDevelopers/Developer-Docs.git`
46+
`git clone https://github.com/SettleAPI/settle-developer-docs.git`
4747

4848
2. ### Navigate into your newly created Settle API docs directory
4949

50-
`cd settle-api-docs`
50+
`cd settle-developer-docs`
5151

5252
3. ### Install dependencies
5353

docs/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ module.exports = (ctx) => ({
202202
'.vuepress/nav/top/mainNav.js',
203203
// Sidebars
204204
'.vuepress/nav/sidebars.js',
205+
'.vuepress/nav/left/guides.js',
205206
'.vuepress/nav/left/rest/rest.js',
206207
'.vuepress/nav/left/rest/v1/summary.js',
207208
'.vuepress/nav/left/rest/v1/resources.js',

docs/.vuepress/enhanceApp.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
module.exports = () => {
2-
// console.log('enhancedApp.js');
3-
}
1+

docs/.vuepress/nav/left/guides.js

Lines changed: 43 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,49 @@
1-
const introduction = require('./guides/introduction.js');
1+
// const introduction = require('./guides/introduction.js');
22
const quickstarts = require('./guides/quickstarts.js');
33
const tutorials = require('./guides/tutorials.js');
44
const best_practices = require('./guides/best-practices.js');
55

6-
76
const overview = {
8-
title: 'Overview',
9-
collapsable: false,
10-
sidebarDepth: 0,
11-
children: [
12-
['/api/guides/', 'Settle API Overview'],
13-
],
14-
}
15-
16-
module.exports = [
17-
overview,
18-
introduction,
19-
quickstarts,
20-
tutorials,
21-
best_practices,
22-
]
7+
title: 'Overview',
8+
collapsable: false,
9+
sidebarDepth: 0,
10+
children: [['/api/guides/', 'Settle API Overview']],
11+
};
2312

13+
/**
14+
* @todo #96 @rexgnu Edit the Introductions Sidabar here. Documents are found in '/docs/api/guides/introduction'.
15+
*/
16+
const introduction = {
17+
title: 'Introduction', // required
18+
collapsable: false,
19+
sidebarDepth: 0,
20+
children: [
21+
['/api/guides/introduction/a-note-on-settle-api-users.md', 'A Note on Settle API Users'],
22+
['/api/guides/introduction/attachments.md','Attachments'],
23+
['/api/guides/introduction/authentication.md','Authentication'],
24+
['/api/guides/introduction/callbacks.md','Callbacks'],
25+
['/api/guides/introduction/error-responses.md','Error Responses'],
26+
['/api/guides/introduction/interacting.md','Interacting'],
27+
['/api/guides/introduction/ledgers.md','Ledgers'],
28+
['/api/guides/introduction/media-type.md','Media Types'],
29+
['/api/guides/introduction/payment-flows.md','Payment Flows'],
30+
['/api/guides/introduction/permission-requests.md','Permission Requests'],
31+
['/api/guides/introduction/qr-acceptance.md','QR Acceptance'],
32+
['/api/guides/introduction/resiliency.md','Resiliency'],
33+
['/api/guides/introduction/sandbox-environment.md','Sandbox Enviroment #1'],
34+
['/api/guides/introduction/settle-sandbox-environment.md',' Sandbox Enviroment #2'],
35+
['/api/guides/introduction/settlements.md','Settlements'],
36+
['/api/guides/introduction/versioning.md','Verioning'],
37+
],
38+
};
2439

25-
// function getIntroductionSidebar() {
26-
// return [
27-
// '/introduction/',
28-
// '/introduction/interacting',
29-
// '/introduction/callbacks',
30-
// '/introduction/error-responses',
31-
// '/introduction/media-type',
32-
// '/introduction/a-note-on-settle-api-users',
33-
// '/introduction/versioning',
34-
// ['/introduction/resiliency', 'Resiliency'],
35-
// ];
36-
// }
40+
module.exports = [
41+
overview,
42+
introduction,
43+
// quickstarts,
44+
tutorials,
45+
// best_practices,
46+
];
3747

3848
// function getGuidesSidebar() {
3949
// return [
@@ -46,4 +56,7 @@ module.exports = [
4656
// '/guides/permission-requests',
4757
// '/guides/qr-acceptance',
4858
// ];
49-
// }
59+
// }
60+
61+
62+

docs/.vuepress/nav/left/rest/v1/reference/merchant.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function merchant_apiKeys() {
66
children: [
77
['/api/reference/rest/v1/merchant.apiKeys/', 'Overview'],
88
['/api/reference/rest/v1/merchant.apiKeys/create', 'create'],
9+
['/api/reference/rest/v1/merchant.apiKeys/list', 'list'],
910
['/api/reference/rest/v1/merchant.apiKeys/get', 'get'],
1011
['/api/reference/rest/v1/merchant.apiKeys/update', 'update'],
1112
['/api/reference/rest/v1/merchant.apiKeys/delete', 'delete'],

docs/.vuepress/theme/components/Models.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<!-- <a :href="'#' + type.title" class="header-anchor">#</a> -->
2020
{{ type.title }}
2121
</h2>
22-
<p v-if="type.properties && type.description">
22+
<p v-if="type.properties || type.description">
2323
{{ type.description }}
2424
</p>
2525
<div v-if="type.properties" class="modelEntry">
@@ -112,7 +112,7 @@
112112
<p v-if="property.description">{{ property.description }}</p>
113113
</div>
114114
</div>
115-
<div v-else>
115+
<div v-if="!type.description && !type.properties">
116116
<p>
117117
No info available for <strong>{{ type.title }}</strong> at of this
118118
moment. Please
@@ -187,7 +187,7 @@ export default {
187187
} else if (site.pages[0].models) {
188188
data.types = site.pages[0].models;
189189
} else {
190-
console.warn('Neither page.models or site.pages[0].models found...');
190+
console.warn("Neither page.models or site.pages[0].models found...");
191191
}
192192
193193
// console.log(data.types);

docs/.vuepress/theme/components/PageReference.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,10 @@
6868
The above services has the following endpoints (resources), and all
6969
methods below are relative to its parent method (service endpoint).
7070
</p>
71-
<div class="md-api_reference_FiraCode">
71+
<div class="md-api_reference_FiraCode" v-if="!resource.internal">
7272
<!-- REST REsources -->
7373

74-
<section
75-
v-if="!resource.internal"
76-
v-for="(resource, index) in $data.resource"
77-
:key="index"
78-
>
74+
<section v-for="(resource, index) in $data.resource" :key="index">
7975
<h3 :id="'v' + resource.version + '-' + resource.headerAnchor">
8076
<router-link
8177
:to="'#v' + resource.version + '-' + resource.headerAnchor"

0 commit comments

Comments
 (0)