Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Jan 11, 2025
1 parent 521da49 commit 0462569
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 36 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
<a href="https://polar.sh/docs">Docs</a>
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
<a href="https://polar.sh/docs/api-reference">API Reference</a>
<a href="https://docs.polar.sh/api-reference">API Reference</a>


<p align="center">
Expand Down Expand Up @@ -53,7 +53,7 @@ Focus on building your passion, while we focus on the infrastructure to get you

- 4% + 40¢
- No fixed monthly costs
- Additional fees may apply. [Read more](https://polar.sh/docs/documentation/polar-as-merchant-of-record/fees)
- Additional fees may apply. [Read more](https://docs.polar.sh/documentation/polar-as-merchant-of-record/fees)

## Roadmap, Issues & Feature Requests
**🎯 Upcoming milestones.** [Check out what we're building towards](https://github.com/polarsource/polar/issues/3242)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Let's start with creating your first Polar OAuth App.
7. Store the given `Client ID` and `Client Secret` somewhere safe & secret.


You're now ready to integrate the Polar OAuth App 🎉 [Follow our complete integration guide here](https://polar.sh/docs/developers/sdk/authentication).
You're now ready to integrate the Polar OAuth App 🎉 [Follow our complete integration guide here](https://docs.polar.sh/developers/sdk/authentication).

#### User Authentication Flow

Expand Down Expand Up @@ -82,7 +82,7 @@ Polar supports the following Webhook events (with more to come):

We follow the [Standard Webhook](https://www.standardwebhooks.com/) guidelines
to make integration intuitive and familiar. [Checkout our
docs](https://polar.sh/docs/developers/webhooks) for integration details and payload schemas for the available events.
docs](https://docs.polar.sh/developers/webhooks) for integration details and payload schemas for the available events.

#### Add Webhook Endpoint(s)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@ app.listen(port, () => {
</div>
<div className="flex flex-row items-center gap-x-2">
<Link
href={`/docs/documentation/integration-guides/nextjs`}
href={`https://docs.polar.sh/documentation/integration-guides/nextjs`}
target="_blank"
>
<Button wrapperClassNames="flex flex-row items-center gap-x-2">
<span>Checkout API Guide</span>
<ChevronRight className="text-sm" fontSize="inherit" />
</Button>
</Link>
<Link href={`/docs/api/`} target="_blank">
<Link href={`https://docs.polar.sh/api/`} target="_blank">
<Button
wrapperClassNames="flex flex-row items-center gap-x-2"
variant="ghost"
Expand Down Expand Up @@ -317,7 +317,7 @@ const polar = new Polar({
<p className="dark:text-polar-400 text-lg text-gray-500">
Build your own solutions using our SDKs & API
</p>
<Link href={`/docs/api`} target="_blank">
<Link href={`https://docs.polar.sh/api`} target="_blank">
<Button wrapperClassNames="flex flex-row items-center gap-x-2">
<span>API Documentation</span>
<ChevronRight className="text-sm" fontSize="inherit" />
Expand Down
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Landing/Checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Checkout = () => {
<h1 className="w-fit max-w-2xl text-pretty text-center text-2xl md:text-4xl md:leading-normal">
Powerful Checkouts made simple
</h1>
<Link href="/docs/documentation/features/checkouts/checkout-links">
<Link href="https://docs.polar.sh/documentation/features/checkouts/checkout-links">
<Button
fullWidth
wrapperClassNames="flex flex-row items-center gap-x-2"
Expand Down
4 changes: 2 additions & 2 deletions clients/apps/web/src/components/Landing/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const Features = () => {
icon={Box}
title="Digital Products"
description="Manage and distribute your digital products with our robust platform."
link="/docs/documentation/features/products"
link="https://docs.polar.sh/documentation/features/products"
>
<ul className="flex flex-col gap-y-1 text-gray-600 dark:text-gray-300">
<li className="flex flex-row items-center gap-x-2">
Expand All @@ -104,7 +104,7 @@ export const Features = () => {
icon={ShoppingBagOutlined}
title="Simple Checkouts"
description="Streamlined checkouts for a seamless user experience."
link="/docs/checkout"
link="https://docs.polar.sh/checkout"
>
<ul className="flex flex-col gap-y-1 text-gray-600 dark:text-gray-300">
<li className="flex flex-row items-center gap-x-2">
Expand Down
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Landing/GetStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const GetStarted = () => {
</li>
</ul>
</div>
<Link href="/docs/documentation/integration-guides/nextjs">
<Link href="https://docs.polar.sh/documentation/integration-guides/nextjs">
<Button
size="lg"
fullWidth
Expand Down
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Landing/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Intro = () => {
/>
}
cta2={
<Link href="/docs/api-reference">
<Link href="https://docs.polar.sh/api-reference">
<Button variant="ghost">API Reference</Button>
</Link>
}
Expand Down
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Landing/MOR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const MerchantOfRecord = () => {
]}
image="/assets/landing/transactions.jpg"
cta1={
<Link href="/docs/documentation/polar-as-merchant-of-record/tax">
<Link href="https://docs.polar.sh/documentation/polar-as-merchant-of-record/tax">
<Button variant="ghost">
Learn More
<span className="ml-1">
Expand Down
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Landing/Pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Pricing = () => {
<p className="dark:text-polar-400 text-gray-600">
We only earn when you do.{' '}
<Link
href="/docs/documentation/polar-as-merchant-of-record/fees"
href="https://docs.polar.sh/documentation/polar-as-merchant-of-record/fees"
className="text-blue-500"
>
See how our fees apply.
Expand Down
10 changes: 7 additions & 3 deletions clients/apps/web/src/components/Landing/SDKs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ const frameworks: Framework[] = [
{
name: 'Node.js',
icon: <NodeJsIcon />,
href: '/docs/documentation/sdks/typescript-sdk',
href: 'https://docs.polar.sh/documentation/sdks/typescript-sdk',
},
{
name: 'Python',
icon: <PythonIcon />,
href: '/docs/documentation/sdks/python-sdk',
href: 'https://docs.polar.sh/documentation/sdks/python-sdk',
},
{
name: 'PHP',
Expand All @@ -34,7 +34,11 @@ const frameworks: Framework[] = [
icon: <GoIcon />,
href: 'https://github.com/polarsource/polar-go',
},
{ name: 'CURL', icon: <CurlIcon />, href: '/docs/api-reference' },
{
name: 'CURL',
icon: <CurlIcon />,
href: 'https://docs.polar.sh/api-reference',
},
]

const containerVariants = {
Expand Down
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Landing/Tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Tools = () => {
<h1 className="w-fit max-w-2xl text-pretty text-center text-2xl md:text-4xl md:leading-normal">
The fastest way to add SaaS & digital products to your stack
</h1>
<Link href="/docs/documentation/tools/polar-init">
<Link href="https://docs.polar.sh/documentation/tools/polar-init">
<Button
fullWidth
wrapperClassNames="flex flex-row items-center gap-x-1"
Expand Down
28 changes: 14 additions & 14 deletions clients/apps/web/src/components/Landing/TopbarNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ const PlatformPopover = () => {
<PopoverLinkItem
title="Products & Subscriptions"
description="Offer digital products or subscriptions"
link="/docs/documentation/features/products"
link="https://docs.polar.sh/documentation/features/products"
/>
<PopoverLinkItem
title="Checkouts"
description="Integrate with our Checkout API"
link="/docs/documentation/features/checkouts/checkout-links"
link="https://docs.polar.sh/documentation/features/checkouts/checkout-links"
/>
<PopoverLinkItem
title="Customer Portal"
description="Let your customers manage their subscriptions and orders"
link="/docs/documentation/features/customer-portal"
link="https://docs.polar.sh/documentation/features/customer-portal"
/>
</div>
</div>
Expand All @@ -80,27 +80,27 @@ const PlatformPopover = () => {
<PopoverLinkItem
title="License Keys"
description="Sell access to your custom software with License Keys"
link="/docs/documentation/features/benefits/license-keys"
link="https://docs.polar.sh/documentation/features/benefits/license-keys"
/>
<PopoverLinkItem
title="GitHub Repository Access"
description="Grant access to private repositories"
link="/docs/documentation/features/benefits/github-repository-access"
link="https://docs.polar.sh/documentation/features/benefits/github-repository-access"
/>
<PopoverLinkItem
title="Discord Server Access"
description="Automatic Discord role assignment"
link="/docs/documentation/features/benefits/discord-server-roles"
link="https://docs.polar.sh/documentation/features/benefits/discord-server-roles"
/>
<PopoverLinkItem
title="File Downloads"
description="Access to exclusive file downloads"
link="/docs/documentation/features/benefits/file-downloads"
link="https://docs.polar.sh/documentation/features/benefits/file-downloads"
/>
<PopoverLinkItem
title="Custom"
description="Offer custom benefits for your special usecase"
link="/docs/documentation/features/benefits/custom-benefit"
link="https://docs.polar.sh/documentation/features/benefits/custom-benefit"
/>
</div>
</div>
Expand Down Expand Up @@ -144,12 +144,12 @@ const DocumentationPopover = () => {
<PopoverLinkItem
title="Integration Guides"
description="How-to guides for common frameworks and use cases"
link="/docs/documentation/integration-guides/nextjs"
link="https://docs.polar.sh/documentation/integration-guides/nextjs"
/>
<PopoverLinkItem
title="Support"
description="Get help from the Polar team"
link="/docs/documentation/support"
link="https://docs.polar.sh/documentation/support"
/>
</div>
</div>
Expand All @@ -159,22 +159,22 @@ const DocumentationPopover = () => {
<PopoverLinkItem
title="API Reference"
description="Integrate Polar with your application"
link="/docs/api-reference"
link="https://docs.polar.sh/api-reference"
/>
<PopoverLinkItem
title="OAuth"
description="Streamline authentication and unlocking user benefits"
link="/docs/documentation/integration-guides/authenticating-with-polar"
link="https://docs.polar.sh/documentation/integration-guides/authenticating-with-polar"
/>
<PopoverLinkItem
title="Webhooks"
description="Integrate Polar with your application"
link="/docs/documentation/integration-guides/webhooks"
link="https://docs.polar.sh/documentation/integration-guides/webhooks"
/>
<PopoverLinkItem
title="Polar SDKs"
description="Build with our JavaScript & Python SDKs"
link="/docs/documentation/sdks/typescript-sdk"
link="https://docs.polar.sh/documentation/sdks/typescript-sdk"
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Pledge/FAQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const FAQ_BACKERS: FAQItems = [
answer: (
<>
<Link
href="/docs/documentation/support"
href="https://docs.polar.sh/documentation/support"
target="_blank"
className="text-blue-400"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const PledgeCheckoutContribute = ({ issue }: { issue: Issue }) => {

<a
className="text-xs text-blue-500 hover:text-blue-400 dark:text-blue-400 dark:hover:text-blue-300"
href="/docs/documentation/polar-as-merchant-of-record/supported-countries"
href="https://docs.polar.sh/documentation/polar-as-merchant-of-record/supported-countries"
>
Make sure you’re eligible to receive Stripe payouts.
</a>
Expand Down
4 changes: 2 additions & 2 deletions clients/apps/web/src/components/Settings/OAuth/OAuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const FieldClientType = () => {
<em>Confidential Client</em>.{' '}
<Link
className="text-blue-500 hover:text-blue-400 dark:text-blue-400 dark:hover:text-blue-300"
href="/docs/documentation/integration-guides/authenticating-with-polar"
href="https://docs.polar.sh/documentation/integration-guides/authenticating-with-polar"
target="_blank"
rel="noopener noreferrer"
>
Expand Down Expand Up @@ -129,7 +129,7 @@ export const FieldClientSecret = ({
SPA or mobile app.{' '}
<Link
className="text-blue-500 hover:text-blue-400 dark:text-blue-400 dark:hover:text-blue-300"
href="/docs/documentation/integration-guides/authenticating-with-polar"
href="https://docs.polar.sh/documentation/integration-guides/authenticating-with-polar"
target="_blank"
rel="noopener noreferrer"
>
Expand Down

0 comments on commit 0462569

Please sign in to comment.