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:
52
.gitea/workflows/ci-website.yml
Normal file
52
.gitea/workflows/ci-website.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
name: CI — Website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, develop]
|
||||
paths:
|
||||
- 'packages/website/**'
|
||||
- '.gitea/workflows/ci-website.yml'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'packages/website/**'
|
||||
- '.gitea/workflows/ci-website.yml'
|
||||
|
||||
jobs:
|
||||
website:
|
||||
name: Website — typecheck, build
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
container:
|
||||
image: node:22-bookworm
|
||||
|
||||
steps:
|
||||
- name: Install system deps
|
||||
run: apt-get update -qq && apt-get install -y git ca-certificates -qq
|
||||
|
||||
- name: Clone repository
|
||||
run: |
|
||||
git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git /tmp/lexai
|
||||
cd /tmp/lexai
|
||||
if [ "${{ gitea.event_name }}" = "pull_request" ]; then
|
||||
git fetch origin pull/${{ gitea.event.pull_request.number }}/head:pr
|
||||
git checkout pr
|
||||
else
|
||||
git checkout ${{ gitea.sha }}
|
||||
fi
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci --prefer-offline --no-audit --no-fund
|
||||
working-directory: /tmp/lexai/packages/website
|
||||
|
||||
- name: Typecheck
|
||||
run: npm run typecheck
|
||||
working-directory: /tmp/lexai/packages/website
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
working-directory: /tmp/lexai/packages/website
|
||||
|
||||
- name: Verify output
|
||||
run: ls -la dist/
|
||||
working-directory: /tmp/lexai/packages/website
|
||||
Reference in New Issue
Block a user