Skip to content

Commit

Permalink
feat: set fullscreen layout and remove autodocs for layout stories
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Jul 29, 2024
1 parent fc60357 commit 864a454
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const meta: Meta<ArticlePageSchemaType> = {
title: "Next/Layouts/Article",
component: ArticleLayout,
argTypes: {},
tags: ["!autodocs"],
parameters: {
layout: "fullscreen",
themes: {
themeOverride: "Isomer Next",
},
Expand All @@ -17,6 +19,7 @@ export default meta
type Story = StoryObj<typeof ArticleLayout>

export const Default: Story = {
name: "Article",
args: {
layout: "article",
site: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const meta: Meta<CollectionPageSchemaType> = {
title: "Next/Layouts/Collection",
component: CollectionLayout,
argTypes: {},
tags: ["!autodocs"],
parameters: {
layout: "fullscreen",
themes: {
themeOverride: "Isomer Next",
},
Expand All @@ -17,6 +19,7 @@ export default meta
type Story = StoryObj<typeof CollectionLayout>

export const Default: Story = {
name: "Collection",
args: {
layout: "collection",
site: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const meta: Meta<typeof Content> = {
title: "Next/Layouts/Content",
component: Content,
argTypes: {},
tags: ["!autodocs"],
parameters: {
layout: "fullscreen",
themes: {
themeOverride: "Isomer Next",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const meta: Meta<typeof Homepage> = {
component: Homepage,
render: Template,
argTypes: {},
tags: ["!autodocs"],
parameters: {
layout: "fullscreen",
themes: {
themeOverride: "Isomer Next",
},
Expand All @@ -33,6 +35,7 @@ type Story = StoryObj<typeof Homepage>
const TEST_CLIENT_ID = "5485bb61-2d5d-440a-bc37-91c48fc0c9d4"

export const Default: Story = {
name: "Homepage",
args: {
layout: "homepage",
site: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const meta: Meta<NotFoundPageSchemaType> = {
title: "Next/Layouts/NotFound",
component: NotFoundLayout,
argTypes: {},
tags: ["!autodocs"],
parameters: {
layout: "fullscreen",
themes: {
themeOverride: "Isomer Next",
},
Expand All @@ -17,6 +19,7 @@ export default meta
type Story = StoryObj<NotFoundPageSchemaType>

export const Default: Story = {
name: "NotFound",
args: {
layout: "notfound",
site: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const meta: Meta<typeof Template> = {
title: "Next/Layouts/Search",
component: Template,
argTypes: {},
tags: ["!autodocs"],
parameters: {
themes: {
themeOverride: "Isomer Next",
Expand Down

0 comments on commit 864a454

Please sign in to comment.