Skip to content

Commit

Permalink
why tf
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpetryk committed Feb 25, 2024
1 parent 8e3ca94 commit 4327bb9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions docs/app/guides/display/mafs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import * as ZoomExample from "guide-examples/display/viewbox/ZoomExample"
import * as StretchViewboxExample from "guide-examples/display/viewbox/StretchViewbox"
import Code from "components/Code"

export async function generateMetadata() {
return {
title: "Mafs",
}
}
// export async function generateMetadata() {
// return {
// title: "Mafs",
// }
// }

function MafsPage() {
return (
Expand Down
1 change: 1 addition & 0 deletions docs/app/guides/get-started/hello-f-x/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as Subdivions from "guide-examples/hello-fx/subdivisions"
import * as Sine from "guide-examples/hello-fx/sine"
import * as SinePi from "guide-examples/hello-fx/sine-pi"
import * as Draggable from "guide-examples/hello-fx/draggable"

import type { Metadata } from "next"

export const metadata: Metadata = {
Expand Down
2 changes: 1 addition & 1 deletion docs/components/CodeAndExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface Props {

function CodeAndExample({ collapsible: collapsibleProp = true, example, clean = true }: Props) {
const Component = example.default
let source = example.sourceCode!
let source = example.sourceCode ?? ""

if (clean) {
const remove = [
Expand Down
4 changes: 2 additions & 2 deletions docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ["mafs"],
webpack: (config, { isServer }) => {
// Add a loader that attaches source code to files in guide-examples

webpack: (config) => {
config.module.rules.push({
test: /\.tsx?$/,
include: /guide-examples/,
Expand Down

0 comments on commit 4327bb9

Please sign in to comment.