Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dummy #14

Merged
merged 5 commits into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/broken-link-checker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,12 @@ async function brokenLinkChecker(): Promise<void> {
sites: []
}

// Options: https://www.npmjs.com/package/broken-link-checker#options
const options = {
excludeExternalLinks: false,
excludedKeywords: ["gitlab.com/-", "platform.openai.com"],
honorRobotExclusions: false,
filterLevel: 0,
excludedKeywords: []
filterLevel: 0
}

const siteChecker = new blc.SiteChecker(options, {
Expand Down
14 changes: 14 additions & 0 deletions app/(docs)/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { DocsPage, DocsBody } from "fumadocs-ui/page"
import { notFound } from "next/navigation"
import { RollButton } from "fumadocs-ui/components/roll-button"
import type { Metadata } from "next"
import { join } from "path"
import { getGithubLastEdit } from "fumadocs-core/server"

export default async function Page({ params }: { params: { slug?: string[] } }) {
const page = getPage(params.slug)
Expand Down Expand Up @@ -63,12 +65,24 @@ export default async function Page({ params }: { params: { slug?: string[] } })
</>
)

const time = await getGithubLastEdit({
owner: "gitbutlerapp",
repo: "gitbutler-docs",
path: join("content/docs/", page.file.path)
})

const MDX = page.data.exports.default

// Remove all lower level headers from the TOC on releases page
if (page.file.name === "releases") {
page.data.exports.toc = page.data.exports.toc.filter((item) => item.depth <= 2)
}

return (
<DocsPage
toc={page.data.exports.toc}
full={page.data.full ?? false}
lastUpdate={time ?? undefined}
tableOfContent={{
footer
}}
Expand Down
33 changes: 21 additions & 12 deletions content/docs/releases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,29 @@ title: Releases
import { Callout } from 'fumadocs-ui/components/callout';
import { Card, Cards } from 'fumadocs-ui/components/card';

For more info, join our Discord [#releases](https://discord.com/channels/1060193121130000425/1183737922785116161) channel or check out our GitHub releases.

<Cards className="mb-12">
<Card
icon={<svg className="size-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><circle fill="currentColor" cx="92" cy="140" r="12"/><circle fill="currentColor" cx="164" cy="140" r="12"/><path d="M153.44,73.69l5-19.63a8.1,8.1,0,0,1,9.21-6L203.69,54A8.08,8.08,0,0,1,210.23,60l29.53,116.37a8,8,0,0,1-4.55,9.24l-67,29.7a8.15,8.15,0,0,1-11-4.56L147,183.06" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="16"/><path d="M102.56,73.69l-5-19.63a8.1,8.1,0,0,0-9.21-6L52.31,54A8.08,8.08,0,0,0,45.77,60L16.24,176.35a8,8,0,0,0,4.55,9.24l67,29.7a8.15,8.15,0,0,0,11-4.56L109,183.06" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="16"/><path d="M80,78.31A178.94,178.94,0,0,1,128,72a178.94,178.94,0,0,1,48,6.31" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="16"/><path d="M176,177.69A178.94,178.94,0,0,1,128,184a178.94,178.94,0,0,1-48-6.31" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="16"/></svg>}
href="https://discord.com/invite/MmFkmaJ42D"
title="Discord"
description="We're available to chat on our Discord server"
/>
<Card
icon={<svg className="size-5" stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" height="200px" width="200px" xmlns="http://www.w3.org/2000/svg"><path d="M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9 1.4.3 2.6.4 3.8.4 8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1-8.4 1.9-15.9 2.7-22.6 2.7-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1 10.5 0 20-3.4 25.6-6 2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8 0 0 1.6-.5 5-.5 8.1 0 26.4 3.1 56.6 24.1 17.9-5.1 37-7.6 56.1-7.7 19 .1 38.2 2.6 56.1 7.7 30.2-21 48.5-24.1 56.6-24.1 3.4 0 5 .5 5 .5 12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5 1.2 0 2.6-.1 4-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"></path></svg>}
href="https://github.com/gitbutlerapp/gitbutler/releases"
title="GitHub"
description="Releases for 'gitbutlerapp/gitbutler'"
/>
</Cards>

# Changelog


{/* NEW_RELEASE */}


## 0.12.9
#### New
- Un-applying a virtual branch will now create a regular branch - this makes it easier to switch back and forth between using gitbutler and the git cli
Expand Down Expand Up @@ -42,15 +63,3 @@ Download bins from https://gitbutler.com/

**Full Changelog**: https://github.com/gitbutlerapp/gitbutler/compare/release/0.12.7...release/0.12.9

---

Join our Discord [#releases](https://discord.com/channels/1060193121130000425/1183737922785116161) channel

<Cards>
<Card
icon={<svg className="size-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><circle fill="currentColor" cx="92" cy="140" r="12"/><circle fill="currentColor" cx="164" cy="140" r="12"/><path d="M153.44,73.69l5-19.63a8.1,8.1,0,0,1,9.21-6L203.69,54A8.08,8.08,0,0,1,210.23,60l29.53,116.37a8,8,0,0,1-4.55,9.24l-67,29.7a8.15,8.15,0,0,1-11-4.56L147,183.06" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="16"/><path d="M102.56,73.69l-5-19.63a8.1,8.1,0,0,0-9.21-6L52.31,54A8.08,8.08,0,0,0,45.77,60L16.24,176.35a8,8,0,0,0,4.55,9.24l67,29.7a8.15,8.15,0,0,0,11-4.56L109,183.06" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="16"/><path d="M80,78.31A178.94,178.94,0,0,1,128,72a178.94,178.94,0,0,1,48,6.31" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="16"/><path d="M176,177.69A178.94,178.94,0,0,1,128,184a178.94,178.94,0,0,1-48-6.31" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="16"/></svg>}
href="https://discord.com/invite/MmFkmaJ42D"
title="Discord"
description="We are also available to chat on our Discord server"
/>
</Cards>