taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit effcc17d92268b057ec1f643b4328ab0b2f3fedb
parent 9758c90c6bcbd8306553af901aea29115ee680a9
Author: Florian Dold <florian@dold.me>
Date:   Tue,  4 Oct 2022 16:49:27 +0200

tweak: remove group comments in final output

Diffstat:
Mextract-tsdefs/extract.ts | 6++++--
Mwallet/wallet-core.md | 12------------
2 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/extract-tsdefs/extract.ts b/extract-tsdefs/extract.ts @@ -182,7 +182,6 @@ const main = async () => { sourceFile.getFullText(), decl.getFullStart() ); - console.log(commentRanges); commentRanges?.forEach((r) => { const text = sourceFile.getFullText().slice(r.pos, r.end); @@ -201,11 +200,14 @@ const main = async () => { nameSet: new Set<string>(), group: currentGroup, }; - const declText = printer.printNode( + let declText = printer.printNode( ts.EmitHint.Unspecified, decl, decl.getSourceFile()! ); + console.log("replacing group in", declText); + // Remove group comments + declText = declText.replace(/\/\/ group: [^\n]*[\n]/m, ""); perOpState.nameSet.add(v.name); gatherState.declTexts.set(v.name, declText); gatherDecls(decl, gatherState, perOpState); diff --git a/wallet/wallet-core.md b/wallet/wallet-core.md @@ -63,7 +63,6 @@ This file is auto-generated from [wallet-core](https://git.taler.net/wallet-core ## Operation Reference ### InitWalletOp ```typescript -// group: Initialization /** * Initialize wallet-core. * @@ -84,7 +83,6 @@ export type InitWalletOp = { ### GetBalancesOp ```typescript -// group: Basic Wallet Information /** * Get current wallet balance. */ @@ -113,7 +111,6 @@ export interface Balance { ### GetTransactionsOp ```typescript -// group: Managing Transactions /** * Get transactions. */ @@ -529,7 +526,6 @@ export interface RetryTransactionRequest { ### GetWithdrawalDetailsForAmountOp ```typescript -// group: Withdrawals /** * Get details for withdrawing a particular amount (manual withdrawal). */ @@ -662,7 +658,6 @@ export interface AcceptManualWithdrawalResult { ### PreparePayForUriOp ```typescript -// group: Merchant Payments /** * Prepare to make a payment */ @@ -850,7 +845,6 @@ export interface ApplyRefundResponse { ### PrepareTipOp ```typescript -// group: Tipping /** * Query and store information about a tip. */ @@ -924,7 +918,6 @@ export interface AcceptTipRequest { ### ListExchangesOp ```typescript -// group: Exchange Management /** * List exchanges known to the wallet. */ @@ -1049,7 +1042,6 @@ export interface WalletCurrencyInfo { ### CreateDepositGroupOp ```typescript -// group: Deposits /** * Create a new deposit group. * @@ -1106,7 +1098,6 @@ export interface TrackDepositGroupResponse { ### ExportBackupRecoveryOp ```typescript -// group: Backups /** * Export the recovery information for the wallet. */ @@ -1359,7 +1350,6 @@ export type ExportBackupPlainOp = { ### InitiatePeerPushPaymentOp ```typescript -// group: Peer Payments /** * Initiate an outgoing peer push payment. */ @@ -1518,7 +1508,6 @@ export interface AcceptPeerPullPaymentRequest { ### ExportDbOp ```typescript -// group: Database Management /** * Exoport the wallet database's contents to JSON. */ @@ -1555,7 +1544,6 @@ export type RecycleOp = { ### RunIntegrationTestOp ```typescript -// group: Testing and Debugging /** * Run a simple integration test on a test deployment * of the exchange and merchant.