Home / Companies / PropelAuth / Blog / Post Details
Content Deep Dive

Add Personalized Content to your Docs with MarkDoc, Next.js, and PropelAuth

Blog post from PropelAuth

Post Details
Company
Date Published
Author
Andrew Israel
Word Count
1,092
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

Stripe’s open-source Markdoc framework extends Markdown authoring by allowing custom React components to be embedded as tags, a capability used in Stripe’s own documentation. The examples show how a React component using hooks can render dynamic content such as a continuously updated current date, then be registered in Markdoc and inserted into a Markdown page. The discussion also presents a more practical documentation use case: displaying a logged-in user’s or organization’s API key directly in code examples by fetching it from a protected Next.js API route, with authentication and login handling provided through PropelAuth. By combining Markdown’s simplicity with React’s interactivity, data fetching, and authentication support, Markdoc can enable documentation that is dynamic, personalized, and more functional than static pages.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.