chore(site): rename website to site

This commit is contained in:
Darius Cepulis
2025-10-28 13:44:03 -05:00
parent 5dbaddc513
commit d1583dd47d
168 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -5,10 +5,10 @@ on:
branches:
- main
paths:
- 'website/**'
- 'site/**'
pull_request:
paths:
- 'website/**'
- 'site/**'
jobs:
test:
@@ -31,4 +31,4 @@ jobs:
run: pnpm install
- name: Run website tests
run: pnpm --filter website test
run: pnpm --filter site test
+8 -8
View File
@@ -13,7 +13,7 @@ This is a Video.js 10 monorepo organized by platform/runtime with a clear depend
- **React package** (`packages/react`) - React-specific implementation
- **React Native package** (`packages/react-native`) - React Native implementation
- **Examples** (`examples/*`) - Demo applications for different platforms
- **Website** (`website/`) - Astro-based website, including documentation and blog
- **Website** (`site/`) - Astro-based website, including documentation and blog
### Dependency Hierarchy
@@ -61,7 +61,7 @@ pnpm dev:html
pnpm dev:react
# Run website
pnpm dev:website
pnpm dev:site
# Run all dev servers in parallel
pnpm dev
@@ -74,7 +74,7 @@ pnpm dev
pnpm --filter @videojs/core build
# Run website independently
cd website
cd site
pnpm dev
# Work in specific package directory
@@ -124,20 +124,20 @@ This uses pnpm workspaces with the following workspace patterns:
- `packages/react` - React package
- `packages/react-native` - React Native package
- `examples/*` - Demo applications
- `website` - Website (Astro)
- `site` - Website (Astro)
Internal dependencies use `workspace:*` protocol for linking between packages.
### Website
The `website/` directory contains an Astro-based website with its own dependencies and build process. It's integrated into the monorepo workspace but can be developed independently:
The `site/` directory contains an Astro-based website with its own dependencies and build process. It's integrated into the monorepo workspace but can be developed independently:
```bash
# From root - runs via Turbo
pnpm dev:website
pnpm dev:site
# From website directory - runs directly
cd website && pnpm dev
# From site directory - runs directly
cd site && pnpm dev
```
The website uses Astro with MDX support for content authoring.
+2 -2
View File
@@ -27,8 +27,8 @@ export default antfu(
'**/dist/',
'**/styles/vjs.css',
// some files that make eslint/prettier panic
'website/src/components/Posthog.astro',
'website/src/components/ThemeInit.astro',
'site/src/components/Posthog.astro',
'site/src/components/ThemeInit.astro',
],
plugins: {
'jsx-a11y': jsxA11y,
+2 -2
View File
@@ -17,13 +17,13 @@
"scripts": {
"prepare": "simple-git-hooks",
"build:packages": "turbo run build --filter=./packages/**",
"build:website": "turbo run build --filter=website",
"build:site": "turbo run build --filter=site",
"build": "turbo run build",
"clean": "turbo run clean",
"commitlint": "commitlint --config ./commitlint.config.js --edit $1",
"dev:html": "turbo run dev --filter=html-demo...",
"dev:react": "turbo run dev --filter=react-demo...",
"dev:website": "turbo run dev --filter=website",
"dev:site": "turbo run dev --filter=site",
"dev": "turbo run dev --parallel",
"generate:icons": "turbo run generate:icons",
"lint": "eslint . --cache",
+1 -1
View File
@@ -252,7 +252,7 @@ importers:
specifier: ^5.9.2
version: 5.9.3
website:
site:
dependencies:
'@astrojs/mdx':
specifier: ^4.3.7
+1 -1
View File
@@ -1,5 +1,5 @@
packages:
- 'packages/*'
- 'examples/*'
- website
- site
minimumReleaseAge: 1440
+1 -1
View File
@@ -48,7 +48,7 @@ The website serves two main purposes:
### Project Structure
```text
website/
site/
├── src/
│ ├── components/ # Reusable UI components
│ │ └── docs/ # Documentation-specific components
View File
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "website",
"name": "site",
"type": "module",
"version": "0.0.1",
"scripts": {

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 324 B

Before

Width:  |  Height:  |  Size: 128 B

After

Width:  |  Height:  |  Size: 128 B

@@ -32,7 +32,7 @@ const blog = defineCollection({
const pubDate = extractDateFromFilename(originalEntry);
// Get updatedDate from git history (last modification date)
const filePath = `website/src/content/blog/${originalEntry}`;
const filePath = `site/src/content/blog/${originalEntry}`;
const updatedDate = await defaultGitService.getLastModifiedDate(filePath);
// Return transformed entry with added fields
@@ -64,7 +64,7 @@ const docs = defineCollection({
pattern: '**/*.mdx',
parser: async (entry, originalEntry) => {
// Get updatedDate from git history
const filePath = `website/src/content/docs/${originalEntry}`;
const filePath = `site/src/content/docs/${originalEntry}`;
const updatedDate = await defaultGitService.getLastModifiedDate(filePath);
// Return transformed entry with added field if updatedDate exists

Some files were not shown because too many files have changed in this diff Show More