-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
v4: switch to Hugo #32077
v4: switch to Hugo #32077
Conversation
dea84de
to
a436a82
Compare
95cc9ee
to
d17f48e
Compare
68caca6
to
ea53689
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
364ddc8
to
ada4c60
Compare
6d0754b
to
bc8613e
Compare
bc8613e
to
58f7214
Compare
Updated the gh-pages comparison branch: a0b8dd8?w=1 |
be41f18
to
5762e6d
Compare
Concerning border-radius examples, we may simply add No opinion about the team members, I don't know how / when it's updated so I let you (oldest team members) take care of it. Just took a few random pages and I really like it, the generated markup is really better! That's a nice improvement 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/site/.jekyll-cache | ||
/site/.jekyll-metadata | ||
/site/docs/**/dist/ | ||
# Hugo folders | ||
/resources/ | ||
|
||
# Ignore ruby/bundler files | ||
/.bundle/ | ||
/vendor/ | ||
/.ruby-version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Thanks @ffoodd for the review, it's been really helpful catching some of the issues :) So, basically this leaves us:
|
d19a6d5
to
ff91a9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Incredible job, once again, @XhmikosR!
ff91a9e
to
7edb919
Compare
This commit includes all the needed workarounds and most changes from the main branch for everything to work, like: * removing empty lines in raw HTML that break output * read .browserslistrc, CSS variables from disk instead of duplicating it * using Hugo mounts * using Hugo for the docs CSS/JS * move ToC Sass code to a separate file while adapting it for Hugo Thus, this patch makes our npm scripts faster since lint runs on one step and there's no separate docs assets processing.
Now, it's safe to do use it since it covers more cases
7edb919
to
fa6c32e
Compare
So, apart from Hugo being multiple times faster as we already know, I also switched to using Hugo to handle the docs assets (CSS/JS) like we do on main. Which means, it will be equally simple to work on the v4-dev branch as main. 😃
TODO:
fix getting started snippets (also search for
site.
)replace the remaining Liquid code
fix jQuery being bundled in the docs JS; not sure how to handle this without hardcoding the files we want to include, since we are using
Resources.match
- EDIT: worked around it, not sure if there's a better solutionmake sure we use
docsref
when possible like in mainFix migration sidebar link
Read browserslist, fonts, CSS variables etc
Deduplicate npm scripts
Fix duplicate trailing slashes in URLs; also run a full site link checker
Fix ToC CSS - EDIT: added a patch but it seems there are more cases that we need to fix, with nested lists:
Screenshot
EDIT2: it was due to going from an
h2
toh4
; switched toh3
and now it's finego through the layout code one more time; fix discrepancies like social logo, classes etc
Figure out why some classes are missing: EDIT: this is right and previously was wrong
card-img
is missing here https://deploy-preview-32077--twbs-bootstrap.netlify.app/docs/4.5/components/card/#horizontal this seems to affect main toocard-img-top
becomescard-img
here https://deploy-preview-32077--twbs-bootstrap.netlify.app/docs/4.5/components/card/#card-columnsclass="mr-3"
is missing here: https://deploy-preview-32077--twbs-bootstrap.netlify.app/docs/4.5/components/media-object/#nestingsee if this bothers us a lot; I can't remove the newline there (although, we apply margin via CSS, so we could probably remove that if it bothers us a lot) https://deploy-preview-32077--twbs-bootstrap.netlify.app/docs/4.5/utilities/borders/#border-radius (it's the same on main too so we probably want to keep it)
Screenshot
see if we are going to go with the homepage patch or if I should drop it- EDIT: moved to homepage: split snippets and show copy buttons #32196Update team members
test all the stuff multiple times
Preview: https://deploy-preview-32077--twbs-bootstrap.netlify.app/