Skip to content

Conversation

@mdroidian
Copy link
Contributor

@mdroidian mdroidian commented Jan 8, 2025

Chunk of #52, will be using these in /app/(docs)/roam

Summary by CodeRabbit

  • New Features

    • Introduced a more flexible and generalized approach to handling blog and page content
    • Enhanced content retrieval and processing for blog posts
  • Refactor

    • Renamed schemas and types from blog-specific to more generic page-based structures
    • Updated utility functions for markdown file processing and HTML generation
  • Chores

    • Added new utility functions for file content retrieval and markdown conversion
    • Updated package dependencies to support new content handling approach

@vercel
Copy link

vercel bot commented Jan 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
discourse-graph ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 5:49am

@coderabbitai

This comment was marked as outdated.

export async function getHtmlFromMarkdown(markdown: string): Promise<string> {
const htmlString = await unified()
.use(remarkParse)
.use(remarkHeadingId)
Copy link
Contributor Author

@mdroidian mdroidian Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

majority of the change in this function is for this remarkHeadingId.

I need to pass in the id to section headers for a table of contents and was having trouble finding a good way to do it. This refactor seems to satisfy for both (blog) and the upcoming (docs)

@mdroidian

This comment was marked as outdated.

@coderabbitai

This comment was marked as off-topic.

coderabbitai[bot]

This comment was marked as outdated.

mdroidian and others added 2 commits January 7, 2025 23:46
bot goes boop?

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
coderrabbit

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@mdroidian
Copy link
Contributor Author

@sid597 ready for review

@mdroidian mdroidian requested a review from sid597 January 8, 2025 05:50
@sid597
Copy link
Collaborator

sid597 commented Jan 9, 2025

lgtm, no blockers

@sid597 sid597 merged commit 7c442da into main Jan 9, 2025
3 checks passed
@mdroidian mdroidian deleted the website-refactor-blog-utils branch January 9, 2025 20:08
@coderabbitai coderabbitai bot mentioned this pull request Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants