Skip to content

bug: css custom properties documentation is not generated on stencil docs #5883

Closed

Description

@shivajivarma

Prerequisites

Stencil Version

4.11.0

Current Behavior

stencil build --docs generates css custom properties to readme output.

but stencil docs command does not generates.

Expected Behavior

stencil docs expected to generate css custom properties to readme output.

System Info

No response

Steps to Reproduce

run stencil docs and see readme generated files will not have css custom properties

Code Reproduction URL

https://github.com/goatui/components

Additional Information

No response

Activity

  1. added
    Bug: Validated
    and removed on Jul 8, 2024
  2. christian-bromann commented on Jul 8, 2024

    @christian-bromann
    Member

    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.

  3. added
    Good First Issue
    on Apr 2, 2025
  4. ShaneK commented on Jun 2, 2025

    @ShaneK
    Contributor

    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 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?

  5. shivajivarma commented on Jun 6, 2025

    @shivajivarma
    Author

    Hi @ShaneK,

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedGood First Issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions