You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.6 KiB
1.6 KiB
AGENTS.md
Overview
Custom Drupal 10 theme for Kindred Spaces (kspaces2.islandarchives.ca), derived from Drupal core's Olivero.
Toolchain & Workflow Gotchas
- Direct Asset Editing: Edit
.cssfiles incss/and.jsfiles injs/directly. Do not runyarn buildoryarn build:css/watch;package.jsoncontains leftover Olivero scripts referencing a missingscripts/directory. - Local Dev Proxy: Run
node bs.jsto start BrowserSync proxyinghttps://kspaces2.islandarchives.ca. - Deployment:
./deploy.sh "<commit message>"automatically runsgit add --all, commits, pushes, and executes remotegit pull+drush cronkspaces2.islandarchives.ca.
Verification Commands
- PHP Syntax Check:
php -l oliveskspaces.theme && find . -not -path "*/node_modules/*" -name "*.php" -exec php -l {} \; - PHP Code Style:
php-cs-fixer fix --dry-run --diff .(omit--dry-runto auto-fix).
Codebase Architecture
oliveskspaces.info.yml: Drupal 10 theme definition, region layouts, library overrides/extends.oliveskspaces.libraries.yml: CSS/JS asset bundle declarations (global-styling,navigation-primary,color-picker, etc.).oliveskspaces.theme: Main PHP theme file containing preprocess hooks (html,block,mirador), dynamic HSL primary color variable setting, and Islandora collection/model class alterations.theme-settings.php: Theme configuration form alters (color scheme options & mobile menu settings).src/OliveskspacesPreRender.php: Trusted#pre_rendercallbacks (textFormat,messagePlaceholder).templates/: Twig overrides for blocks, navigation, menus, forms, and views.