Skip to content

Commit b3b1b09

Browse files
authored
Generating PDF output using Pandoc (#7)
* - Removed the suppression of ToC pages on gh-pages. - Removed the document ToC to eliminate duplication. * - Update release to v8.5.2 - Update circleCI to use { .Revision } instead instead of { checksum "package.json" } (recommended by Miguel - mojaloop/documentation#135) - Restored ToC in documents - do not want to alter the current document content. * Corrected the internal document ToC navigation for gh-pages. * - generated pdf documents from markdown documents using Pandoc toolset. - update markdown documents not to use <ul> tags. - made other relevant updates to markdown document so that the pdf generation process renders documents in a presentable format. - updated .gitbook.md with instructions to install use Pandoc and related pdf-engine. - version updated to 8.7.0 in package.json. * Version update to 8.7.0 * Create a new folder PDFs under supporting-documents to house pdf documentations.
1 parent a3b0f68 commit b3b1b09

12 files changed

+36
-21
lines changed

.gitbook.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
`npm run gitbook:serve`
1818

19-
## Generate PDF
19+
## Generate PDF - option 1
2020

2121
### Prerequisites
2222

2323
1. Install Calibre: https://calibre-ebook.com/download
2424

25-
2. npm install svgexport -g"
25+
2. npm install svgexport -g
2626

2727
3. Pre-requisites for node-canvas: https://github.com/Automattic/node-canvas/wiki/_pages
2828

@@ -32,13 +32,27 @@
3232

3333
A file `book.pdf` will be generated in the root directory
3434

35-
## Known Issues
35+
### Known Issues
3636

3737
- `npm install` fails for the `gitbook-pdf` dependency. Here is a work-around: https://github.com/GitbookIO/gitbook-pdf/issues/23
3838
- removed `"gitbook-pdf": "^0.0.2",` as a dependency from package.json. Please manually install `gitbook-pdf` until the issue can be resolved
3939
- Export PDF does not contain a
4040

41+
## Generate PDF - option 2
4142

43+
1. Install Pandoc `brew install pandoc`
44+
45+
2. Verify version `pandoc --version` _requires to be vresion 2.0 or higher_.
46+
47+
3. install pdf engine `brew install Caskroom/cask/wkhtmltopdf`. _Version 0.12.4 or higher_.
48+
49+
4. Acquaint yourself with Pandoc `https://pandoc.org/MANUAL.pdf`
50+
51+
Also see https://github.com/mszep/pandoc_resume#requirements
52+
53+
5. Run the following to generate the PDF using html5 output `pandoc -t html5 -s {input} -o {output} --pdf-engine=wkhtmltopdf`
54+
55+
Replace {input} and {output} with the file names.
4256
## Docker
4357

4458
### Build

documents/platform-operating-guideline.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Author: Carol Coye Benson (Glenbrook), Michael Richards (ModusBox)
55
- Date: October 2019
66
- Description:
7+
78
---
89

910
## **About the Mojaloop Community Business Document Project**
@@ -130,18 +131,17 @@ Some rules and operational specifications vary by Use Cases and Secondary Use Ca
130131

131132
The Scheme supports certain Identifiers, or payment addresses, for use in making Transfers. The Identifier identifies the Payee whose Transaction Account is credited for the Transfer. Supported Scheme Identifiers are listed in an Appendix to the Business Rules.
132133

133-
_<ul>For each scheme supported identifier, this document should specify what the identifier is and how it is resolved (how it is determined which Payee DFSP is responsible for the transaction account associated with that identifier.</ul>_
134+
_For each scheme supported identifier, this document should specify what the identifier is and how it is resolved (how it is determined which Payee DFSP is responsible for the transaction account associated with that identifier._
134135

135136
#### 1.4.1 Example: The MSISDN Identifier
136137

137-
_<ul>Each scheme will have its own guidelines for each identifier; the provisions below could vary significantly depending on choices made.</ul>_
138+
_Each scheme will have its own guidelines for each identifier; the provisions below could vary significantly depending on choices made._
138139

139140
- MSISDN's are mobile numbers which are globally unique. MSISDN's are the Transaction Account Identifier for DFPSs who are Mobile Network Operators and who are providing Transaction Accounts to their customers.
140141

141142
- Use of the MSISDN as a Payee Identifier is limited to Transaction Accounts provided by DFSPs who are the Mobile Network Operator responsible for that MSISDN.
142143

143-
_<ul>Note: if MSISDN's are used for other Transaction Accounts, they are
144-
aliases, and a separate protocol for resolving them must be specified.</ul>_
144+
_Note: if MSISDN's are used for other Transaction Accounts, they are aliases, and a separate protocol for resolving them must be specified._
145145

146146
- A Party Request for an MSISDN is resolved by a MSISDN directory service determined by the Scheme. The Scheme may specify directory service maintenance obligations for Mobile Network Operator DFSPs from time to time.
147147

@@ -519,13 +519,13 @@ following sections:_
519519

520520
## 8. Appendix: Scheme Supported Use Cases and System Parameters
521521

522-
_<ul>This is the same table as appears in the Business Rules document, but it has added the systemic codes necessary for the Platform to recognize a transaction as belonging to a given use case or secondary use case. A scheme would only define Secondary Use Cases if it wanted to write rules and/or specify fees that are unique to that Secondary Use Case</ul>_
522+
_This is the same table as appears in the Business Rules document, but it has added the systemic codes necessary for the Platform to recognize a transaction as belonging to a given use case or secondary use case. A scheme would only define Secondary Use Cases if it wanted to write rules and/or specify fees that are unique to that Secondary Use Case_
523523

524-
_<ul>This table is an example of a table of Use Cases and Secondary Use Cases that a scheme might support.</ul>_
524+
_This table is an example of a table of Use Cases and Secondary Use Cases that a scheme might support._
525525

526526
| Use Case Code | Use Case | Secondary User Case | Required Data Elements | Other Methods of Use Case Determination |
527-
| --- | --- | --- | --- | --- |
528-
| 1.0 | P2P | Person to Person | API Setting <br>Scenario=Transfer</br> <br>Initiator = Payer</br> <br>Initiator Type = Consumer</br> <br>Recipient Type = Consumer</br> | |
527+
| :--- | :----- | :--------- | :-------------------------- | :------------------------------------------- |
528+
| 1.0 | P2P | Person to Person | API Setting <br>Scenario=Transfer</br> <br>Initiator = Payer</br> <br>Initiator Type = Consumer</br> <br>Recipient Type = Consumer</br> | |
529529
| 1.1 | P2P | Wallet to wallet | Transaction Account Type for Payer DFSP is Wallet and for Payee DFSP is Wallet |
530530
| 1.2 | P2P | Bank to bank | Transaction Account Type for Payer DFSP is Bank and for Payee DFSP is Wallet |
531531
| 1.3 | P2P | Wallet to bank | Transaction Account Type for Payer DFSP is Wallet and for Payee DFSP is Bank |

documents/scheme-business-rules.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Author: Carol Coye Benson (Glenbrook)
55
- Date: October 2019
66
- Description:
7+
78
---
89

910
## **About the Mojaloop Community Business Document Project**
@@ -352,7 +353,6 @@ Section Headings and bulleted entries underneath section headings are actual pro
352353
- The investigation and report, as well as remedies that may be required will be held confidential to the extent permitted by Applicable Law.
353354

354355
### 8.2 Risk Management Policies
355-
------------------------
356356

357357
<ul><i>This section assumes that the development of risk management policies by the Scheme and its participants will be evolving. This section contemplates that some of these policies will (eventually) be in the Rules; others will not</i></ul>
358358

@@ -436,8 +436,8 @@ Scheme Services include:
436436

437437
<ul><i>A scheme would only define Secondary Use Cases if it wanted to write rules and/or specify fees that are unique to that Secondary Use Case</i></ul>
438438

439-
| | Use Case | Secondary Use Case |
440-
| --- | -------- | ------------------ |
439+
| | Use Case | Secondary Use Case |
440+
| :---: | :--------: | :-------------------------- |
441441
| 1.0 | P2P | Person to Person |
442442
| 1.1 | P2P | Wallet to wallet |
443443
| 1.2 | P2P | Bank to bank |

documents/scheme-key-choices.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Author: Carol Coye Benson (Glenbrook)
55
- Date: October 2019
66
- Description:
7+
78
---
89

910
## **About the Mojaloop Community Business Document Project**
@@ -226,15 +227,13 @@ Any scheme implementing credit-push payments needs to specify how the payer and
226227

227228
- A scheme may also use a broadcast method to determine the DFSP responsible for a given payment address ("do you claim this address"), but needs to develop a protocol to manage conflicts if more than one DFSP "claims" the address.
228229

229-
- It is important to note that the resolution method can different for each type of supported payment address. Some supported payment address types may also be accompanied by particular data sets: for
230-
example, when a payment is being made in payment of an invoice, the payment address may be some type of alias, and that use of that alias may be tied to accompanying invoice data. Dynamic QR codes, as an example, will create a "request to pay" that may contain the scheme-supported merchant ID (an alias) and accompanying transaction data detail.
230+
- It is important to note that the resolution method can different for each type of supported payment address. Some supported payment address types may also be accompanied by particular data sets: for example, when a payment is being made in payment of an invoice, the payment address may be some type of alias, and that use of that alias may be tied to accompanying invoice data. Dynamic QR codes, as an example, will create a "request to pay" that may contain the scheme-supported merchant ID (an alias) and accompanying transaction data detail.
231231

232232
The Open API specification and the Mojaloop reference code support a wide range of different address types: mobile number, bank account, national ID, aliases ("Quickshop\@abc"), etc.
233233

234234
### 7.1 L1P Alignment -- Payments Addressing
235235

236-
Secure, easy payment addressing relates to two important concepts in Level One: convenience for the end-user and "openness". The latter is particularly important to enable competition and rapid scaling of a
237-
payment system. As schemes (Level One and otherwise) worldwide struggle to determine how to best solve the question of payments addressing, a few best practices appear to be emerging:
236+
Secure, easy payment addressing relates to two important concepts in Level One: convenience for the end-user and "openness". The latter is particularly important to enable competition and rapid scaling of a payment system. As schemes (Level One and otherwise) worldwide struggle to determine how to best solve the question of payments addressing, a few best practices appear to be emerging:
238237

239238
- Although the use of the mobile number, in particular, as an address has an obvious appeal, there appears to be a trend to use aliases -- identifiers with no additional meaning. This is demonstrated in India with the UPI system and in Australia's new real-time system, where the identifier is referred to as the PAYID.
240239

documents/scheme-participation-agreement.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Author: Carol Coye Benson (Glenbrook)
55
- Date: October 2019
66
- Description:
7+
78
---
89

910
## **About the Mojaloop Community Business Document Project**

documents/scheme-uniform-glossary.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Author: Carol Coye Benson (Glenbrook)
55
- Date: October 2019
66
- Description:
7+
78
---
89

910
## **About the Mojaloop Community Business Document Project**
@@ -32,8 +33,8 @@ This is a glossary of terms used in the Mojaloop Business Community Document Pro
3233

3334
# Uniform Glossary Template
3435

35-
| **Term** | **Definition** |
36-
| --- | --- |
36+
| Term | Definition |
37+
| :----- | :---------------------------------------------------------------------------------------------- |
3738
| Access Channel | Places or capabilities that are used to initiate or receive a payment. Access channels can include bank branch offices, ATMs, terminals at the POS, agent outlets, mobile phones, and computers. |
3839
| Account Lookup | A process that determines the DFSP responsible for a Transaction Account |
3940
| Account Lookup System | Account Lookup System is an abstract entity used for retrieving information regarding in which FSP an account, wallet or identity is hosted. The Account Lookup System itself can be hosted in its own server, as part of a financial switch, or in the different FSPs. |

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mojaloop-business-docs",
3-
"version": "8.5.3",
3+
"version": "8.7.0",
44
"description": "Mojaloop Business Documentation GitBook Project",
55
"dependencies": {
66
"express": "4.17.1",
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)