Skip to content

feat: enhance header layout, add LSP support, and improve documentation#53

Closed
ChouChiu wants to merge 17 commits into
open-ani:mainfrom
ChouChiu:main
Closed

feat: enhance header layout, add LSP support, and improve documentation#53
ChouChiu wants to merge 17 commits into
open-ani:mainfrom
ChouChiu:main

Conversation

@ChouChiu

@ChouChiu ChouChiu commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces a significant documentation overhaul, dependency upgrades, and a new homepage ad slide panel component. The documentation for both contributors and AI agents has been rewritten for clarity and conciseness, with updated stack, commands, and project structure sections. Several dependencies are bumped to their latest versions, and a new responsive, accessible ad slide panel is added to the homepage. Minor improvements to configuration and code style enforcement are also included.

Documentation and Contributor Guide Improvements:

  • Major rewrite of AGENTS.md to be more concise and actionable for AI agents, with updated stack info, commands, content collections, code style, deployment, environment, pre-commit hooks, and agent rules.
  • Updated CONTRIBUTING.md and CONTRIBUTING_CN.md with clearer stack descriptions, detailed project structure, available commands, code standards, testing instructions, pre-commit hooks, and code quality verification order. [1] [2] [3] [4]

Dependency and Tooling Upgrades:

  • Upgraded core dependencies and devDependencies (Astro, SolidJS, Tailwind CSS, @astrojs/check, @biomejs/biome, etc.) to their latest versions in package.json.
  • Updated GitHub Actions workflow to use newer versions of actions/checkout, pnpm/action-setup, and Node.js 24 in .github/workflows/pr_check.yml.
  • Updated biome.json schema and switched to preset: "recommended" for linter rules. [1] [2]
  • Added build and release configuration for workspace dependencies in pnpm-workspace.yaml.
  • Enabled LSP support in opencode.jsonc.

New Features and UI Improvements:

  • Added a new AdSlidePanel.astro component for the homepage, featuring a responsive, landscape-aware layout, localStorage-based open/close state, accessibility improvements, and event tracking.
  • Improved vertical alignment and minimum height for the Features and FAQ homepage sections for better visual consistency. [1] [2]

ChouChiu added 17 commits June 20, 2026 14:45
- separate background overlay from content container in Header for better layout control
- adjust PC showcase image positioning and size for improved visual alignment
- add .opencode/opencode.json config with lsp: true
- improve development experience through language server protocol
- add id and fullscreen layout classes to FAQ section
- implement wheel event listener for auto-scrolling to FAQ
- clean up event listener on page navigation
- removed .opencode/opencode.json for simplification
- added lsp: true to opencode.jsonc for unified configuration
- Rewrite with compact, up-to-date project stack (Astro v6, SolidJS v1, Tailwind CSS v4, pnpm v10, Biome v2)
- Remove verbose sections and restructure into focused areas: Stack, Commands, Testing, Content Collections, Key Layout, Deployment
- Add Node built-in test runner details and new testing commands
- Update development workflows and pre-commit hooks
- Document content collections (changelogs, wiki) and source layout
- Mention bilingual content and OpenCode skills
- add technology stack section
- restructure project structure to tree format
- document available commands and testing
- detail pre-commit hooks and lint-staged usage
- update code quality verification steps
- Introduce AdSlidePanel component with slide-up animation
- Move desktop and mobile ads from header to bottom slide panel
- Add ad exposure and slide open event tracking
- update JSON schema URL to version 2.5.0
- replace deprecated `recommended: true` with `preset: "recommended"` in linter rules
- add descriptive aria-label to toggle button for screen reader
- remove wheel event listener and smooth scroll behavior
- simplify user interaction and reduce unnecessary javascript
- add pb-32 class to FAQ section bottom padding
- improve visual separation from subsequent content
- Rename astro.config.mjs and tailwind.config.mjs to .mts for TypeScript module support
- change tree parameter from HastNode to unknown to prevent incorrect type inference
- add explicit type assertion when visiting elements for safe property access
- Bump actions/checkout to v7
- Bump pnpm/action-setup to v6
- Switch node-version to LTS
- set version field to 'latest' for clarity and consistency
- change from lts to 24 to ensure consistent builds and avoid unexpected breakage from Node.js version changes
@nick-cjyx9

Copy link
Copy Markdown
Member

不要一堆东西塞一个PR里面,文档和UI可以分两个PR开。cloudflare的PR preview bot不知道为什么没有触发,所以涉及UI修改可以贴一下截图。广告相关没有188或者sg点头最好不要动,这个PR我先关了。

@nick-cjyx9 nick-cjyx9 closed this Jun 20, 2026
@ChouChiu

Copy link
Copy Markdown
Contributor Author

不要一堆东西塞一个PR里面,文档和UI可以分两个PR开。cloudflare的PR preview bot不知道为什么没有触发,所以涉及UI修改可以贴一下截图。广告相关没有188或者sg点头最好不要动,这个PR我先关了。

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants