diff --git a/.build.yml b/.build.yml
deleted file mode 100644
index aa10890..0000000
--- a/.build.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-image: alpine/edge
-packages:
- - nodejs
- - npm
- - pnpm
-secrets:
- - 291f0e35-9b8d-43ff-844c-77c5f29c1876
- - bbfcb6dc-7c4a-42ee-a11a-022f0339a133
-environment:
- NETLIFY_SITE_ID: bfd69adf-f754-433c-9690-63426f0d2fa0
- REPO: wcb
- GH_USER: ayoayco
-tasks:
- - push-mirror: |
- cd ~/"${REPO}"
- git config --global credential.helper store
- git push --mirror "https://github.com/${GH_USER}/${REPO}"
- - install-deps: |
- cd ~/"${REPO}"
- pnpm i
- - build: |
- cd ~/"${REPO}"
- pnpm -F site run build
- - deploy: |
- cd ~/"${REPO}"
- {
- set +x
- . ~/.buildsecrets
- set -x
- }
- export NETLIFY_AUTH_TOKEN
- pnpm -F site run deploy
diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs
index bc27469..244c569 100644
--- a/docs/astro.config.mjs
+++ b/docs/astro.config.mjs
@@ -4,9 +4,6 @@ import starlight from '@astrojs/starlight'
// https://astro.build/config
export default defineConfig({
- redirects: {
- '/': '/guides',
- },
integrations: [
starlight({
title: 'WCB',
diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx
new file mode 100644
index 0000000..5394608
--- /dev/null
+++ b/docs/src/content/docs/index.mdx
@@ -0,0 +1,36 @@
+---
+title: Web Component Base
+description: Web components in Easy Mode
+template: splash
+hero:
+ tagline: A simple reactivity system for web components
+ # image:
+ # file: ../../assets/houston.webp
+ actions:
+ - text: Example Guide
+ link: /guides/example/
+ icon: right-arrow
+ - text: Read the Starlight docs
+ link: https://starlight.astro.build
+ icon: external
+ variant: minimal
+---
+
+import { Card, CardGrid } from '@astrojs/starlight/components';
+
+## Next steps
+
+
+
+ Edit `src/content/docs/index.mdx` to see this page change.
+
+
+ Add Markdown or MDX files to `src/content/docs` to create new pages.
+
+
+ Edit your `sidebar` and other config in `astro.config.mjs`.
+
+
+ Learn more in [the Starlight Docs](https://starlight.astro.build/).
+
+
diff --git a/netlify.toml b/netlify.toml
index d8fd5bc..de1f556 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,3 +1,3 @@
[build]
-base = "site"
+base = "docs"
publish = "dist"
diff --git a/package.json b/package.json
index 43174b9..cb6b056 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,6 @@
"test": "vitest --run",
"test:watch": "vitest",
"demo": "npx simple-server .",
- "site": "pnpm -F site start",
"docs": "pnpm -F docs start",
"build": "pnpm run clean && tsc && pnpm run copy:source",
"size-limit": "pnpm run build && size-limit",
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 9503624..f7e0f48 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,4 +1,3 @@
packages:
# include packages in subfolders (e.g. apps/ and packages/)
- - 'site'
- - 'docs'
+ - 'docs/'
diff --git a/site/.eslintignore b/site/.eslintignore
deleted file mode 100644
index c40e0f6..0000000
--- a/site/.eslintignore
+++ /dev/null
@@ -1,5 +0,0 @@
-dist
-node-modules
-.output
-
-public
\ No newline at end of file
diff --git a/site/.gitignore b/site/.gitignore
deleted file mode 100644
index c2a82ff..0000000
--- a/site/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-dist
-node_modules
-*.log*
-.nitro
-.cache
-.output
-.env
-*~
-*swp
-*swo
\ No newline at end of file
diff --git a/site/.prettierignore b/site/.prettierignore
deleted file mode 100644
index f59ec20..0000000
--- a/site/.prettierignore
+++ /dev/null
@@ -1 +0,0 @@
-*
\ No newline at end of file
diff --git a/site/README.md b/site/README.md
deleted file mode 100644
index 53c673c..0000000
--- a/site/README.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# McFly Starter Project
-
-## Background
-
-This project was generated from the basic template for **McFly** -- a no-framework framework that assists in leveraging the web platform.
-
-
-
-It contains example files to get you started using vanilla web technologies in a modern way. See the [Special Directories](#special-directories) section for more information.
-
-## Features
-
-The time has come for vanilla Web tech. 🎉
-
-✅ Create web apps with vanilla custom elements
-✅ Write real .HTML files
-✅ Have no frameworks or reactivity libraries on the browser
-✅ Use server-side rendering
-✅ Deploy anywhere
-
-## Special directories
-
-**1. `./src/pages/`**
-
-- file-based routing for `.html` files
-- directly use custom elements & static fragments (no imports or registry maintenance needed)
-- use `
-
-
-
-
-
-
- {{ project.name }}
- {{ project.description }}
-
-
-
-
- Build lightweight custom elements that browsers &
- you understand.
-
-
-
-
- Features
-
- -
- A robust API for synchronizing your component's UI and
- properties
-
- -
- ~1 kB base class (minified, compressed) with versatile utilities
-
- -
- Sensible life-cycle hooks that you understand and remember
-
- -
- Use the built-in JSX-like syntax or bring your own custom
- templating
-
-
-
-
-
-
- Why use this base class?
-
- Often times, when simple websites need a quick
- custom element, the best way is still to create one extending from
- HTMLElement. However, it can quickly
- reach a point where writing the code from scratch can seem confusing
- and hard to maintain especially when compared to other projects with
- more advanced setups.
-
-
- Also, when coming from frameworks with an easy declarative coding
- experience (using templates), the default imperative way (e.g.,
- creating instances of elements, manually attaching event handlers, and
- other DOM manipulations) is a frequent pain point we see.
-
-
- This project aims to address these with virtually zero tooling
- required and thin abstractions from vanilla custom element APIs –
- giving you only the bare minimum code to be productive.
-
-
- It works on current-day browsers without needing compilers,
- transpilers, or polyfills.
-
-
- Here's an interactive custom element:
-
-
-
-
-import { WebComponent, html } from "https://esm.sh/web-component-base";
-
-export class Counter extends WebComponent {
- static props = {
- count: 0
- }
- onInit() {
- // do something...
- }
- get template() {
- return html`
- <button onClick=${() => ++this.props.count}>
- ${this.props.count}
- </button>
- `;
- }
-}
-
-customElements.define("my-counter", Counter);
-
-
-
-
-
- Website
- built with McFly.
- Copyright © {{author.year}}
- {{ author.name }}.
-
-
-
-
-