Skip to content
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

Upgrade to Bootstrap 5.2 #470

Closed
50 tasks done
Tracked by #166
LisaFC opened this issue Mar 2, 2021 · 9 comments · Fixed by #1554
Closed
50 tasks done
Tracked by #166

Upgrade to Bootstrap 5.2 #470

LisaFC opened this issue Mar 2, 2021 · 9 comments · Fixed by #1554
Assignees
Labels
bootstrap breaking change e3-weeks p1-high roadmap use with other tags (such as `enhancement` or `example site`) to add items for roadmap review
Milestone

Comments

@LisaFC
Copy link
Collaborator

LisaFC commented Mar 2, 2021

Bootstrap 5 has some changes that seem to break Docsy site builds #304 #464.


(Edit: @chalin)

Info: the last BSv4 build

A link to the last edition of the User Guide that was build with BSv4: https://deploy-preview-1356--docsydocs.netlify.app. This link was taken from the last PR/commit of v0.6.x.

Prep

Tasks

All of the section headings below that are hyperlinks, link to a section of the Bootstrap 5.2 migration guide of the corresponding name. A GitHub user name on a section or subsection heading declares that person as taking responsibility for making the corresponding changes to Docsy.

Dependencies - @chalin

Sass - @chalin

Customization:

Color system - @chalin

While I used to think that Color system changes were optional, I've since changed my mind. IMHO, without #1388 we would have gotten weird behavior. For details see the issue's opening comment.

Grid updates - @chalin

⚠️ The following isn't mentioned in the migration guide. Formatting of rows and columns has changed! For details, and related fixes, see:

Content, Reboot, etc - @chalin

Table styles have changed. For details, see #1473.

⏭️ RTL - @chalin

Forms

Docsy's only use of form elements is for search, and it's a very minimal. Docsy doesn't use any of the form-specific classes that were deprecated.

Components

Utilities - @chalin

Regex:

  • Margin and padding: \b([mp])[lr](-([0-5]|auto))\b
  • Left/right classes: \b((float|border|rounded|text)-)(left|right)\b

Helpers - @chalin

  • No changes necessary AFAICT.

JavaScript

Other

Post-upgrade checks / changes

@bwklein
Copy link
Contributor

bwklein commented Mar 17, 2021

Suggestion: Use Tailwind CSS instead. 😄

@kinti
Copy link

kinti commented Mar 21, 2021

Is not Docsy only, its all themes..., is all..., in netlify

@LisaFC
Copy link
Collaborator Author

LisaFC commented Mar 29, 2021

Hmm, didn't realize how many things it wasn't compatible with. :( I'll see if I can find any more general Hugo/Netlify bootstrap 5 issues.

@glasnt
Copy link
Member

glasnt commented Dec 7, 2021

I took a look, and after bumping bootstrap from v4-dev to main, I was able to replicate the issues others had found with errors, and found it was related to color-yiq being renamed... which was already found in #517 :)

As they found, there are other small UX differences that are visible just in the user guide. See a dynamic view of the 517 Netlify preview for comparison

The Bootstrap migration guide should help with a lot of these https://getbootstrap.com/docs/5.0/migration/.

I'm not 100% across this project, testing wise, how you enumerate all the customisations your theme has, etc.

@deining deining added bootstrap roadmap use with other tags (such as `enhancement` or `example site`) to add items for roadmap review labels Jan 18, 2022
@chalin
Copy link
Collaborator

chalin commented Jul 20, 2022

Extra incentive to schedule migration to v5 before year's end:

  • v4 critical support ends: 2022/11
  • v4 EOL: 2023/01

Sources:

/cc @geriom @emckean

@chalin chalin added this to the 22Q3 milestone Aug 18, 2022
@LisaFC LisaFC changed the title Compatibility with Bootstrap 5 Upgrade to Bootstrap 5 Aug 18, 2022
@LisaFC
Copy link
Collaborator Author

LisaFC commented Aug 18, 2022

Name changed so we can use this to track actually making the necessary update.

@chalin
Copy link
Collaborator

chalin commented Aug 18, 2022

Thanks @LisaFC. FYI, I've set the milestone to Q3 :).

@chalin
Copy link
Collaborator

chalin commented Oct 8, 2022

Moved to 22Q4. Given the deadlines we're facing re. BS v4 EOL, we really should schedule this work to happen soon:

Extra incentive to schedule migration to v5 before year's end:

  • v4 critical support ends: 2022/11
  • v4 EOL: 2023/01

@chalin
Copy link
Collaborator

chalin commented May 4, 2023

I've updated the title to reflect that this is an upgrade to v5 that stops at 5.2. I was hoping to pickup 5.3, but it is still in alpha, and I don't want to delay a release of Docsy any longer.

Other updates make to this issue:

I've created a followup meta issue to track the key changes we'll want to make after this issue is closed:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bootstrap breaking change e3-weeks p1-high roadmap use with other tags (such as `enhancement` or `example site`) to add items for roadmap review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants