Fix docs hero image layout and automate navbar version from latest GitHub release#56
Merged
dexcompiler merged 3 commits intomainfrom Apr 8, 2026
Merged
Conversation
…lease Agent-Logs-Url: https://github.com/dexcompiler/Clockworks/sessions/21296d3a-2fd7-453f-a841-c46ee0a45a88 Co-authored-by: dexcompiler <115876036+dexcompiler@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix hero image layout issue and update docs version
Fix docs hero image layout and automate navbar version from latest GitHub release
Apr 7, 2026
Owner
|
@cursoragent quick review pls |
Quick review (and one proactive fix)
Evidence (manual + build)
Key files touched
|
Co-authored-by: Dexter Ajoku <dex@dexcompiler.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Two docs site quality issues: the hero image rendered awkwardly (landscape asset in a square VitePress container), and the navbar version was hardcoded at
v1.3.0while the latest release isv1.3.2.Hero image (
docs/index.md)Removed the
image:block from the hero frontmatter entirely. A centered text + tagline + CTA layout is cleaner for a library docs site; the logo is still present in the navbar.Env-driven navbar version (
docs/.vitepress/config.ts)Replaced the hardcoded version string with a build-time env variable:
Falls back to
'dev'for local builds.Docs workflow automation (
.github/workflows/docs.yml)release: [published]trigger — docs redeploy automatically on every new release.gh release view:push/releaseevents: resolves the tag, validates^v[0-9]+\.[0-9]+\.[0-9]+$, hard-fails with a descriptive error if unresolvable or malformed.pull_request/workflow_dispatch: falls back to"dev"so preview builds are unaffected.DOCS_VERSIONis passed as an env var to the VitePress build step.deployjob condition extended to also fire onreleaseevents.Original prompt
Repository:
dexcompiler/ClockworksImplement a pull request that fixes two documentation website issues:
1) Hero image layout/size issue on docs homepage
From the current docs homepage (
https://dexcompiler.github.io/Clockworks/), the "clockworks" hero image appears visually awkward (size/layout/alignment). Improve this with a production-quality fix.Requirements
2) Docs version should always track latest release
Current release is
v1.3.2, but docs navbar showsv1.3.0. This should be automated so docs always display the latest release version whenever a new release is published.Requirements
CI/CD expectations
DOCS_VERSION) or equivalent generated config.Validation
Quality bar
Create the PR with a concise, descriptive title and include a clear summary of what changed and why.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: After the work done to build the documentation website for the clockworks OSS library, I noticed a few things:
Any questions, ask me.
Assistant: Great catches — both are real quality issues, and your diagnosis is directionally correct.
Direct recommendation
max-width, fixed aspect ratio,object-fit) so it stops visually fighting the hero text.If you want, I can implement this as a PR directly — but I’ll need you to explicitly ask for PR creation.
Why this is happening (likely root causes)
1) Hero image layout issue
From your screenshot, the logo image appears:
This usually comes from one or more of:
<img>in markdown/hero slot,2) Version mismatch
The navbar shows
v1.3.0while latest release isv1.3.2, which strongly suggests:Preferred robust architecture (production-grade)
Use this contract:
vX.Y.Z) is canonical.LATEST_VERSIONfrom GitHub API or git tag.This pull request was created from Copilot chat.