Skip to content

📂 Separate ledgers page into entries and headers - #2398

Open
JFWooten4 wants to merge 26 commits into
stellar:mainfrom
john-stellar:723-pt-6
Open

JFWooten4 wants to merge 26 commits into
stellar:mainfrom
john-stellar:723-pt-6

Conversation

@JFWooten4

@JFWooten4 JFWooten4 commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

The network uses ledger headers and ledger entries for very different things. One has deep involvement in consensus, can change based on validator consensus, and is broadly up for active discussion, including recently. The latter acts as the basis for permanent blockchain information.

The current ledgers page combines them into a single narrative that mashes all that nuance onto one page. References in the docs remedy this by referring to section headers for one or the other paths. But the conglomerate is simply doing too much right now, from explaining what ledgers are conceptually to listing out SCP values.

I first ran into this problem with #763 and am actively working on a related structural organization point in #944. In this work, I've greatly expanded on the existing ledger entry docs, which have downstream implications for how you write them into the API specifications.1 It gives more specific reference points for important network concepts while maintaining the blanket /ledgers landing page and widely used URL:

Ledgers README

Footnotes

  1. getLedgers is just the first of many endpoints that repeat ledger specification data that can be boiled down to a single reference. ↩

Copilot AI review requested due to automatic review settings April 27, 2026 13:13

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

Refactors the “Ledgers” fundamentals documentation to separate the conceptual landing page from the detailed specifications for ledger entries vs headers, and updates internal links/redirects to match the new structure.

Changes:

  • Split the former single ledgers page into a /ledgers landing page plus dedicated /ledgers/entries and /ledgers/headers pages.
  • Update doc links (and one nginx redirect) to point at the new ledgers sub-pages/README.
  • Add the new routes to the site’s route listing.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
routes.txt Adds routes for the new ledgers sub-pages (entries, headers).
nginx/includes/redirects.conf Updates legacy encyclopedia redirect for ledger headers to the new fundamentals location.
i18n/es/docusaurus-plugin-content-docs/current/validators/README.mdx Updates ledger link to the new ledgers README path.
i18n/es/docusaurus-plugin-content-docs/current/learn/glossary.mdx Updates glossary “Ledgers section” link to the new ledgers README path.
i18n/es/docusaurus-plugin-content-docs/current/data/indexers/build-your-own/ingest-sdk/README.mdx Updates ledgers references to the new ledgers README path.
i18n/es/docusaurus-plugin-content-docs/current/data/apis/rpc/api-reference/methods/README.mdx Updates “Ledger Headers” reference to the new headers page path.
i18n/es/docusaurus-plugin-content-docs/current/data/analytics/hubble/analyst-guide/history-vs-state-tables.mdx Updates “History Ledgers” link (but currently points to a non-existent target).
i18n/es/docusaurus-plugin-content-docs/current/build/smart-contracts/getting-started/storing-data.mdx Updates ledgers link to the new ledgers README path.
i18n/es/docusaurus-plugin-content-docs/current/build/smart-contracts/example-contracts/storage.mdx Updates ledgers link to the new ledgers README path.
docs/validators/README.mdx Updates ledger link to the new ledgers README path.
docs/learn/glossary.mdx Updates glossary “Ledgers section” link to the new ledgers README path.
docs/learn/fundamentals/stellar-data-structures/ledgers/headers.mdx Adds new dedicated “Ledger Headers” page.
docs/learn/fundamentals/stellar-data-structures/ledgers/entries.mdx Adds new dedicated “Ledger Entries” page.
docs/learn/fundamentals/stellar-data-structures/ledgers/category.json Adds a category definition to make /ledgers a section with a linked landing doc.
docs/learn/fundamentals/stellar-data-structures/ledgers/README.mdx Adds new ledgers landing page with DocCardList navigation.
docs/learn/fundamentals/stellar-data-structures/ledgers.mdx Removes the previous monolithic ledgers page.
docs/data/indexers/build-your-own/ingest-sdk/README.mdx Updates ledgers references to the new ledgers README path.
docs/data/apis/rpc/api-reference/methods/README.mdx Updates “Ledger Headers” reference to the new headers page path.
docs/data/analytics/hubble/analyst-guide/history-vs-state-tables.mdx Updates “History Ledgers” link (but currently points to a non-existent target).
docs/build/smart-contracts/getting-started/storing-data.mdx Updates ledgers link to the new ledgers README path.
docs/build/smart-contracts/example-contracts/storage.mdx Updates ledgers link to the new ledgers README path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ElliotFriend

Copy link
Copy Markdown
Contributor

can you bring in the new changes from main and resolve the conflicts?

@ElliotFriend ElliotFriend 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.

this is a nice split, and you've done it quite well! have a few nitpicks and fact-checks throughout, but overall this is very close!

@ElliotFriend ElliotFriend 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.

couple more nitpicks and changes. after these, i'll be happy to merge the PR. thanks!!

JFWooten4 and others added 2 commits July 21, 2026 10:23
@stellar-doxie

stellar-doxie Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

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

I pushed fixes for three broken anchors and the TTL wording on the entries page. No live preview was available.

@JFWooten4 please merge main. Only line 10 of docs/validators/README.mdx conflicts: keep main's "5-7 seconds" and your new link. I cannot push a merge that carries main's workflow changes.

@ElliotFriend the "deprecated" vs "disabled" thread is yours to settle.

@stellar-doxie stellar-doxie Bot added the bot:needs-author Bot asked the author for a change or clarification label Oct 7, 2026
Remove obsolete Nginx redirects and the legacy routes list. Bring in the current site configuration, point the historical ledger-headers redirect to the dedicated Headers page, and register both Entries and Headers in navigation.

Co-authored-by: ChatGPT 6 <[email protected]>
@mintlify

mintlify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 48afac7.

Approve preview

@stellar-doxie

stellar-doxie Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Back on this because @JFWooten4 pushed a new commit.

The new docs.json entries and the ledger-headers redirect are correct. The branch still conflicts with main in 10 files, so no checks ran at this head and no live preview was available. I cannot push a merge to your fork, because it carries main's workflow changes.

@JFWooten4 please merge main, then:

  1. Rename ledgers/README.mdx to index.mdx and delete _category_.json.
  2. Use <Note> instead of :::note, drop sidebar_* and the # Ledgers H1, and use root-relative links without .mdx (CONTRIBUTING.md). Write heading IDs as {#account}, since Mintlify ignores {/* #account */}.
  3. In headers.mdx, keep main's newer header text (Correct ledger header units and document the extension field #2930, Nest the StellarValue members under scpValue on the Ledgers page #3050). Your "Network Flags" section and main's new "Extension" section describe the same flags: keep one.
  4. In getLedgerEntries.mdx, edit only the hand-written part below the generated block. migrate-from-horizon-to-rpc.mdx:145 links #types-of-ledgerkeys, so update it if that heading goes.
  5. Point methods/index.mdx:77 (ledgers#ledger-headers) at ledgers/headers.

Add a direct redirect for the former network-configuration ledger-headers URL, preserving the existing encyclopedia redirect and routing both to the new Headers documentation page.

Co-authored-by: ChatGPT 6 <[email protected]>
@stellar-doxie

stellar-doxie Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Back on this because @JFWooten4 pushed a new commit.

The new redirect is correct: the old network-configuration/ledger-headers URL was live in 2025 and returns 404 now. The branch still conflicts with main in 10 files, so no checks ran at this head. No live preview was available. My earlier list of steps still applies.

@JFWooten4

Copy link
Copy Markdown
Contributor Author

Great work on the triage bot; it gives very specific feedback. Those first three corrections in 1610334 are great finds. And they reminded me of some important style choices I now need to clarify for documentation. Only gripe is line 88, which reverted an intentional syntax change, but that could just be from this being an early version of the bot.

@stellar-doxie

stellar-doxie Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Back on this because @JFWooten4 replied.

Thanks. You are right that "object" was your deliberate word, so I restored it in 48afac7. I kept one part of my fix:

  • Temporary is a Soroban storage type.
  • TTL entries also cover persistent data and contract code.

The line now reads "for the associated contract data or code object." My earlier list of steps (merge main, then the Mintlify port) still applies.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:needs-author Bot asked the author for a change or clarification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants