Skip to content

Commit

Permalink
Merge pull request #431 from code-hike/next
Browse files Browse the repository at this point in the history
v1.0.0
  • Loading branch information
pomber authored Aug 26, 2024
2 parents d0eb551 + a4b2ee9 commit 4928cbb
Show file tree
Hide file tree
Showing 48 changed files with 3,097 additions and 5,686 deletions.
5 changes: 0 additions & 5 deletions .changeset/blue-cameras-serve.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/brave-donuts-stare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cold-doors-occur.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curly-grapes-sip.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-onions-nail.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-donkeys-join.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forty-llamas-mate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-pots-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/heavy-students-swim.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-pugs-chew.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-owls-hammer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-carrots-remain.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-clouds-compete.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-impalas-drive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/metal-gifts-remember.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/metal-planes-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/modern-eagles-give.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/neat-buttons-impress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/polite-pumas-whisper.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/poor-beers-flow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/popular-zebras-doubt.md

This file was deleted.

44 changes: 0 additions & 44 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rich-pears-peel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silver-trees-wash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/six-deers-film.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smart-poets-report.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/soft-moles-act.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-dryers-care.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strange-toys-beam.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stupid-guests-scream.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sweet-eggs-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tall-ravens-march.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/three-bees-provide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tricky-baboons-drop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wet-lemons-thank.md

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/app/landing/sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import sponsorData from "./sponsors.json"
import { Check, CheckCheck, Heart } from "lucide-react"

export function Pricing() {
const current = 624
const current = 625
const goal = 950
return (
<section className="max-w-3xl mx-2 pb-12">
Expand Down
9 changes: 9 additions & 0 deletions apps/web/content/blog/content-presentation-gap.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: The content-presentation gap
description: test description
date: 2024-06-20
authors: [pomber]
draft: true
---

test
2 changes: 1 addition & 1 deletion apps/web/content/blog/rich-content-websites.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Leaner media are more cost-efficient, richer media are more expressive. That's t

This framework is from 1986 and hasn't age very well. But we can borrow some ideas to think about content websites.

The web is a versatile medium. It can be as lean or as rich as you want. You can build a lean website with just text, or a rich website with interactive, personalized, collaborative, multimedia content.
The web is a versatile medium, it can be as lean or as rich as you want. You can build a lean website with just text, or a rich website with interactive, personalized, collaborative, multimedia content.

Remember, richness means: the ability to express complex messages.

Expand Down
9 changes: 9 additions & 0 deletions apps/web/content/blog/the-curse-of-markdown.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: The Curse of Markdown
description: Lorem ipsum
date: 2024-06-20
authors: [pomber]
draft: true
---

test
6 changes: 3 additions & 3 deletions apps/web/content/blog/v1-migration.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Migrating to Code Hike v1
title: Migrating to Code Hike 1.0
description: Incremental adoption guide
authors: [pomber]
date: 2024-08-16
draft: true
date: 2024-08-25
draft: false
---

import { CodeWithNotes } from "@/components/code/code-with-notes"
Expand Down
24 changes: 13 additions & 11 deletions apps/web/content/blog/v1.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Announcing Code Hike v1.0
title: Announcing Code Hike 1.0
description: A new approach to turn markdown into rich interactive experiences
authors: [pomber]
date: 2024-08-16
draft: true
date: 2024-08-26
draft: false
---

import { CodeWithNotes } from "@/components/code/code-with-notes"
Expand All @@ -13,13 +13,15 @@ import {
Sponsors,
} from "./v1"

After a year of exploration and development, I’m thrilled to announce the stable release of Code Hike v1.0!
After a year of exploration and development, I’m thrilled to announce the stable release of Code Hike 1.0!

## What is Code Hike?

Code Hike is an open-source library designed to encourage the authoring of technical content that takes full advantage of the modern web.
Code Hike is an **open-source library that bridges the gap between Markdown and React to help you create technical content that takes full advantage of the modern web.**

Code Hike v1 introduces two new features: **fine-grained markdown** and **headless codeblocks**.
While **the main use cases are code walkthroughs and interactive documentation**, Code Hike can be used for any combination of content and presentation. And since it's all React components, it can be rendered anywhere React can be rendered.

Code Hike 1.0 introduces two new features: **fine-grained markdown** and **headless codeblocks**.

### Fine-grained Markdown

Expand Down Expand Up @@ -117,7 +119,7 @@ content = {

</FineGrained>

Code Hike also integrates nicely with [Zod schemas](docs/concepts/blocks#schema) giving you type-safe Markdown.
Code Hike also integrates nicely with [Zod schemas](docs/concepts/blocks#schema), giving you type-safe Markdown.

Learn more:

Expand All @@ -127,7 +129,7 @@ Learn more:

### Headless Codeblocks

With Code Hike v1, you can build your own component library for codeblocks.
With Code Hike 1.0, you can build your own component library for codeblocks.

- Use React components to define UI and behaviors: tooltips, animations, line numbers, diffs, copy buttons, collapse, fold, footnotes, links, tabs, callouts, language switchers, or whatever you can imagine.
- Then add comments inside your codeblocks to make use of those components
Expand Down Expand Up @@ -210,9 +212,9 @@ Videos, slides, screenshots. Code Hike makes separating content from presentatio

Landing pages, marketing sites, portfolios. It doesn't even need content related to programming. Code Hike helps you keep the content separated from the design.

## Try Code Hike v1
## Try Code Hike 1.0

Try it online on [StackBlitz](https://stackblitz.com/github/code-hike/v1-starter), or clone the Code Hike v1 starter:
Try it online on [StackBlitz](https://stackblitz.com/github/code-hike/v1-starter?file=app%2Fpage.mdx), or clone the Code Hike v1 starter:

```bash -c
# !link[24:62] https://github.com/code-hike/v1-starter
Expand Down Expand Up @@ -250,4 +252,4 @@ Big thanks to all the sponsors, some of whom have been supporting Code Hike from

Special thanks to the [GitHub Accelerator](https://github.blog/news-insights/company-news/github-accelerator-our-first-cohort-and-whats-next/) for selecting Code Hike for the first cohort of the program. Their sponsorship and guidance have been a huge help in getting Code Hike to this point.

I'm excited about what’s next for Code Hike. You can [become a sponsor](https://github.com/sponsors/code-hike?metadata_source=v1-blog) to help us make it happen, every little bit helps!
I'm excited about what’s next for Code Hike. You can [become a sponsor](https://github.com/sponsors/code-hike?metadata_source=v1-blog) to help us make it happen!
4 changes: 2 additions & 2 deletions apps/web/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Start from a template with Next.js, MDX, Tailwind CSS:
npx create-next-app -e https://github.com/code-hike/v1-starter
```

Or try it online on [StackBlitz](https://stackblitz.com/github/code-hike/v1-starter) or [CodeSandbox](https://codesandbox.io/s/github/code-hike/v1-starter).
Or try it online on [StackBlitz](https://stackblitz.com/github/code-hike/v1-starter?file=app%2Fpage.mdx) or [CodeSandbox](https://codesandbox.io/s/github/code-hike/v1-starter?file=app%2Fpage.mdx).

For more complete starters, see the [examples](/docs/examples) page.

Expand Down Expand Up @@ -90,7 +90,7 @@ For examples using various frameworks, see the [examples](/docs/examples).
1. Install Code Hike:

```bash -c
npm install codehike@beta
npm install codehike
```

2. Set up MDX plugins:
Expand Down
2 changes: 1 addition & 1 deletion apps/web/ui/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function NavBar({ version }: { version: string }) {
function VersionNav({ version }: { version: string }) {
return (
<DropdownMenu>
<DropdownMenuTrigger className="text-sm bg-yellow-200 dark:bg-yellow-900 text-yellow-900 dark:text-yellow-200 rounded-lg px-2">
<DropdownMenuTrigger className="text-sm bg-secondary text-primary rounded-lg px-2">
{version}
</DropdownMenuTrigger>
<DropdownMenuContent>
Expand Down
Loading

0 comments on commit 4928cbb

Please sign in to comment.