You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: css custom properties documentation is not generated on stencil docs #5883
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilGood First IssueThis is a good first issue for someone wantng to contribute to Stencil!
Thanks @shivajivarma for raising the issue. I was able to verify the bug and kindly ask to help assist us with a resolution on this problem. Our team is short staffed and we are unlikely to tackle this soon, hence any type of contribution that help to resolve the problem is much appreciated.
I've been looking at this and what I've found is it looks like the commands are intentionally different. The command stencil docs seems to be intended to be used as a quick doc update command, as it does not build anything. As a result, it cannot output documentation about things that require building like CSS (especially if you use SASS/have SASS plugins), but it is very fast and efficient for changes that do not need to be rebuilt to process.
On the other hand, stencil build --docs, does build the code and can output documentation that requires building first, like CSS styles. It takes longer, and therefor isn't optimal for minor changes that just need quick updates.
We understand that this isn't very clear in the documentation and soon I'll make a PR to improve that by outlining the differences. We're planning on reworking the Stencil CLI in the future to address issues like these, and I'm curious how what kind of changes you'd like to see to it when it comes to documentation generation?
I understand that stencil docs is a lightweight command for generating quick documentation. However, is there a way to preserve CSS Custom Properties previously generated using stencil build --docs while still using the stencil docs command to update only the sections it handles?
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilGood First IssueThis is a good first issue for someone wantng to contribute to Stencil!
Activity
christian-bromann commentedon Jul 8, 2024
Thanks @shivajivarma for raising the issue. I was able to verify the bug and kindly ask to help assist us with a resolution on this problem. Our team is short staffed and we are unlikely to tackle this soon, hence any type of contribution that help to resolve the problem is much appreciated.
ShaneK commentedon Jun 2, 2025
Hey! Thanks for the issue report!
I've been looking at this and what I've found is it looks like the commands are intentionally different. The command
stencil docsseems to be intended to be used as a quick doc update command, as it does not build anything. As a result, it cannot output documentation about things that require building like CSS (especially if you use SASS/have SASS plugins), but it is very fast and efficient for changes that do not need to be rebuilt to process.On the other hand,
stencil build --docs, does build the code and can output documentation that requires building first, like CSS styles. It takes longer, and therefor isn't optimal for minor changes that just need quick updates.We understand that this isn't very clear in the documentation and soon I'll make a PR to improve that by outlining the differences. We're planning on reworking the Stencil CLI in the future to address issues like these, and I'm curious how what kind of changes you'd like to see to it when it comes to documentation generation?
shivajivarma commentedon Jun 6, 2025
Hi @ShaneK,
I understand that
stencil docsis a lightweight command for generating quick documentation. However, is there a way to preserve CSS Custom Properties previously generated usingstencil build --docswhile still using the stencil docs command to update only the sections it handles?