Skip to content
项目

关于

受 https://linear.app/changelog 启发的 Next.js + MDX 更新日志应用

其他项目

这些数字如何统计

可以做什么

  • 💅 A stylish changelog
  • ⏳ Timeline view
  • 📆 Date switcher
  • 🏄‍♀️ Smooth transitions

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Changelog 🚀

summary-repo

screenshot-repo

Set-up a changelog and share what you ship as easy as 1-2-3. A Next.js blog starter project built with MDX and Chakra UI. Fully-customizable and open source, so don't hesitate to add new features and report bugs!

👉 Visit working demo

June has shut down, so the changelog at changelog.june.so is now an archive: a static export of this repository, hosted on GitHub Pages. See Deploying.

Features

  • 💅 A stylish changelog
  • ⏳ Timeline view
  • 📆 Date switcher
  • 🧩 Mosaic mode
  • 🏄‍♀️ Smooth transitions
  • 🎉 Celebrate your team's achievements with team credits on each post
  • ⚙️ Easy-to-use, just use markdown files to write your changelogs~

👇 Mosaic mode in action below

Changelog demo

Getting started

The easiest way to try this is to run it locally on your computer.

First, you'll need to create your own copy of this code. You can do so by clicking the "Fork" button on GitHub and filling out the form.

Once you've cloned the repository, install dependencies and start the Next.js server (the site needs no environment variables):

# Using yarn
yarn install
yarn dev

# Using npm
npm install
npm run dev

Deploying

yarn build exports the whole changelog as a static site in out/ (next build && next export, then the sitemap and bin/postexport.mjs), so any static host can serve it.

changelog.june.so is served by GitHub Pages: .github/workflows/pages.yml builds and deploys out/ on every push to master.

  • Settings > Pages: Source is "GitHub Actions", and the custom domain is changelog.june.so, with "Enforce HTTPS" on.
  • DNS: changelog is a CNAME to junehq.github.io. In Cloudflare it must be "DNS only", or GitHub cannot issue the certificate.

bin/postexport.mjs adapts the export to GitHub Pages:

  • Pages such as /years/2024, which share a path with a directory, get an index.html copy inside that directory.
  • Every entry gets a redirect page at its old /changelog/<slug> URL.
  • The build fails if anything still points at the old S3 image bucket.

pages/404.tsx retries a URL once without a trailing slash, like Vercel's redirects did.

Routes

  • /pages/:pageNumber - displays paginated articles
  • / - redirects to /pages/0
  • /changelogs/:id - displays one article

File structure


bin             # Scripts
components      # Reusable components
├─ core
├─ mdx-layout.tsx
└─ ...
lib              # Types, theme, utilities, services
pages
├─ changelogs    # MDX articles
├─ page
│  └─ [page].tsx # Paginated articles
├─ _app.tsx
└─ _middleware.ts
...

Writing articles

To write a new blog post, create a new .mdx file in the /pages/changelogs directory.

Anatomy of an MDX article

MDX is a superset of markdown that lets you write JSX directly in your markdown files. It is a powerful way to add dynamic interactivity, and embed components within your content, helping you to bring your pages to life.

mdx-preview

Learn more 👉 Next.js: Using MDX, Using MDX

Managing images and assets

Images live in public/images and articles reference them from the root, e.g. headerImage: "/images/<slug>/header.png". The RSS feed, latest.json and social previews turn these into full https://changelog.june.so/... URLs.

They used to be served from an S3 bucket. bin/archive/self-host-images.mjs copied every image the articles used from a local copy of that bucket into public/images, at most 1600px wide and as WebP where that is smaller, and rewrote the URLs.

Branding customization

Most of the branding elements can be found in <Navbar> and <Footer> components. To customize these components, update the code in these directories:

探索相关项目

加载中…