feat: add website components and pages for LexAI
Some checks failed
CI — Chrome / Chrome — typecheck, test, build (pull_request) Has been cancelled
CI — CLI / CLI — typecheck, build, smoke (pull_request) Has been cancelled
CI — Website / Website — typecheck, build (pull_request) Has been cancelled
CI — VS Code / VS Code — typecheck, build (pull_request) Has been cancelled
Some checks failed
CI — Chrome / Chrome — typecheck, test, build (pull_request) Has been cancelled
CI — CLI / CLI — typecheck, build, smoke (pull_request) Has been cancelled
CI — Website / Website — typecheck, build (pull_request) Has been cancelled
CI — VS Code / VS Code — typecheck, build (pull_request) Has been cancelled
- Implemented SiteHeader and SiteFooter components for consistent navigation and footer across the website. - Created CommunityPage and ContributePage to provide information on community involvement and contribution guidelines. - Developed DocsPage to serve as the main documentation hub, detailing features and installation instructions. - Added HomePage to introduce LexAI and its functionalities, highlighting key features and privacy aspects. - Established links.ts for centralized management of external links used throughout the website. - Configured main.tsx for application entry point with React Router for navigation. - Introduced styles.css for consistent styling across the website. - Set up TypeScript configuration files for improved type checking and development experience. - Configured Vite for building and serving the website.
This commit is contained in:
50
packages/website/README.md
Normal file
50
packages/website/README.md
Normal file
@@ -0,0 +1,50 @@
|
||||
# LexAI website
|
||||
|
||||
Marketing site for the LexAI monorepo: Home, Docs, Contribute, Community.
|
||||
|
||||
## Develop
|
||||
|
||||
```bash
|
||||
# from repo root
|
||||
npm run website:install
|
||||
npm run website:dev
|
||||
```
|
||||
|
||||
Or inside this package:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
npm run website:build
|
||||
# → packages/website/dist/
|
||||
```
|
||||
|
||||
Preview production build: `npm run website:preview`.
|
||||
|
||||
Uses HashRouter so the site works on static hosts without server-side rewrite rules.
|
||||
|
||||
## Deploy on Coolify
|
||||
|
||||
This package is a **static** Vite build (`dist/`). No LexAI API keys or env vars.
|
||||
|
||||
1. In Coolify: **+ New** → **Resource** → **Private Repository (with deploy key)** (Gitea).
|
||||
2. Repo SSH URL, for example `git@git.juankibin.space:kibin/LexAI.git`. If Gitea SSH is not on port 22, use `ssh://git@git.juankibin.space:PORT/kibin/LexAI.git` (Coolify sometimes needs `ssh:///` with three slashes).
|
||||
3. Add Coolify’s public deploy key to the Gitea repo: **Settings → Deploy / Access Keys** (read-only).
|
||||
4. Branch: `dev` or `main`.
|
||||
5. **Build Pack:** Nixpacks.
|
||||
6. **Base Directory:** `/packages/website` — required. Root `npm run build` builds Chrome, not this site.
|
||||
7. Enable **Is it a static site?**
|
||||
8. **Publish Directory:** `/dist`
|
||||
9. **Install command** (if the build says `vite: not found`): `npm ci` (do not omit devDependencies — Vite lives there).
|
||||
10. Optional env: `NIXPACKS_NODE_VERSION=22`
|
||||
11. Optional **Watch Paths:** `packages/website` so Chrome/VS Code/CLI commits do not redeploy.
|
||||
12. Set the domain, **Deploy**, then open `https://your-domain/#/docs`.
|
||||
|
||||
Auto-deploy: Coolify resource → **Webhooks** → copy the URL + secret into Gitea **Settings → Webhooks** (push events).
|
||||
|
||||
Do not add `LEXAI_API_KEY` or any provider key to this Coolify app.
|
||||
Reference in New Issue
Block a user