-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build(docs): show exported constants in docs #13168
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
build(docs): show exported constants in docs #13168
Conversation
|
||
<pre class="docs-markdown-pre"> | ||
<code class="docs-markdown-code"> | ||
{%- highlight "typescript" -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use highlightjs here when we don't do this for any of the other symbol types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I couldn't think of anything that is describing the constant better.
My goal would be to do this for the other types as well (in follow-ups)
This also just looks way better IMO & also describes exports pretty good (besides the description). This is how Angular.io also does it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @devversion! This PR has merge conflicts due to recent upstream merges. |
* Currently constants which are exported, will not show up in the docs. This introduces support for displaying `constants` in the docs. * Also creates a Nunjucks plugin that supports highlighting specific code snippets. This is helpful when rendering a type in the docs (similar to angular/aio) * Marks most animation constants as `@docs-private` because those shouldn't be relevant to users.
bd78143
to
e62c2ad
Compare
* Currently constants which are exported, will not show up in the docs. This introduces support for displaying `constants` in the docs. * Also creates a Nunjucks plugin that supports highlighting specific code snippets. This is helpful when rendering a type in the docs (similar to angular/aio) * Marks most animation constants as `@docs-private` because those shouldn't be relevant to users.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
constants
in the docs.@docs-private
because those shouldn't be relevant to users.Screenshot:
The idea of showing the constants in this format comes from the Angular docs.