Skip to content

docs: surface 'timestamp' in Transaction Context for search#408

Merged
MuncleUscles merged 1 commit into
mainfrom
docs/timestamp-searchability
May 13, 2026
Merged

docs: surface 'timestamp' in Transaction Context for search#408
MuncleUscles merged 1 commit into
mainfrom
docs/timestamp-searchability

Conversation

@MuncleUscles
Copy link
Copy Markdown
Member

Summary

Follow-up to #407. The new Transaction Context page used 'datetime' in its headings and 'timestamp' only inside code blocks / body text, so searching the docs site for 'timestamp' — the term most devs actually type — didn't surface this page.

  • Mention timestamp in the page intro paragraph.
  • Rename ## Time in a contract## Time and Timestamps.
  • Add ### Transaction Timestamp heading with a small table covering the three forms (Unix seconds, datetime object, ISO string).

Background

Nextra 2's built-in search is FlexSearch-based and indexes page content with stronger weights for the title and headings. There is no tag/keyword/synonym system, so the only lever is making the search terms actually appear in headings and the intro paragraph.

Test plan

  • pnpm dev, search "timestamp" in the docs sidebar, confirm Transaction Context appears as a top result
  • Confirm the new H3 anchors render

The new Transaction Context page used 'datetime' in headings and 'timestamp'
only in code/body, so searching the docs site for 'timestamp' (the term most
devs reach for) ranked the page poorly or missed it entirely.

- Mention 'timestamp' explicitly in the page intro.
- Rename '## Time in a contract' to '## Time and Timestamps'.
- Add '### Transaction Timestamp' heading with a small table covering the
  three forms (Unix seconds, datetime object, ISO string).
@netlify
Copy link
Copy Markdown

netlify Bot commented May 13, 2026

Deploy Preview for genlayer-docs ready!

Name Link
🔨 Latest commit a46318c
🔍 Latest deploy log https://app.netlify.com/projects/genlayer-docs/deploys/6a045cc1c69356000983f5c9
😎 Deploy Preview https://deploy-preview-408--genlayer-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 13, 2026

Warning

Rate limit exceeded

@MuncleUscles has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 48 minutes and 28 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 10af17bb-9de0-44da-aed0-45ddde0439f6

📥 Commits

Reviewing files that changed from the base of the PR and between 2d9f071 and a46318c.

📒 Files selected for processing (1)
  • pages/developers/intelligent-contracts/features/transaction-context.mdx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/timestamp-searchability

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@MuncleUscles MuncleUscles merged commit 8940354 into main May 13, 2026
8 checks passed
@MuncleUscles MuncleUscles deleted the docs/timestamp-searchability branch May 13, 2026 11:18
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.

1 participant