-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start of upgrade to v5 for Astro... so far we have a config bug * Refactor StudioCMS integration hooks and installation workflow * Refactor StudioCMS integration URL in astro.config.mts * Refactor StudioCMS integration URL in astro.config.mts * Refactor response headers in badFormDataEntry function * Refactor StudioCMS integration URL and add security configuration * test * Refactor link generation in TestIsland component * Refactor TestIsland component to include data-astro-rerun attribute * Refactor TestIsland component to remove data-astro-rerun attribute * Refactor TestIsland component to include data-astro-reload attribute in link generation * test * Refactor TestIsland component to remove data-astro-reload attribute in link generation * Refactor TestIsland component to include data-astro-reload attribute in link generation * Refactor SingleSidebar component to remove console.log statements and optimize event listeners * Refactor Layout component to include dynamic sidebar rendering based on the sidebar prop * move 404 to dashboard * test * Refactor 404 page to make the "Go back" button full width * Refactor 404 page to include error message and make "Go back" button full width * Refactor 404 page to improve error message and button styling * Refactor 404 page to move inject404Route to dashboardConfig * Refactor 404 page to move inject404Route to dashboardConfig * Refactor 404 page to remove data-theme attribute from html tag * Update docs to use new starlight loaders and verify they are working * Refactor StudioCMS to export StudioCMSPlugin type * Refactor typedocHelpers to fix file path in getFilePathToPackage function * refactor and cleanup * Refactor StudioCMS renderer to use Astro Remark renderer * Refactor StudioCMS renderer to use Astro Remark renderer and export StudioCMSPlugin type * Refactor StudioCMS UI package catalog to mark it as released * Refactor contributors.config.ts to include 'withstudiocms/ui' repository in the contributor list * Refactor contributors.config.ts to include 'withstudiocms/ui' repository in the contributor list * Refactor environment-variables.mdx and gallery.mdx files * Refactor StudioCMS configuration files * Refactor StudioCMS configuration files * Refactor StudioCMS configuration files and remove unused strings module * Update docs/src/content/docs/start-here/gallery.mdx Co-authored-by: Jacob Jenkins <[email protected]> --------- Co-authored-by: Jacob Jenkins <[email protected]>
- Loading branch information
1 parent
73b1094
commit 0805c10
Showing
94 changed files
with
1,577 additions
and
3,965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
"prototools", | ||
"robotstxt", | ||
"studiocms", | ||
"twoslash", | ||
"withstudiocms" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { defineCollection, reference, z } from 'astro:content'; | ||
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders'; | ||
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema'; | ||
import { glob } from 'astro/loaders'; | ||
|
||
const packageCatalogSchema = z.object({ | ||
name: z.string(), | ||
description: z.string(), | ||
docsLink: z.string(), | ||
githubURL: z.string(), | ||
catalog: z | ||
.union([z.literal('studiocms'), z.literal('community')]) | ||
.optional() | ||
.default('studiocms'), | ||
isPlugin: z.boolean().optional().default(false), | ||
publiclyUsable: z.boolean().optional().default(false), | ||
released: z.boolean().optional().default(true), | ||
}); | ||
|
||
const baseSchema = z.object({ | ||
type: z.literal('base').optional().default('base'), | ||
i18nReady: z.boolean().optional().default(false), | ||
}); | ||
|
||
const integrationSchema = baseSchema.extend({ | ||
type: z.literal('integration'), | ||
catalogEntry: reference('package-catalog'), | ||
}); | ||
|
||
const redirectSchema = baseSchema.extend({ | ||
type: z.literal('redirect'), | ||
redirect: z.string(), | ||
}); | ||
|
||
export const collections = { | ||
docs: defineCollection({ | ||
loader: docsLoader(), | ||
schema: docsSchema({ extend: z.union([baseSchema, integrationSchema, redirectSchema]) }), | ||
}), | ||
i18n: defineCollection({ | ||
loader: i18nLoader(), | ||
schema: i18nSchema({ | ||
extend: z.object({ | ||
'site-title.labels.docs': z.string().optional(), | ||
'site-title.labels.main-site': z.string().optional(), | ||
'site-title.labels.live-demo': z.string().optional(), | ||
'sponsors.sponsoredby': z.string().optional(), | ||
'package-catalog.readmore.start': z.string().optional(), | ||
'package-catalog.readmore.end': z.string().optional(), | ||
'integration-labels.changelog': z.string().optional(), | ||
'contributors.core-packages': z.string().optional(), | ||
'contributors.ui-library': z.string().optional(), | ||
'contributors.devapps': z.string().optional(), | ||
'contributors.plugins': z.string().optional(), | ||
'contributors.documentation': z.string().optional(), | ||
'contributors.website': z.string().optional(), | ||
'contributors.bots': z.string().optional(), | ||
}), | ||
}), | ||
}), | ||
'package-catalog': defineCollection({ | ||
loader: glob({ pattern: '*.json', base: 'src/content/package-catalog' }), | ||
schema: packageCatalogSchema, | ||
}), | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.