Skip to content

🧹 Move head metadata into front matter - #2732

Closed
JFWooten4 wants to merge 8 commits into
stellar:mainfrom
john-stellar:docs/remove-head-blocks
Closed

JFWooten4 wants to merge 8 commits into
stellar:mainfrom
john-stellar:docs/remove-head-blocks

Conversation

@JFWooten4

Copy link
Copy Markdown
Contributor

from #2234

Copilot AI balanced review requested due to automatic review settings August 6, 2026 12:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves SEO titles and descriptions from inline <head> blocks into MDX front matter while preserving sidebar labels.

Changes:

  • Removes redundant inline metadata.
  • Adds descriptive page titles and front-matter descriptions.
  • Preserves existing sidebar navigation labels.

Recommendation: NEEDS-CHANGES — correct the token standard, stale event API description, and incomplete SDK scope description.

Reviewed changes

Copilot reviewed 43 out of 43 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/learn/fundamentals/contract-development/types/fully-typed-contracts.mdx Moves interface metadata to front matter.
docs/learn/fundamentals/contract-development/types/custom-types.mdx Updates custom-type metadata.
docs/learn/fundamentals/contract-development/types/built-in-types.mdx Updates built-in-type metadata.
docs/learn/fundamentals/contract-development/storage/state-archival.mdx Updates archival metadata.
docs/learn/fundamentals/contract-development/storage/persisting-data.mdx Updates storage metadata.
docs/learn/fundamentals/contract-development/errors-and-debugging/errors.mdx Updates error-generation metadata.
docs/learn/fundamentals/contract-development/errors-and-debugging/debugging.mdx Updates debugging metadata.
docs/learn/fundamentals/contract-development/environment-concepts.mdx Updates environment metadata.
docs/learn/fundamentals/contract-development/contract-lifecycle.mdx Updates lifecycle metadata.
docs/learn/fundamentals/contract-development/contract-interactions/stellar-transaction.mdx Updates transaction metadata.
docs/learn/fundamentals/contract-development/contract-interactions/overview.mdx Updates interaction overview metadata.
docs/build/smart-contracts/example-contracts/upgradeable-contract.mdx Updates upgrade example metadata.
docs/build/smart-contracts/example-contracts/tokens.mdx Updates token example metadata.
docs/build/smart-contracts/example-contracts/timelock.mdx Updates timelock metadata.
docs/build/smart-contracts/example-contracts/storage.mdx Updates storage example metadata.
docs/build/smart-contracts/example-contracts/single-offer-sale.mdx Updates sale example metadata.
docs/build/smart-contracts/example-contracts/simple-account.mdx Moves account description to front matter.
docs/build/smart-contracts/example-contracts/mint-lock.mdx Updates mint-lock metadata.
docs/build/smart-contracts/example-contracts/logging.mdx Updates logging metadata.
docs/build/smart-contracts/example-contracts/liquidity-pool.mdx Updates liquidity-pool metadata.
docs/build/smart-contracts/example-contracts/fuzzing.mdx Updates fuzz-testing metadata.
docs/build/smart-contracts/example-contracts/events.mdx Updates event metadata.
docs/build/smart-contracts/example-contracts/errors.mdx Updates error example metadata.
docs/build/smart-contracts/example-contracts/deployer.mdx Updates deployment metadata.
docs/build/smart-contracts/example-contracts/delegate-auth.mdx Moves CAP-71 description to front matter.
docs/build/smart-contracts/example-contracts/custom-types.mdx Updates data-structure metadata.
docs/build/smart-contracts/example-contracts/cross-contract-call.mdx Updates cross-contract metadata.
docs/build/smart-contracts/example-contracts/complex-account.mdx Updates account-policy metadata.
docs/build/smart-contracts/example-contracts/bls-signature.mdx Moves BLS description to front matter.
docs/build/smart-contracts/example-contracts/auth.mdx Updates authorization metadata.
docs/build/smart-contracts/example-contracts/atomic-swap.mdx Updates atomic-swap metadata.
docs/build/smart-contracts/example-contracts/atomic-multi-swap.mdx Updates batched-swap metadata.
docs/build/smart-contracts/example-contracts/alloc.mdx Updates allocator metadata.
docs/build/guides/transactions/upload-wasm-bytecode.mdx Updates Wasm installation metadata.
docs/build/guides/transactions/install-deploy-contract-with-code.mdx Updates deployment-guide metadata.
docs/build/guides/tokens/deploying-a-sac.mdx Updates SAC deployment metadata.
docs/build/guides/dapps/soroban-contract-init-template.mdx Updates template-guide metadata.
docs/build/guides/conventions/wasm-metadata.mdx Updates contract-metadata page metadata.
docs/build/guides/conventions/upgrading-contracts.mdx Updates upgrade-guide metadata.
docs/build/guides/conventions/deploy-sac-with-code.mdx Updates coded SAC deployment metadata.
docs/build/guides/conventions/deploy-contract.mdx Updates deployer-contract metadata.
docs/build/guides/basics/automate-reset-data.mdx Updates reset-automation metadata.
docs/build/guides/auth/check-auth-tutorials.mdx Updates authorization tutorial metadata.

@ElliotFriend

Copy link
Copy Markdown
Contributor

generally, i do like this idea. the frontmatter feels like a more "efficient" place to keep this kinds of stuff.

we had gone through and added some of that head metadata at "some point" for SEO reasons, i think. (it's been a long while lol) if i'm remembering correctly, we wanted to add some "marketing-speak" kinds of things to the metadata without actually displaying that "marketing-speak" to the reader, and supplying it in this manner accomplished that.

tbh, this may end up being a non-issue once the migration to mintlify takes place. we might be better off waiting?

@stellar-doxie

stellar-doxie Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Reviewing because this PR is stale (no update in 4+ weeks).

Checks pass and the branch merges cleanly with main. No live preview was available.

Decision needed: front matter title is the visible H1, so this renames the H1 on 39 pages (e.g. "Tokens" becomes "CAP-46-6-Compliant Token Contract"). Merge with the new titles now, or wait for the Mintlify migration as @ElliotFriend suggested? @kaankacar @ElliotFriend

@stellar-doxie stellar-doxie Bot added the bot:needs-decision Bot needs a maintainer decision (listing, scope, policy) label Oct 8, 2026
@kaankacar

Copy link
Copy Markdown
Contributor

Hey @JFWooten4, thank you so much for this PR!

The Mintlify migration did this work, as @ElliotFriend expected:

  • No <head> blocks remain on main.
  • Pages now keep this metadata as og:title and og:description in the front matter.
  • The visible page titles did not change.

I am closing this PR. Thanks again for your work on the docs!

@kaankacar kaankacar closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:needs-decision Bot needs a maintainer decision (listing, scope, policy)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants