Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic colors don't work in type and function signatures #2227

Closed
RunDevelopment opened this issue Apr 9, 2023 · 2 comments
Closed

Semantic colors don't work in type and function signatures #2227

RunDevelopment opened this issue Apr 9, 2023 · 2 comments
Labels
bug Functionality does not match expectation
Milestone

Comments

@RunDevelopment
Copy link
Contributor

Search terms

semantic color type function signature

Expected Behavior

TypeDoc shows the kind of type linked to in function signatures or elsewhere using color. types are red, interfaces are green, and classes are blue. This is a great feature.

image

Actual Behavior

This feature only works on class and interface pages. It does not work on variable, type, and function pages.

image
image
image
(NodeFactory<T> is an interface.)

Steps to reproduce the bug

Sorry for the non-minimal reproduction repo:

  1. Download https://github.com/RunDevelopment/refa
  2. npm ci
  3. npm i -D typedoc@0.24.1
  4. npm run build:docs
  5. See docs at docs/index.html

The current docs generated by 0.23.28, which has the same issue, can be found here (commonCharacter, Word, createCharSet, nodeFactory).

Environment

  • Typedoc version: 0.24.1 (same issue in 0.23.x)
  • TypeScript version: 5.0.2
  • Node.js version: v16.13.0
  • OS: Win10
@RunDevelopment RunDevelopment added the bug Functionality does not match expectation label Apr 9, 2023
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Apr 9, 2023

Huh, that's odd. I thought this was implemented in a way that it'd always semantically highlight.

@RunDevelopment
Copy link
Contributor Author

Thank you @Gerrit0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

2 participants