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

Bring in latest website changes #6710

Merged
merged 80 commits into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
4b06d75
Update index.tsx (#6278)
bladey Aug 8, 2021
7349553
Fix updates bit on the website (#6287)
emmatown Aug 10, 2021
4746a22
Content management update (#6282)
raveling Aug 10, 2021
512b8de
Fixed whitespace (#6283)
raveling Aug 10, 2021
6eda6b6
Update Header.tsx (#6289)
bladey Aug 10, 2021
3d4c268
Add CTA block for Web Box eCommerce Course (#6273)
raveling Aug 10, 2021
f97a9ca
Content update (#6290)
raveling Aug 10, 2021
2963ac7
Style fixes (#6291)
raveling Aug 10, 2021
d534409
Added new content to /updates (#6300)
raveling Aug 11, 2021
27e0d19
Update fields.mdx (#6304)
bladey Aug 12, 2021
e29b5e4
Fixed typo (#6322)
raveling Aug 15, 2021
64e6c1d
Added top margin to docs page component (#6301)
raveling Aug 16, 2021
c1df1e5
Added styles to table (#6315)
raveling Aug 16, 2021
4427bbc
Un-nest <Head> tags. (#6327)
bladey Aug 16, 2021
c24a290
Fixed link value (#6328)
raveling Aug 16, 2021
36f6550
Update `website_live` (#6336)
bladey Aug 17, 2021
14861b4
Merge branch 'master' into website_live
bladey Aug 17, 2021
712bea2
Release notes for 2021-08-17 release (#6345)
bladey Aug 17, 2021
46b2dc6
Fixed markdown for bold styles (#6346)
raveling Aug 17, 2021
44d6ec1
Update wording on upgrade guide and release notes (#6353)
timleslie Aug 17, 2021
cdde508
Updates nav additions (#6366)
raveling Aug 19, 2021
d43a1d8
Update new-graphql-api.mdx (#6375)
bladey Aug 19, 2021
e7ed4d3
Updated URLs (#6374)
raveling Aug 19, 2021
67e0756
Tweaking docs for Next.js walkthrough for latest version (#6383)
bladey Aug 20, 2021
a3fb2ea
Added upgrade notices to GraphQL API related pages (#6387)
raveling Aug 22, 2021
31a2064
Fixed link color inconsistency (#6388)
raveling Aug 22, 2021
80f122f
Add note to use `yarn` in the embedded Next.js guide (#6384)
bladey Aug 23, 2021
2da90e0
[WIP] Related content links (#6360)
raveling Aug 24, 2021
903e5ce
Added 2x testimonials (#6400)
raveling Aug 25, 2021
5d4841d
Typo (#6405)
raveling Aug 25, 2021
b6c45a9
Replaced absolute links with relative (#6406)
raveling Aug 25, 2021
f8ba665
Fix broken link (#6407)
bladey Aug 25, 2021
38bd965
Add missing <Link>'s in docs pages. (#6421)
bladey Aug 27, 2021
776da00
Add `Edit on GitHub` button to all docs pages (#6423)
bladey Aug 27, 2021
9b02e0d
Tab index improvements. (#6427)
bladey Aug 30, 2021
61794fa
Update EditButton.tsx (#6428)
bladey Aug 30, 2021
dd357d0
Fix styles on document field demo on website live (#6447)
emmatown Sep 2, 2021
3443efa
Content edits (#6451)
raveling Sep 2, 2021
67f3eeb
Changes to global header (#6452)
raveling Sep 2, 2021
6eeaf63
Update `website_live` with `master` (#6472)
bladey Sep 6, 2021
9604f3c
Merge branch 'master' into website_live
timleslie Sep 6, 2021
8050afc
Remove link to non-existant document (#6475)
timleslie Sep 6, 2021
0da0f96
typo (#6485)
raveling Sep 7, 2021
99ef1f7
content updates (#6486)
raveling Sep 7, 2021
962e959
Fixed typos (#6491)
raveling Sep 7, 2021
77c6d37
Revert project creation instructions (#6492)
raveling Sep 7, 2021
53040ee
typo fix (#6493)
raveling Sep 7, 2021
b9e22bf
Make all docs pages editable via Github (#6494)
raveling Sep 7, 2021
23679dc
Fix link to item section in page (#6502)
gautamsi Sep 8, 2021
7424d7b
Add filter api links to access control api page (#6506)
loklaan Sep 9, 2021
a9a05e2
Fix explanation of allowed Field-level operations (#6510)
loklaan Sep 9, 2021
cd2def9
Update embedded-mode-with-sqlite-nextjs.mdx (#6516)
bladey Sep 9, 2021
308edc9
Deployment examples (#6527)
raveling Sep 10, 2021
4b8b179
Deployment examples (#6528)
raveling Sep 10, 2021
34e3376
Update DocumentEditorDemo.tsx (#6529)
bladey Sep 10, 2021
ec90939
`create-keystone-app` outputed URLs sometimes have hidden characters,…
bladey Sep 12, 2021
d45d89f
Landing page cta (#6464)
raveling Sep 13, 2021
617dc19
Updated `Quote` component styles in Docsfield Demo (#6541)
raveling Sep 13, 2021
081e3f4
Update docs. (#6561)
bladey Sep 15, 2021
1254dc2
Updates. (#6563)
bladey Sep 15, 2021
8c5877f
Update getting-started-with-create-keystone-app.mdx (#6566)
bladey Sep 15, 2021
e6f7a2b
Improve documentation for chromeless feature (#6572)
raveling Sep 16, 2021
7f9df0c
Update custom-admin-ui-logo.mdx (#6585)
bladey Sep 16, 2021
1c3a8f5
Q&A banner for website (#6589)
bladey Sep 17, 2021
1e374f3
Update schema.mdx (#6594)
timleslie Sep 17, 2021
cbf93ee
Typo (#6628)
noor-codes Sep 22, 2021
310bc1f
Update banner post Q&A. (#6633)
bladey Sep 22, 2021
6e5eac1
Adding Splitbee. (#6636)
bladey Sep 23, 2021
889315c
Edit suggestions (#6586)
raveling Sep 23, 2021
b44c11c
Youtube 2 (#6646)
raveling Sep 24, 2021
a44ae82
Added railway example (#6648)
raveling Sep 24, 2021
97ec32d
Update resolvedData docs for relationships - take 2 (#6665)
timleslie Sep 28, 2021
ae2134b
Update Header.tsx (#6661)
bladey Sep 28, 2021
8ffafe8
Try bumping the cache version number (#6673)
timleslie Sep 29, 2021
7b44ea2
New updates for `/updates` (#6671)
bladey Sep 29, 2021
c127ab7
Create email-welcome-banner.png (#6677)
bladey Sep 29, 2021
3ae9031
Remove reference to defaultValue on relationship field (#6679)
timleslie Sep 29, 2021
f87d4b6
Update virtual-fields.mdx (#6695)
jakegiri Oct 4, 2021
bb84006
Merge branch 'website_live' into bring-in-latest-website-changes
bladey Oct 5, 2021
e853505
Merge branch 'master' into bring-in-latest-website-changes
bladey Oct 5, 2021
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
28 changes: 14 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ jobs:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-v4-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v4-
${{ runner.os }}-yarn-v5-

- name: Install Dependencies
run: yarn
Expand Down Expand Up @@ -136,9 +136,9 @@ jobs:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-v4-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v4-
${{ runner.os }}-yarn-v5-

- name: Install Dependencies
run: yarn
Expand Down Expand Up @@ -191,9 +191,9 @@ jobs:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-v4-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v4-
${{ runner.os }}-yarn-v5-

- name: Install Dependencies
run: yarn
Expand Down Expand Up @@ -229,9 +229,9 @@ jobs:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-v4-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v4-
${{ runner.os }}-yarn-v5-

- name: Install Dependencies
run: yarn
Expand Down Expand Up @@ -290,9 +290,9 @@ jobs:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-v4-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v4-
${{ runner.os }}-yarn-v5-

- name: Install Dependencies
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
Expand Down Expand Up @@ -340,9 +340,9 @@ jobs:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-v4-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v4-
${{ runner.os }}-yarn-v5-

- name: Install Dependencies
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
Expand Down Expand Up @@ -379,9 +379,9 @@ jobs:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-v4-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v4-
${{ runner.os }}-yarn-v5-

- name: Install Dependencies
run: yarn
Expand Down
4 changes: 4 additions & 0 deletions docs/components/Announce.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export function Announce({ children, ...props }: AnnounceProps) {
<div
css={{
'--focus': '#fff',
// standard styling (blue)
background: 'var(--brand-bg)',
// special styling (orange gradient)
// backgroundColor: 'var(--grad4-2)',
// backgroundImage: `linear-gradient(116.01deg, var(--grad4-2), var(--grad4-1))`,
color: 'var(--brand-text)',
padding: '1rem',
textAlign: 'center',
Expand Down
30 changes: 27 additions & 3 deletions docs/components/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,38 @@ import { Announce } from '../components/Announce';
import { TableOfContents } from './docs/TableOfContents';
import { Wrapper } from './primitives/Wrapper';
import { EditButton } from './primitives/EditButton';
// import { Emoji } from './primitives/Emoji';
import { Breadcrumbs } from './Breadcrumbs';
import { Sidebar } from './docs/Sidebar';
import { Stack } from './primitives/Stack';
import { Header } from './Header';
import { Footer } from './Footer';

function Announcement() {
// special announcement
// return (
// <Announce>
// <Emoji symbol="🎤" alt="Microphone" />{' '}
// <a
// href="https://306ucv95ugh.typeform.com/to/TbFERbep"
// rel="noopener noreferrer"
// target="_blank"
// >
// Join us
// </a>{' '}
// for our first <strong>Community Q&A</strong> next{' '}
// <strong>Tuesday Sep 21st @ 3–4pm AEST</strong> –{' '}
// <a
// href="https://306ucv95ugh.typeform.com/to/TbFERbep"
// rel="noopener noreferrer"
// target="_blank"
// >
// Register now
// </a>
// !
// </Announce>
// );
// standard announcement
return (
<Announce>
Keystone 6 is in <Link href="/updates/roadmap">Community Preview</Link>! For Keystone 5 docs
Expand Down Expand Up @@ -131,9 +156,8 @@ export function DocsPage({
css={{ justifyContent: 'space-between', alignItems: 'baseline' }}
>
<Breadcrumbs />
{!isUpdatesPage && (
<EditButton pathName={pathname} isIndexPage={isIndexPage} editPath={editPath} />
)}

<EditButton pathName={pathname} isIndexPage={isIndexPage} editPath={editPath} />
</Stack>
{children}
</main>
Expand Down
21 changes: 20 additions & 1 deletion docs/components/Socials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import { jsx } from '@emotion/react';
import { HTMLAttributes } from 'react';

import { Twitter } from './icons/Twitter';
import { YouTube } from './icons/YouTube';
import { Slack } from './icons/Slack';

export function Socials(props: HTMLAttributes<HTMLElement>) {
return (
<div
css={{
display: 'inline-grid',
gridTemplateColumns: '1fr 1fr',
gridTemplateColumns: '1fr 1fr 1fr',
gap: 'var(--space-large)',
alignItems: 'center',
marginLeft: 'auto',
Expand Down Expand Up @@ -67,6 +68,24 @@ export function Socials(props: HTMLAttributes<HTMLElement>) {
>
<Slack css={{ height: '1.5em' }} />
</a>
<a
href="https://www.youtube.com/channel/UClWScN0YMgpN7swHVaEPKuQ"
target="_blank"
rel="noopener noreferrer"
css={{
display: 'inline-flex',
padding: 0,
justifyContent: 'center',
borderRadius: '100%',
color: 'currentColor',
transition: 'color 0.3s ease',
':hover': {
color: '#fb0202',
},
}}
>
<YouTube css={{ height: '2em' }} />
</a>
</div>
);
}
4 changes: 3 additions & 1 deletion docs/components/docs/DocumentEditorDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,17 @@ export const DocumentEditorDemo = () => {
'blockquote, p, pre': {
marginTop: '1em',
marginBottom: '1em',
lineHeight: 1.75,
},
'h1,h2,h3,h4,h5,h6': { fontWeight: 'bold', margin: 0 },
'h1,h2,h3,h4,h5,h6': { fontWeight: 'bold', margin: 0, lineHeight: 1.75 },
h1: { fontSize: 'var(--font-xxlarge)' },
h2: { fontSize: 'var(--font-large)' },
h3: { fontSize: 'var(--font-medium)' },
h5: { fontSize: 'var(--font-xsmall)' },
h6: { fontSize: 'var(--font-xxsmall)' },
'ul, ol': {
paddingLeft: 40,
lineHeight: 1.75,
},
}}
>
Expand Down
4 changes: 2 additions & 2 deletions docs/components/docs/GitHubExamplesCTA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function GitHubExamplesCTA() {
margin: '0 1rem 0.5rem 0',
}}
>
See the full set of examples in our
All example projects live in the
</span>
<Button
as="a"
Expand All @@ -25,7 +25,7 @@ export function GitHubExamplesCTA() {
target="_blank"
rel="noopener noreferrer"
>
GitHub Repo <ArrowR />
Keystone GitHub repo <ArrowR />
</Button>
</Alert>
);
Expand Down
23 changes: 23 additions & 0 deletions docs/components/docs/Keystone5DocsCTA.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';

import { Alert } from '../primitives/Alert';

export function Keystone5DocsCTA() {
return (
<Alert css={{ margin: '2rem 0' }}>
<span
css={{
display: 'inline-block',
margin: '0 1rem 0rem 0',
}}
>
Using <strong>Keystone 5</strong>? Find the docs at{' '}
<a href="https://v5.keystonejs.com/documentation" target="_blank">
v5.keystonejs.com
</a>
</span>
</Alert>
);
}
41 changes: 25 additions & 16 deletions docs/components/docs/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Badge } from '../primitives/Badge';
import { Type } from '../primitives/Type';
import { Emoji } from '../primitives/Emoji';

type SectionProps = { label: string; children: ReactNode };
type SectionProps = { label?: string; children: ReactNode };
export function Section({ label, children }: SectionProps) {
return (
<div
Expand All @@ -22,18 +22,20 @@ export function Section({ label, children }: SectionProps) {
marginTop: 'var(--space-xlarge)',
}}
>
<Type
as="h3"
look="body16bold"
margin="var(--space-xlarge) 0 var(--space-large) 0"
color="var(--text-heading)"
css={{
textTransform: 'uppercase',
fontWeight: 700,
}}
>
{label}
</Type>
{label && (
<Type
as="h3"
look="body16bold"
margin="var(--space-xlarge) 0 var(--space-large) 0"
color="var(--text-heading)"
css={{
textTransform: 'uppercase',
fontWeight: 700,
}}
>
{label}
</Type>
)}
{children}
</div>
);
Expand Down Expand Up @@ -142,8 +144,14 @@ export function DocsNavigation() {
>
<PrimaryNavItem href="/docs">Docs Home</PrimaryNavItem>
<PrimaryNavItem href="/docs/walkthroughs">Walkthroughs</PrimaryNavItem>
<PrimaryNavItem href="/docs/examples">Examples</PrimaryNavItem>
<Section label="Guides">
<Section>
<PrimaryNavItem href="/docs/examples">Examples</PrimaryNavItem>
<NavItem href="/docs/examples/#base-projects">Basic</NavItem>
<NavItem href="/docs/examples/#feature-projects">Feature</NavItem>
<NavItem href="/docs/examples/#deployment-projects">Deployment</NavItem>
</Section>
<Section>
<PrimaryNavItem href="/docs/guides">Guides</PrimaryNavItem>
<NavItem href="/docs/guides/cli">Command Line</NavItem>
<NavItem href="/docs/guides/relationships">Relationships</NavItem>
<NavItem href="/docs/guides/filters">
Expand Down Expand Up @@ -180,7 +188,8 @@ export function DocsNavigation() {
Custom Field Views
</NavItem>
</Section>
<Section label="API">
<Section>
<PrimaryNavItem href="/docs/apis">APIs</PrimaryNavItem>
<SubHeading>Config</SubHeading>
<NavItem href="/docs/apis/config">Config API</NavItem>
<NavItem href="/docs/apis/schema">Schema API</NavItem>
Expand Down
26 changes: 26 additions & 0 deletions docs/components/icons/Bulb.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/** @jsx jsx */
import { jsx } from '@emotion/react';

import { Gradients, IconProps } from './util';

export function Bulb({ grad, ...props }: IconProps) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
aria-label="Bulb"
role="img"
fill="none"
stroke={grad ? `url(#Bulb-${grad})` : 'currentColor'}
{...props}
>
<Gradients name="Bulb" />
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M9.66353 17H14.3365M12 3V4M18.364 5.63604L17.6569 6.34315M21.0001 11.9999H20.0001M4.00005 11.9999H3.00005M6.34315 6.34315L5.63604 5.63604M8.46447 15.5356C6.51184 13.5829 6.51184 10.4171 8.46447 8.46449C10.4171 6.51187 13.5829 6.51187 15.5355 8.46449C17.4882 10.4171 17.4882 13.5829 15.5355 15.5356L14.9884 16.0827C14.3556 16.7155 14 17.5739 14 18.469V19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19V18.469C10 17.5739 9.64445 16.7155 9.01156 16.0827L8.46447 15.5356Z"
/>
</svg>
);
}
26 changes: 26 additions & 0 deletions docs/components/icons/Question.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/** @jsx jsx */
import { jsx } from '@emotion/react';

import { Gradients, IconProps } from './util';

export function Question({ grad, ...props }: IconProps) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
aria-label="Question"
role="img"
fill="none"
stroke={grad ? `url(#Question-${grad})` : 'currentColor'}
{...props}
>
<Gradients name="Question" />
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M8.22766 9C8.77678 7.83481 10.2584 7 12.0001 7C14.2092 7 16.0001 8.34315 16.0001 10C16.0001 11.3994 14.7224 12.5751 12.9943 12.9066C12.4519 13.0106 12.0001 13.4477 12.0001 14M12 17H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z"
/>
</svg>
);
}
26 changes: 26 additions & 0 deletions docs/components/icons/Video.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/** @jsx jsx */
import { jsx } from '@emotion/react';

import { Gradients, IconProps } from './util';

export function Video({ grad, ...props }: IconProps) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
aria-label="Video"
role="img"
fill="none"
stroke={grad ? `url(#Video-${grad})` : 'currentColor'}
{...props}
>
<Gradients name="Video" />
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M15 10L19.5528 7.72361C20.2177 7.39116 21 7.87465 21 8.61803V15.382C21 16.1253 20.2177 16.6088 19.5528 16.2764L15 14M5 18H13C14.1046 18 15 17.1046 15 16V8C15 6.89543 14.1046 6 13 6H5C3.89543 6 3 6.89543 3 8V16C3 17.1046 3.89543 18 5 18Z"
/>
</svg>
);
}
Loading