summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-04 16:49:27 +0200
committerFlorian Dold <florian@dold.me>2022-10-04 16:49:27 +0200
commiteffcc17d92268b057ec1f643b4328ab0b2f3fedb (patch)
treef8dc0936d37ceeb6181c2e9bb2bc64a0029ac717
parent9758c90c6bcbd8306553af901aea29115ee680a9 (diff)
downloaddocs-effcc17d92268b057ec1f643b4328ab0b2f3fedb.tar.gz
docs-effcc17d92268b057ec1f643b4328ab0b2f3fedb.tar.bz2
docs-effcc17d92268b057ec1f643b4328ab0b2f3fedb.zip
tweak: remove group comments in final output
-rw-r--r--extract-tsdefs/extract.ts6
-rw-r--r--wallet/wallet-core.md12
2 files changed, 4 insertions, 14 deletions
diff --git a/extract-tsdefs/extract.ts b/extract-tsdefs/extract.ts
index 6325e4fc..ea133f30 100644
--- 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
index 3b151b32..331b9144 100644
--- 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.