-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: switch to docs-content from examples package #14612
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: switch to docs-content from examples package #14612
Conversation
With angular/material.angular.io#565 the docs-content will be pulled from the `@angular/material-examples` package. Changes needed on this repository: * Since we update some styles and logic in favor of simplicity, we need to update the Dgeni templates to conform with these changes. * Remove the unnecessary `examplesPath` property member because we now compute the `docs-content/` asset paths in a consistent way and don't want to mix up the source locations.
<pre class="docs-markdown-pre"> | ||
<code class="docs-markdown-code"> | ||
{%- highlight "typescript" -%} | ||
const {$ constant.name | safe $}: {$ constant.type | safe $}; | ||
{%- end_highlight -%} | ||
</code> | ||
</pre> | ||
</div> |
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.
The indentation seems amiss here (and below)
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.
That's actually by intention because if we indent the <div>
here, the pre
and code
element would have some additional whitespace and throw off the docs.
I tried using a HTML minifier for Bazel and tested it, but the whitespaces were preserved. That's why the pre
and code
already were indented in that way (we use a minifier at the moment;)
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
With angular/material.angular.io#565 the docs-content will be pulled from the `@angular/material-examples` package. Changes needed on this repository: * Since we update some styles and logic in favor of simplicity, we need to update the Dgeni templates to conform with these changes. * Remove the unnecessary `examplesPath` property member because we now compute the `docs-content/` asset paths in a consistent way and don't want to mix up the source locations.
With angular/material.angular.io#565 the docs-content will be pulled from the `@angular/material-examples` package. Changes needed on this repository: * Since we update some styles and logic in favor of simplicity, we need to update the Dgeni templates to conform with these changes. * Remove the unnecessary `examplesPath` property member because we now compute the `docs-content/` asset paths in a consistent way and don't want to mix up the source locations.
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. |
With angular/material.angular.io#565 the docs-content will be pulled from the
@angular/material-examples
package. Changes needed on this repository:examplesPath
property member because we now compute thedocs-content/
asset paths in a consistent way and don't want to mix up the source locations.