Skip to content

invalid: improve server.md TOC#6161

Closed
Uzlopak wants to merge 2 commits intomainfrom
docs-server-md
Closed

invalid: improve server.md TOC#6161
Uzlopak wants to merge 2 commits intomainfrom
docs-server-md

Conversation

@Uzlopak
Copy link
Copy Markdown
Contributor

@Uzlopak Uzlopak commented Jun 5, 2025

Currently the TOC is malformed:

image

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 5, 2025
@mcollina
Copy link
Copy Markdown
Member

linting is failinf

@Uzlopak Uzlopak changed the title docs: improve server.md TOC invalid: improve server.md TOC Sep 18, 2025
@Eomm Eomm added help wanted Help the community by contributing to this issue good first issue Good for newcomers labels Nov 9, 2025
@Eomm
Copy link
Copy Markdown
Member

Eomm commented Jan 17, 2026

@Uzlopak can we unblock this PR so we can land it?

@Deepvamja
Copy link
Copy Markdown
Contributor

"Hi, I'd like to work on this issue. I'll submit a PR shortly."

@Eomm
Copy link
Copy Markdown
Member

Eomm commented Mar 7, 2026

"Hi, I'd like to work on this issue. I'll submit a PR shortly."

GO FOR IT 🎉

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes documentation navigation by reformatting the (previously malformed) table of contents in docs/Reference/Server.md, and makes minor spacing adjustments in docs/Reference/TypeScript.md.

Changes:

  • Rewrites the Server.md TOC into valid Markdown list structure and aligns several headings/anchors for improved navigation.
  • Adjusts some heading labels/levels within Server.md (e.g., “Server Methods and Attributes”, listenTextResolver nesting).
  • Adds blank lines in a numbered list in TypeScript.md for readability.

Reviewed changes

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

File Description
docs/Reference/TypeScript.md Adds blank lines within a numbered list (formatting-only).
docs/Reference/Server.md Rebuilds malformed TOC and updates related headings/anchors.

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

You can also share your feedback on Copilot code review. Take the survey.

- [onProtoPoisoning](#onprotopoisoning)
- [onConstructorPoisoning](#onconstructorpoisoning)
- [logger](#logger)
- [loggerInstance](#loggerInstance)
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

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

The TOC entry for loggerInstance links to #loggerInstance, but there is no element with id="loggerInstance" in this document (the heading slug is #loggerinstance, and the explicit anchor is #factory-logger-instance). This link will be broken on GitHub-rendered Markdown; update the fragment to match an existing anchor (e.g., #loggerinstance or #factory-logger-instance).

Suggested change
- [loggerInstance](#loggerInstance)
- [loggerInstance](#factory-logger-instance)

Copilot uses AI. Check for mistakes.
- [setNotFoundHandler](#setnotfoundhandler)
- [setErrorHandler](#seterrorhandler)
- [setChildLoggerFactory](#setchildloggerfactory)
- [setGenReqId](#setGenReqId)
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

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

The TOC entry for setGenReqId points to #setGenReqId, but the section uses <a id="set-gen-req-id"></a> and the heading slug would be #setgenreqid. As written, this fragment won't resolve; update the TOC link to match an existing anchor.

Suggested change
- [setGenReqId](#setGenReqId)
- [setGenReqId](#set-gen-req-id)

Copilot uses AI. Check for mistakes.
Comment on lines 326 to 332
`json2ts` is a CLI utility included in `json-schema-to-typescript`. `schemas`
is the input path, and `types` is the output path.

5. Run `npm run compile-schemas`. Two new files should have been created in the
`types` directory.

6. Update `index.ts` to have the following code:
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

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

This PR is described as fixing a malformed TOC in docs/Reference/Server.md, but it also changes docs/Reference/TypeScript.md (adds blank lines in the numbered list). If that change is intentional, please mention it in the PR description; otherwise, consider reverting it to keep the PR scoped to the stated goal.

Copilot uses AI. Check for mistakes.
@jean-michelet jean-michelet deleted the docs-server-md branch March 10, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Help the community by contributing to this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants