Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Design System Documentation is not up to date #10233

Closed as not planned
Closed as not planned

Description

@kulmann

Describe the bug

The design system documentation living at https://owncloud.design is not up to date. It is still the old content published from releases of https://github.com/owncloud/owncloud-design-system

Expected behavior

Actual behavior

  • design system docs cannot be built from within the web monorepo
  • design system docs are not published anywhere

Activity

  1. added
    Type:Bug
    Priority:p3-medium
    on Dec 21, 2023
  2. JammingBen commented on Dec 22, 2023

    @JammingBen
    Contributor

    Some more technical info: building the docs stopped working after the upgrade to Vue 3. It's probably a good start to check if both vue-style-loader and vue-styleguidist are compatible with Vue 3. If I recall correctly they were not at the time (or we simply didn't care enough to check that properly).

  3. AlexAndBear commented on Dec 22, 2023

    @AlexAndBear
    Contributor

    It would be wonderful to have an actual version. I use the docs quite often. Big kudos if this works again.

  4. LukasHirt commented on Dec 27, 2023

    @LukasHirt
    Collaborator

    It's probably a good start to check if both vue-style-loader and vue-styleguidist are compatible with Vue 3.

    Styleguidist seems to support Vue 3 but the vue-style-loader does not seem to do the same. It seems there is e.g. mini-css-extract-plugin that might be used instead.

  5. LukasHirt commented on Dec 27, 2023

    @LukasHirt
    Collaborator

    I did research whether styleguidist would still be the right fit and compared it to other solutions:

    Styleguidist

    Pros:

    • Supports Vue 3.
    • Requires several adjustments, but it should be possible to continue using it.
    • Consistency with the current development approach.
    • Minimal new knowledge required for the team.

    Cons:

    • Does not offer capabilities for developers to try out components in different states, etc. other than what is done in docs.
    • If we want to keep using it as we do now, we need to stick with webpack.

    Storybook

    Pros:

    • Provides a nice way for developers to try out different states, events, etc. of components in the browser.
    • Provides similar way of documenting props and events like styleguidist does
    • Docs-only pages can be created so we would not lose content.

    Cons:

    • Requires quite a big amount of changes to transition.
    • More effort compared to Styleguidist.

    Histoire

    Pros:

    • Similar to Storybook but easier to set up.
    • Less effort required compared to Storybook.
    • Built on top of Vite.

    Cons:

    • Still requires a significant amount of effort.

    Full-Blown Design Docs Project

    Pros:

    • Offers a comprehensive documentation solution where we can handle whatever use case we would like.
    • Potential for a playground for developers to experiment with components where they can even combine multiple components (we could use vue-live).
    • We could build this on top of solutions like e.g. vitepress and thanks to that also have the docs static which would improve performance.

    Cons:

    • Requires the most effort.
    • Requires creating wrappers for component examples.
    • Time-consuming compared to the other solutions.

    Recommendation

    Vue Styleguidist appears to be the most suitable choice. It supports Vue 3, requires relatively fewer adjustments, and allows the team to stay consistent with the existing development approach. However, if the team is open to investing more effort for a more comprehensive solution with a playground, the full-blown design docs project (e.g. like Vuetify) could be considered, especially if the benefits align with long-term goals.

  6. dschmidt commented on Dec 27, 2023

    @dschmidt
    Member

    vue-styleguidist/vue-styleguidist#1363 (comment)

    Could this be of any use?

    I'm not keen on keeping webpack around to be honest, but if it's the most reasonable approach (idk), I would really like to see at least a few e2e Tests, so we can confidently accept renovatebot PRs to the ODS

  7. kulmann commented on Dec 27, 2023

    @kulmann
    ContributorAuthor

    Thank you for the research @LukasHirt - I share your recommendation. We played around with and even started to switch to Storybook roughly 2 years ago in the design system repo. The efforts turned out to be too much, compared to the value it brings us. The current approach with vue-styleguidist already solves most of the things we wanted.

    Since you came to the conclusion that making it work again should be possible, let's try that. It is the right choice with the current requirements.

  8. LukasHirt commented on Dec 29, 2023

    @LukasHirt
    Collaborator

    I'm not keen on keeping webpack around to be honest

    This approach would basically tie into the "Full-Blown Design Docs Project". The automatic docs we have generated now (not only the props, slots, etc. but the whole site) is generated thanks to the styleguidist which supports only webpack.

    If we go with vite (e.g. with vitepress as seen in the comment you posted), we would need to handle the docs ourselves. We can of course utilise the vue-live as mentioned and props and slots docs could still be extracted via the docgen api but the rest would be up to us to maintain (you can see this mentioned in comment above the one you posted).

  9. dschmidt commented on Dec 30, 2023

    @dschmidt
    Member

    I don't insist on getting rid of webpack...

    The other part of my comment was more relevant imho: we need e2e tests for the docs

  10. LukasHirt commented on Jan 23, 2024

    @LukasHirt
    Collaborator

    Docs are now in state where they can be built and have E2E tests. If I should look also into publishing, I would probably need someone more familiar with the current release process to pair with or delegate the task.

  11. LukasHirt commented on Mar 21, 2025

    @LukasHirt
    Collaborator

    Docs are no longer built

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

Metadata

Metadata

Assignees

Labels

Priority:p3-mediumType:Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions