Skip to content

feat: group API objects on named reference pages - #861

Merged
has2k1 merged 1 commit into
mainfrom
fix/group-reference-objects
Dec 4, 2026
Merged

has2k1 merged 1 commit into
mainfrom
fix/group-reference-objects

Conversation

@has2k1

@has2k1 has2k1 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Site authors can publish related API objects at one chosen URL, with a heading and link target for each object. Great Docs previously split the objects into separate pages. Grouped pages preserve addresses such as pkg/py/typography.html in the Brand-yml migration.

reference:
  - title: Authentication
    contents:
      - kind: page
        path: sessions  # Publishes reference/sessions.html
        summary:
          name: Login sessions
        contents:
          - login
          - logout

Without summary.name, the page uses the filename stem as its label. Historical references rebuilt from an API snapshot or Git tag use one page per symbol.

Before (one index entry per object):

Brand-yml reference index listing the original objects separately

After (groups in the index and sidebar):

Brand-yml reference index linking to named groups including Typography

Publish related objects at a chosen reference URL with one sidebar entry and a link to each object. Rebuild historical snapshot references from their own symbol lists.
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

📚 Preview this PR's docs locally

Fetch the just-built site and open it in your browser:

# this exact build
great-docs preview --run 47340632099

# or always the latest build for this PR
great-docs preview --pr 861
Auth & tips
  • Requires great-docs: pip install great-docs (or run via pipx/uvx).
  • Auth: run gh auth login then add --use-gh, or set GITHUB_TOKEN (needs Actions: read).
  • Jump to a page: add --path reference/index.html.
  • Latest vs exact: --pr <n> grabs the newest build; --run <id> pins this one.
  • Re-download: --refresh ignores the local cache.

@has2k1
has2k1 merged commit e126cae into main Dec 4, 2026
7 checks passed
@has2k1
has2k1 deleted the fix/group-reference-objects branch December 4, 2026 13:45
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