Skip to content

Add deep-link anchor for BlockingQueue Tutorial on the landing page#9

Merged
lemmy merged 3 commits into
mainfrom
copilot/add-anchor-to-blockingqueue-tutorial
Jul 10, 2026
Merged

Add deep-link anchor for BlockingQueue Tutorial on the landing page#9
lemmy merged 3 commits into
mainfrom
copilot/add-anchor-to-blockingqueue-tutorial

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

The landing page lacked a stable fragment target for directly linking to the BlockingQueue Tutorial section. This change adds a dedicated anchor so URLs can jump users straight to that section.

  • Landing page anchor

    • Added an explicit section id to the BlockingQueue tutorial block in src/app/page.tsx.
    • Enables direct links like /#blocking-queue-tutorial.
  • Regression coverage

    • Added a focused home page test to assert the BlockingQueue heading resolves to a section with the new anchor id.
<section id="blocking-queue-tutorial">
  <h2 className="text-2xl font-bold text-gray-900 mb-2">
    BlockingQueue Tutorial
  </h2>
  ...
</section>

Copilot AI linked an issue Jul 9, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add anchor to BlockingQueue Tutorial on landing page Add deep-link anchor for BlockingQueue Tutorial on the landing page Jul 10, 2026
Copilot AI requested a review from lemmy July 10, 2026 00:01
Copilot finished work on behalf of lemmy July 10, 2026 00:01
@lemmy

lemmy commented Jul 10, 2026

Copy link
Copy Markdown
Member

@copilot Also add anchors for "How to Write TLA+" and "Community Specifications".

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Also add anchors for "How to Write TLA+" and "Community Specifications".

Implemented in commit 22a48a7.

Added anchors for both requested sections on the landing page:

  • #how-to-write-tla for “How to Write TLA+”
  • #community-specifications for “Community Specifications”

I also kept the existing #specifications anchor for backward compatibility and updated the home page test to cover all section anchors.

Copilot finished work on behalf of lemmy July 10, 2026 00:07
@lemmy lemmy added the enhancement New feature or request label Jul 10, 2026
@github-actions

Copy link
Copy Markdown

📦 Site preview built! Download the artifact to preview locally:

Download preview

To view: unzip, cd into the folder, then serve with a local HTTP server:

npx serve .
# or
python3 -m http.server

@lemmy
lemmy marked this pull request as ready for review July 10, 2026 00:09
@lemmy
lemmy merged commit 3bf1e2b into main Jul 10, 2026
1 check passed
@lemmy
lemmy deleted the copilot/add-anchor-to-blockingqueue-tutorial branch July 10, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add anchors to the main sections the landing page

2 participants