Skip to content

Admonitions reverted back to pre-beta.4 design when using yarn 3 PnP #6140

Closed

Description

@factoidforrest

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

Switching to yarn 3 (a radically different package manager) , my admonitions now look like those found in the remark-admonitions readme instead of those found in the docusaurus docs.

Why is it that the admonitions in the remark-admonitions github readme look totally different from those in your documentation? If I can understand where that different styling is coming in, maybe I can understand how to fix the issue. Your admonition styling in preset-classic is MUCH better.

Steps to reproduce

Here is our repository and branch with the issue:
https://github.com/lunasec-io/lunasec/tree/speed-up-ci/docs

Expected behavior

Admonitions would always look good

Actual behavior

admonitions look terrible

Your environment

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

Activity

  1. added
    bug
    status: needs triage
    on Dec 21, 2021
  2. Josh-Cena commented on Dec 21, 2021

    @Josh-Cena
    Collaborator

    Hi, the admonition design is done on the Infima side (facebookincubator/infima#155) and it was just that the remark-admonitions README wasn't updated. Could you do yarn why infima and check the version of Infima installed?

    I have several websites also using PnP and I've not observed that behavior.

  3. added
    status: needs more information
    and removed
    status: needs triage
    on Dec 21, 2021
  4. changed the title [-]Admonitions look horrible when using yarn 3 (plug and play)[/-] [+]Admonitions reverted back to pre-beta.4 design when using yarn 3 PnP[/+] on Dec 21, 2021
  5. factoidforrest commented on Dec 21, 2021

    @factoidforrest
    Author
    
    ╰─$ yarn why -R infima                                                                                                                                                                                                                                                                                                   1 ↵
    └─ docs@workspace:docs
       └─ @docusaurus/preset-classic@npm:2.0.0-beta.ff31de0ff [b5b5d] (via npm:^2.0.0-beta.13 [b5b5d])
          └─ @docusaurus/theme-classic@npm:2.0.0-beta.ff31de0ff [55551] (via npm:2.0.0-beta.ff31de0ff [55551])
             └─ infima@npm:0.2.0-alpha.23 (via npm:0.2.0-alpha.23)
    

    Hm

  6. factoidforrest commented on Dec 21, 2021

    @factoidforrest
    Author

    It looks like preset-classic is pulling in an older version of theme-classic, which is pulling in the old [email protected] (latest alpha.36). Peculiar. I don't know why there is a difference between the main package name and the "via npm" package name, that is peculiar. More research.

  7. Josh-Cena commented on Dec 21, 2021

    @Josh-Cena
    Collaborator

    You are not installing the right Docusaurus version. Please use exact versions rather than caret versions; we had a bad canary version naming and that version 2.0.0-beta.ff31de0ff was actually a pre-release for beta.0 (https://www.npmjs.com/package/@docusaurus/core/v/2.0.0-beta.ff31de0ff)

  8. added
    closed: wontfix
    and removed
    status: needs more information
    on Dec 21, 2021
  9. Josh-Cena commented on Dec 21, 2021

    @Josh-Cena
    Collaborator

    Theoretically we could deprecate those canary versions, but in practice there are too many of them🤦‍♂️ You are not the first to encounter this, but in fact we've received very few complaints about pkg managers resolving to a terrible pre-release version. Maybe Yarn also checks release timestamps when doing upgrades? At least I use fixed versions

  10. factoidforrest commented on Dec 21, 2021

    @factoidforrest
    Author

    Thank you very much!

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

    bugclosed: wontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions