Skip to content

Commit 0c5782a

Browse files
committed
fix: (docs) broken links
Signed-off-by: rafaeljohn9 <[email protected]>
1 parent b845153 commit 0c5782a

File tree

2 files changed

+29
-40
lines changed

2 files changed

+29
-40
lines changed

docs/docusaurus.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ const config: Config = {
8989
label: 'GitHub',
9090
position: 'right',
9191
},
92+
{
93+
href: 'https://discord.gg/vzGBh5Qu',
94+
label: 'Discord',
95+
position: 'right',
96+
},
9297
],
9398
},
9499
footer: {
@@ -105,10 +110,6 @@ const config: Config = {
105110
label: 'Installation',
106111
to: '/installation',
107112
},
108-
{
109-
label: 'Usage',
110-
to: '/usage',
111-
},
112113
],
113114
},
114115
{

docs/src/components/MpesaKitLanding.tsx

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const MpesaKitLanding: React.FC = () => {
8787
badges: ["Open Source", "99%+ Test Coverage", "300+ Test Cases", "Community Driven"],
8888
primaryCTA: {
8989
text: "🚀 Get Started",
90-
href: "https://mpesakit.readthedocs.io/en/latest/quickstart.html"
90+
href: "/intro"
9191
},
9292
secondaryCTA: {
9393
text: "⭐ Star on GitHub",
@@ -210,91 +210,91 @@ export const MpesaKitLanding: React.FC = () => {
210210
name: "Authorization",
211211
status: "working" as "working" | "down" | "maintenance",
212212
note: "OAuth token issuance and refresh endpoints operational",
213-
link: { text: "Authorization Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#authorization" }
213+
link: { text: "Authorization Docs", href: "/auth" }
214214
},
215215
{
216216
name: "Dynamic QR",
217217
status: "working" as "working" | "down" | "maintenance",
218218
note: "QR generation and validation working as expected",
219-
link: { text: "Dynamic QR Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#dynamic-qr" }
219+
link: { text: "Dynamic QR Docs", href: "/dynamic-qr" }
220220
},
221221
{
222222
name: "M-Pesa Express",
223223
status: "working" as "working" | "down" | "maintenance",
224224
note: "STK Push / Lipa Na M-Pesa flow operational",
225-
link: { text: "M-Pesa Express Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#mpesa-express" }
225+
link: { text: "M-Pesa Express Docs", href: "/stk-push" }
226226
},
227227
{
228228
name: "Customer To Business (C2B)",
229229
status: "working" as "working" | "down" | "maintenance",
230230
note: "C2B payment endpoints accepting requests",
231-
link: { text: "C2B Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#c2b" }
231+
link: { text: "C2B Docs", href: "/c2b" }
232232
},
233233
{
234234
name: "Business To Customer (B2C)",
235235
status: "working" as "working" | "down" | "maintenance",
236236
note: "B2C payouts processing normally",
237-
link: { text: "B2C Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#b2c" }
237+
link: { text: "B2C Docs", href: "/b2c" }
238238
},
239239
{
240240
name: "Transaction Status",
241241
status: "working" as "working" | "down" | "maintenance",
242242
note: "Status queries returning timely responses",
243-
link: { text: "Transaction Status Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#transaction-status" }
243+
link: { text: "Transaction Status Docs", href: "/transaction-status" }
244244
},
245245
{
246246
name: "Account Balance",
247247
status: "working" as "working" | "down" | "maintenance",
248248
note: "Account balance checks operational",
249-
link: { text: "Account Balance Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#account-balance" }
249+
link: { text: "Account Balance Docs", href: "/account-balance" }
250250
},
251251
{
252252
name: "Reversals",
253253
status: "working" as "working" | "down" | "maintenance",
254254
note: "Reversal endpoints functional",
255-
link: { text: "Reversals Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#reversals" }
255+
link: { text: "Reversals Docs", href: "/reversal" }
256256
},
257257
{
258258
name: "Tax Remittance",
259259
status: "working" as "working" | "down" | "maintenance",
260260
note: "Tax remittance integration working",
261-
link: { text: "Tax Remittance Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#tax-remittance" }
261+
link: { text: "Tax Remittance Docs", href: "/tax-remittance" }
262262
},
263263
{
264264
name: "Business Pay Bill",
265265
status: "working" as "working" | "down" | "maintenance",
266266
note: "PayBill payment flows operational",
267-
link: { text: "Pay Bill Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#pay-bill" }
267+
link: { text: "Pay Bill Docs", href: "/business-paybill" }
268268
},
269269
{
270270
name: "Business Buy Goods",
271271
status: "working" as "working" | "down" | "maintenance",
272272
note: "BuyGoods payment flows operational",
273-
link: { text: "Buy Goods Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#buy-goods" }
273+
link: { text: "Buy Goods Docs", href: "/business-buygoods" }
274274
},
275275
{
276276
name: "Bill Manager",
277277
status: "maintenance" as "working" | "down" | "maintenance",
278278
note: "On hold per Safaricom API support",
279-
link: { text: "Bill Manager (notes)", href: "https://mpesakit.readthedocs.io/en/latest/api.html#bill-manager" }
279+
link: { text: "Bill Manager (notes)", href: "https://developer.safaricom.co.ke/APIs/BillManager" }
280280
},
281281
{
282282
name: "B2B Express Checkout",
283283
status: "maintenance" as "working" | "down" | "maintenance",
284284
note: "On hold per Safaricom API support",
285-
link: { text: "B2B Express (notes)", href: "https://mpesakit.readthedocs.io/en/latest/api.html#b2b-express" }
285+
link: { text: "B2B Express (notes)", href: "https://developer.safaricom.co.ke/APIs/B2BExpressCheckout" }
286286
},
287287
{
288288
name: "B2C Account Top Up",
289289
status: "working" as "working" | "down" | "maintenance",
290290
note: "Account top-up flows functioning normally",
291-
link: { text: "B2C Top Up Docs", href: "https://mpesakit.readthedocs.io/en/latest/api.html#b2c-top-up" }
291+
link: { text: "B2C Top Up Docs", href: "/b2c-account-top-up" }
292292
},
293293
{
294294
name: "M-Pesa Ratiba",
295295
status: "maintenance" as "working" | "down" | "maintenance",
296296
note: "On hold per Safaricom API support",
297-
link: { text: "Ratiba (notes)", href: "https://mpesakit.readthedocs.io/en/latest/api.html#ratiba" }
297+
link: { text: "Ratiba (notes)", href: "https://developer.safaricom.co.ke/APIs/MpesaRatiba" }
298298
}
299299
]
300300
};
@@ -309,7 +309,7 @@ export const MpesaKitLanding: React.FC = () => {
309309
description: "Get up and running in minutes with our step-by-step guide and code examples.",
310310
link: {
311311
text: "Start Building",
312-
href: "https://mpesakit.readthedocs.io/en/latest/quickstart.html"
312+
href: "/intro"
313313
}
314314
},
315315
{
@@ -318,18 +318,9 @@ export const MpesaKitLanding: React.FC = () => {
318318
description: "Complete API documentation with parameters, responses, and error codes.",
319319
link: {
320320
text: "View APIs",
321-
href: "https://mpesakit.readthedocs.io/en/latest/api.html"
321+
href: "/auth"
322322
}
323323
},
324-
{
325-
icon: "💡",
326-
title: "Examples & Tutorials",
327-
description: "Real-world examples and tutorials for common integration patterns.",
328-
link: {
329-
text: "See Examples",
330-
href: "https://mpesakit.readthedocs.io/en/latest/examples.html"
331-
}
332-
}
333324
]
334325
};
335326

@@ -338,11 +329,11 @@ export const MpesaKitLanding: React.FC = () => {
338329
description: "Join hundreds of developers who trust MpesaKit for their M-Pesa integrations. Start building secure, reliable payment solutions today.",
339330
primaryCTA: {
340331
text: "🚀 Get Started Now",
341-
href: "https://mpesakit.readthedocs.io/en/latest/quickstart.html"
332+
href: "/installation"
342333
},
343334
secondaryCTA: {
344335
text: "📖 View Documentation",
345-
href: "https://github.com/rafaeljohn9/mpesakit"
336+
href: "/intro"
346337
}
347338
};
348339

@@ -353,10 +344,9 @@ export const MpesaKitLanding: React.FC = () => {
353344
{
354345
title: "Resources",
355346
links: [
356-
{ text: "Quick Start", href: "https://mpesakit.readthedocs.io/en/latest/quickstart.html" },
357-
{ text: "API Reference", href: "https://mpesakit.readthedocs.io/en/latest/api.html" },
358-
{ text: "Examples", href: "https://mpesakit.readthedocs.io/en/latest/examples.html" },
359-
{ text: "Contributing", href: "https://mpesakit.readthedocs.io/en/latest/contributing.html" }
347+
{ text: "Quick Start", href: "/intro" },
348+
{ text: "API Reference", href: "/auth" },
349+
{ text: "Contributing", href: "https://github.com/RafaelJohn9/mpesakit/blob/master/CONTRIBUTING.md" }
360350
]
361351
},
362352
{
@@ -372,17 +362,15 @@ export const MpesaKitLanding: React.FC = () => {
372362
{
373363
title: "Support",
374364
links: [
375-
{ text: "FAQ", href: "https://mpesakit.readthedocs.io/en/latest/faq.html" },
376365
{ text: "Report Bug", href: "https://github.com/rafaeljohn9/mpesakit/issues" },
377366
{ text: "Get Help", href: "https://github.com/rafaeljohn9/mpesakit/discussions" },
378-
{ text: "Changelog", href: "https://mpesakit.readthedocs.io/en/latest/changelog.html" }
379367
]
380368
}
381369
],
382370
socialLinks: [
383371
{ text: "📱", href: "https://github.com/rafaeljohn9/mpesakit" },
384372
{ text: "📦", href: "https://pypi.org/project/mpesakit/" },
385-
{ text: "📚", href: "https://mpesakit.readthedocs.io" }
373+
{ text: "📚", href: "/intro" }
386374
],
387375
copyright: "© 2025 MpesaKit. Open source project by John Kagunda",
388376
tagline: "Built with ❤️ for the community."

0 commit comments

Comments
 (0)