Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
zephyrus-frameworkPublic

About

Source of zephyrus.ophelios.com, the Zephyrus showcase and documentation, built with Leaf.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Zephyrus site

The Zephyrus showcase and documentation, built with Zephyrus Leaf. This is a standalone static site. It does not modify or depend on the working checkout of zephyrus-core.

Preview

Requires the Leaf CLI and PHP 8.4+ with the extensions required by Leaf.

leaf dev --addr 127.0.0.1:4173

Open http://127.0.0.1:4173 for English or http://127.0.0.1:4173/fr/ for French. English is the default, without a URL prefix. Leaf rebuilds and reloads when content, templates or assets change.

Build

leaf build

The deployable output is dist/. All styles, scripts and fonts are served locally. No CDN or frontend bundler is required. The production URL is https://zephyrus.ophelios.com, configured through Leaf. Builds generate canonical links, reciprocal EN/FR/x-default alternatives, a multilingual sitemap and robots file. Leaf leaves both error pages out of the sitemap, and both carry noindex.

Stop leaf dev before running a separate leaf build, since both commands publish into dist/.

GitHub Pages deployment

The public repository deploys through .github/workflows/pages.yml. Every push to main, or a manual workflow run, builds both languages with Leaf v1.0.0 and PHP 8.4, then uploads dist/ to GitHub Pages. The Linux CLI download is checked against the release's SHA-256 digest. No deployment secrets are required.

Pages uses GitHub Actions as its publishing source. Its custom domain is configured in the repository's Pages settings as zephyrus.ophelios.com. With this publishing mode, GitHub uses the domain setting rather than a CNAME file.

For the ophelios.com DNS zone, configure:

Type Name Target
CNAME zephyrus ophelios-studio.github.io

The target is the organization's Pages hostname, without a repository path. After DNS validation and certificate issuance, enable Enforce HTTPS in the repository's Pages settings.

Git ignores dist/: build it locally to preview, and CI rebuilds it from the templates, Markdown, catalogs and public assets before deployment. Social cards are committed assets; regenerate them with npm run social when their artwork or copy changes.

Editing

  • templates/landing.latte: landing composition.
  • locale/en/general.json and locale/fr/general.json: interface copy, metadata and interactive labels, rendered with Leaf's native localization.
  • templates/layouts/ and templates/partials/: shared shell and navigation.
  • templates/docs/page.latte: Markdown article layout.
  • content/: English documentation pages with YAML front matter. Their French counterparts live in content/fr/. Leaf generates navigation, page order, the table of contents and a search index for each language.
  • public/assets/css/site.css: design tokens, typography and responsive layouts.
  • public/assets/css/extensions.css: language selector, localization demo, developer features, agent skill, Web3 roadmap and interactive closing CTA.
  • public/assets/js/wind.js: the animated canvas ribbon. It responds to the pointer, pauses outside the viewport, supports the pause button and respects reduced motion.
  • public/assets/js/pixels.js: the closing CTA's pixel logo. Pointer or touch movement scatters its particles, which spring back into the original brand path. It pauses outside the viewport and supports pause and reduced motion.
  • public/assets/js/site.js: tabs, copy buttons, search, accordions and mobile navigation.

The landing's code samples are illustrative; the documentation pages are the reference.

The installation section uses composer require zephyrus-framework/core. It installs the core package into an application; it does not claim to scaffold one.

The landing highlights capabilities verified in the core: JSON translation catalogs and regional fallback, explicit SQL Brokers, environment-scoped routes, constructor injection, composable guards and generator-based Server-Sent Events. Web3 access to smart contracts is presented separately as a coming-soon direction, without a release date or invented API. Provider adapters, SQL event indexing, webhooks, receipt tracking and wallet sessions are explicitly exploratory ideas.

The agent section links to the Zephyrus skill. Its standard installation command is:

npx skills add ophelios-studio/skills --skill zephyrus

The language switch preserves the current chapter and hash. Search uses the current locale and ignores accents.

Browser verification

The QA tools require Node.js, Playwright and its Chromium browser. Install them if unavailable:

npm install
npx playwright install chromium

With the preview server running:

npm run qa
npm run capture

QA verifies both languages, all documentation destinations, locale switching and search, clipboard commands, responsive overflow, canvas animation and reduced motion. It also checks pixel dispersal, silhouette reconstruction, pause and touch behavior in the closing CTA. The SEO audit covers every indexable page in both languages (the home page and each chapter under content/, matched against the sitemap), unique localized metadata, canonical and alternate URLs, structured data, image dimensions and the sitemap. SVG icons are checked for actual rendered geometry. Captures include both languages on desktop, tablet and mobile, plus the developer, roadmap and CTA sections. They are saved to the ignored artifacts/ directory. To test another local server, set PREVIEW_URL.

Social image

npm run social
leaf build

This renders two dedicated 1200 × 630 social cards from resources/social.html, using the native locale catalogs, actual logo, self-hosted fonts and the hero ribbon. It produces public/assets/images/og.png and og-fr.png, then includes them in the static output. The preview server must be running before generating the cards. Fonts are distributed with their SIL Open Font License files under public/assets/fonts/.

Asset sources

The Ophelios, Leaf, CodeQuill, Agreely and Corvée marks come from the existing Ophelios site assets. Product marks are rendered in black with CSS. The white Ophelios mark remains unchanged.

The icon sprite is a subset of Tabler Icons, version 3.49.0, distributed under its MIT license. See public/assets/icons/SOURCES.md for provenance.

Roadmap research uses primary sources: Alchemy RPC, event logs, Alchemy Notify and Sign-In with Ethereum. These inform proposed directions, not claims about released Zephyrus APIs.

Commits

Use a Conventional Commits subject only. Commit messages must have no body and no co-author or attribution trailers.

About

Source of zephyrus.ophelios.com, the Zephyrus showcase and documentation, built with Leaf.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages