{"id":16132925,"url":"https://github.com/mfuu/gdb","last_synced_at":"2025-04-06T15:16:24.183Z","repository":{"id":246615076,"uuid":"821351533","full_name":"mfuu/gdb","owner":"mfuu","description":"Build your blog with github discussion","archived":false,"fork":false,"pushed_at":"2025-03-31T13:38:25.000Z","size":715,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T14:48:43.919Z","etag":null,"topics":["astro","blog","discussion","discussion-blog","github","github-discussions","markdown","react","template"],"latest_commit_sha":null,"homepage":"https://mfuu.github.io/gdb/","language":"Astro","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfuu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T10:49:44.000Z","updated_at":"2024-07-05T02:24:52.000Z","dependencies_parsed_at":"2024-06-29T05:25:06.511Z","dependency_job_id":"7065d638-269e-4ad3-8ab9-45a3a1927e74","html_url":"https://github.com/mfuu/gdb","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"a1fbef62825610ed496dd33d00b64e7bfd0e7709"},"previous_names":["mfuu/gdb"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuu%2Fgdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuu%2Fgdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuu%2Fgdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuu%2Fgdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfuu","download_url":"https://codeload.github.com/mfuu/gdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500476,"owners_count":20948880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","blog","discussion","discussion-blog","github","github-discussions","markdown","react","template"],"created_at":"2024-10-09T22:35:16.268Z","updated_at":"2025-04-06T15:16:24.162Z","avatar_url":"https://github.com/mfuu.png","language":"Astro","readme":"# gdb\n\n![Typescript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge\u0026logo=typescript\u0026logoColor=white) ![mdx](https://img.shields.io/badge/mdx-yellow?style=for-the-badge\u0026logo=MDX\u0026logoColor=white) ![giscus](https://img.shields.io/badge/giscus-%2319c37d?style=for-the-badge\u0026logo=giscus\u0026logoColor=white)\n\n**What is gdb**\n\ngdb(github discussion blog), host blog content on GitHub, using GitHub Discussions as CMS for our Markdown content and then eventually using GitHub API to retrieve the content.\n\n## GitHub Discussion\n\n### Setup\n\n- Enabled discussion feature in my repository.\n- Deleted all default labels.\n- Deleted all default categories and sections.\n- Created new section named “Articles”.\n- Created new category with type “Announcement”, named “Release” respective to release posts.\n\n\u003e You can adjust the section and categories yourself.\n\n### Fetch script\n\nFor the fetching part extra build step for Astro, and here’s how it goes:\n\n```json\n\"scripts\": {\n  \"fetch\": \"node scripts/fetch-discussions.mjs\",\n},\n```\n\nFor the script, you can found in `/scripts/fetch-discussions.mjs`\n\n## Config\n\nChange your website config in `src/config.ts`, such as:\n\n```ts\nexport const SITE: Site = {\n  website: \"\",\n  base: \"\",\n  author: \"\",\n  desc: \"\",\n  title: \"\",\n  lightAndDarkMode: true,\n  postPerPage: 5,\n  scheduledPostMargin: 15 * 60 * 1000, // 15 minutes\n};\n\nexport const ROUTES = []\n\n...\n```\n\n## Giscus\n\nBy default, giscus is enabled. If necessary, please modify the `giscus.config.mjs` configuration yourself.\n\n```ts\n{\n  repo: '',\n  enable: true,\n  lang: \"zh-CN\",\n  theme: \"transparent_dark\",\n  inputPosition: \"bottom\",\n  emitMetadata: 0,\n  reactionsEnabled: 1,\n  lazyLoading: true,\n}\n```\n\nFor more configuration content, please go to [Giscus](https://giscus.app/).\n\n\u003e Please ensure that your repo has [installed](https://github.com/apps/giscus) the Giscus App.\n\n## Deploy\n\nAutomatic synchronization with Gitubb Wokflow, detail in `.github/workflows/discussions.yml`\n\n\u003e If you have adjusted the category name of the Discussion, please modify the env variable too.\n\n## Others\n\nMy blog theme source: [AstroPaper](https://github.com/satnaing/astro-paper), of course, you can freely adjust it to the theme you want.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfuu%2Fgdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfuu%2Fgdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfuu%2Fgdb/lists"}