Skip to content

Commit

Permalink
Add missing <Link>'s in docs pages. (#6421)
Browse files Browse the repository at this point in the history
  • Loading branch information
bladey authored Aug 27, 2021
1 parent f8ba665 commit 38bd965
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 28 deletions.
6 changes: 5 additions & 1 deletion docs/pages/docs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/react';
import Link from 'next/link';

import { CommunitySlackCTA } from '../../components/docs/CommunitySlackCTA';
import { Examples } from '../../components/docs/ExamplesList';
Expand Down Expand Up @@ -40,7 +41,10 @@ export default function Docs() {
Watch Jed's Prisma Day talk to learn about what’s driving the development of Keystone 6,
and how it delivers a developer experience that combines features, flexibility, and the
perfect amount of abstraction to get started fast, and grow as you learn.{' '}
<a href="/updates/prisma-day-2021">Read the full transcript</a>.
<Link href="/updates/prisma-day-2021">
<a>Read the full transcript</a>
</Link>
.
</Type>
</div>
<div>
Expand Down
109 changes: 82 additions & 27 deletions docs/pages/updates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,14 @@ export default function WhatsNew() {
<br />
<br />
We’ve made the experience of working with Keystone’s GraphQL API easier to program and
reason about: We've <a href="/updates/new-graphql-api">written a complete guide</a> to the
improvements we've made, and it includes a{' '}
<a href="/updates/new-graphql-api#upgrade-checklist">
checklist of the steps you need to take to upgrade your Keystone projects
</a>
reason about: We've{' '}
<Link href="/updates/new-graphql-api">
<a>written a complete guide</a>
</Link>{' '}
to the improvements we've made, and it includes a{' '}
<Link href="/updates/new-graphql-api#upgrade-checklist">
<a>checklist of the steps you need to take to upgrade your Keystone projects</a>
</Link>
.
<br />
<br />
Expand All @@ -189,15 +192,25 @@ export default function WhatsNew() {
We're opening Admin UI up to support a more personal content experience. Now you can:
<ul>
<li>
embed your own <a href="/docs/guides/custom-admin-ui-logo">custom logo</a>,
embed your own{' '}
<Link href="/docs/guides/custom-admin-ui-logo">
<a>custom logo</a>
</Link>
,
</li>
<li>
add <a href="/docs/guides/custom-admin-ui-pages">custom pages</a> with Admin UI
routes, and
add{' '}
<Link href="/docs/guides/custom-admin-ui-pages">
<a>custom pages</a>
</Link>{' '}
with Admin UI routes, and
</li>
<li>
link to them (and elsewhere) with{' '}
<a href="/docs/guides/custom-admin-ui-navigation">custom navigation</a>.
<Link href="/docs/guides/custom-admin-ui-navigation">
<a>custom navigation</a>
</Link>
.
</li>
</ul>
To deliver a more productive editor experience that's aligned with the needs and brand of
Expand Down Expand Up @@ -243,13 +256,23 @@ export default function WhatsNew() {
Next.js and Tailwind, that gives you:
<ul>
<li>
Public <a href="/docs/guides/auth">auth</a> and signup
Public{' '}
<Link href="/docs/guides/auth">
<a>auth</a>
</Link>{' '}
and signup
</li>
<li>
Role-based <a href="/docs/guides/access-control">access control</a>
Role-based{' '}
<Link href="/docs/guides/access-control">
<a>access control</a>
</Link>
</li>
<li>
Custom components in the <a href="/docs/guides/document-field-demo">document field</a>
Custom components in the{' '}
<Link href="/docs/guides/document-field-demo">
<a>document field</a>
</Link>
</li>
</ul>
Editors can embed audience Polls in post content, and authenticated visitors can make
Expand All @@ -267,7 +290,11 @@ export default function WhatsNew() {
<Timeline date="10th July 2021" />
<Box heading="Watch Jed's Prisma Day talk">
Jed's talk at Prisma Day 2021 is a great overview into what makes Keystone special. Watch
below, or <a href="/updates/prisma-day-2021">read the full transcript</a>.
below, or{' '}
<Link href="/updates/prisma-day-2021">
<a>read the full transcript</a>
</Link>
.
<div
css={{
position: 'relative',
Expand Down Expand Up @@ -297,30 +324,54 @@ export default function WhatsNew() {
<Timeline date="29th June 2021" />
<Box heading="New website">
We've launched our new website for <strong>Keystone 6</strong>! There’s a new home page,
and background on <a href="/why-keystone">why Keystone</a> is built for projects that need
to scale on their own terms. Navigating the docs is easier with breadcrumbs, index pages
for <a href="/docs/walkthroughs">Walkthroughs</a>, <a href="/docs/guides">Guides</a>, and{' '}
<a href="/docs/apis">APIs</a>, and a better mobile experience. We hope you like it ❤️
and background on{' '}
<Link href="/why-keystone">
<a>why Keystone</a>
</Link>{' '}
is built for projects that need to scale on their own terms. Navigating the docs is easier
with breadcrumbs, index pages for{' '}
<Link href="/docs/walkthroughs">
<a>Walkthroughs</a>
</Link>
,{' '}
<Link href="/docs/guides">
<a>Guides</a>
</Link>
, and{' '}
<Link href="/docs/apis">
<a>APIs</a>
</Link>
, and a better mobile experience. We hope you like it ❤️
</Box>
<Timeline date="21st June 2021" />
<Box heading="New guides">
In our contuing efforts to improve the developer documentation for Keystone 6, we’ve
written the following guides:
<ul>
<li>
<a href="/docs/guides/virtual-fields">Virtual fields</a>
<Link href="/docs/guides/virtual-fields">
<a>Virtual fields</a>
</Link>
</li>
<li>
<a href="/docs/guides/relationships">Relationships</a>
<Link href="/docs/guides/relationships">
<a>Relationships</a>
</Link>
</li>
<li>
<a href="/docs/guides/hooks">Hooks</a>
<Link href="/docs/guides/hooks">
<a>Hooks</a>
</Link>
</li>
<li>
<a href="/docs/guides/filters">Query Filters</a>
<Link href="/docs/guides/filters">
<a>Query Filters</a>
</Link>
</li>
<li>
<a href="/docs/guides/testing">Testing</a>
<Link href="/docs/guides/testing">
<a>Testing</a>
</Link>
</li>
</ul>
</Box>
Expand All @@ -342,11 +393,15 @@ export default function WhatsNew() {
A long awaited feature: you can now find an item by unique fields in your schema. It works
for{' '}
<InlineCode>
<a href="/docs/apis/fields#text">text</a>
<Link href="/docs/apis/fields#text">
<a>text</a>
</Link>
</InlineCode>{' '}
and{' '}
<InlineCode>
<a href="/docs/apis/fields#integer">integer</a>
<Link href="/docs/apis/fields#integer">
<a>integer</a>
</Link>
</InlineCode>{' '}
fields that have <InlineCode>isUnique: true</InlineCode> set.
</Box>
Expand Down Expand Up @@ -388,9 +443,9 @@ export default function WhatsNew() {
You can now use SQLite to store data via Prisma. It includes support for the{' '}
<InlineCode>file</InlineCode> and <InlineCode>cloudinary</InlineCode> field types, and
lets you{' '}
<a href="/docs/walkthroughs/embedded-mode-with-sqlite-nextjs">
embed Keystone inside a Next.js frontend app
</a>
<Link href="/docs/walkthroughs/embedded-mode-with-sqlite-nextjs">
<a>embed Keystone inside a Next.js frontend app</a>
</Link>
.
</Box>
<Timeline date="6th April 2021" />
Expand Down

1 comment on commit 38bd965

@vercel
Copy link

@vercel vercel bot commented on 38bd965 Aug 27, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.