Skip to content

Sync blogs with dev.to#15

Merged
AS1100K merged 13 commits intomainfrom
dev-to
Aug 27, 2025
Merged

Sync blogs with dev.to#15
AS1100K merged 13 commits intomainfrom
dev-to

Conversation

@AS1100K
Copy link
Copy Markdown
Owner

@AS1100K AS1100K commented Aug 27, 2025

No description provided.

@AS1100K AS1100K added the enhancement New feature or request label Aug 27, 2025
@AS1100K AS1100K requested a review from Copilot August 27, 2025 16:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new dev.to blog synchronization system that automatically imports blog posts from dev.to and integrates them into the Astro-based portfolio website. The sync tool fetches articles via the dev.to API and generates markdown files with proper frontmatter for both published and draft content.

Key changes:

  • Added Python-based dev.to sync tool for importing blog content
  • Extended blog layout to support both legacy and new v1Data blog formats
  • Added draft blog collection and routing for unpublished content

Reviewed Changes

Copilot reviewed 8 out of 11 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tools/dev-to-sync/main.py Main sync script that fetches articles from dev.to API and generates markdown files
tools/dev-to-sync/utils.py Utility functions for file path generation and slug creation
src/content.config.ts Added draft_blog collection and v1Data schema for synced content
src/layouts/blog.astro Enhanced layout to support both legacy and new blog formats with cover images
src/components/SocialButtons.astro Added dev.to link button for synced articles
src/pages/draft/blog/[...slug].astro New page handler for draft blog posts
.github/workflows/ci.yml Integrated dev.to sync into CI pipeline

Comment thread tools/dev-to-sync/main.py Outdated
Comment thread tools/dev-to-sync/main.py
Comment thread tools/dev-to-sync/main.py Outdated
Comment thread tools/dev-to-sync/main.py Outdated
Comment thread src/layouts/blog.astro
Comment thread tools/dev-to-sync/main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants