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

v4: switch to Hugo #32077

Merged
merged 3 commits into from
Nov 19, 2020
Merged

v4: switch to Hugo #32077

merged 3 commits into from
Nov 19, 2020

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Nov 7, 2020

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:

Preview: https://deploy-preview-32077--twbs-bootstrap.netlify.app/

@XhmikosR XhmikosR force-pushed the v4-dev-xmr-hugo branch 15 times, most recently from dea84de to a436a82 Compare November 8, 2020 07:51
@XhmikosR XhmikosR force-pushed the v4-dev-xmr-hugo branch 3 times, most recently from 95cc9ee to d17f48e Compare November 8, 2020 15:14
@XhmikosR XhmikosR force-pushed the v4-dev-xmr-hugo branch 2 times, most recently from 68caca6 to ea53689 Compare November 8, 2020 18:31
@coliff

This comment has been minimized.

@XhmikosR

This comment has been minimized.

@coliff

This comment has been minimized.

@XhmikosR

This comment has been minimized.

@XhmikosR
Copy link
Member Author

XhmikosR commented Nov 16, 2020

Updated the gh-pages comparison branch: a0b8dd8?w=1

@XhmikosR XhmikosR force-pushed the v4-dev-xmr-hugo branch 2 times, most recently from be41f18 to 5762e6d Compare November 17, 2020 15:12
@ffoodd
Copy link
Member

ffoodd commented Nov 18, 2020

Concerning border-radius examples, we may simply add .d-flex to .bd-example. Not sure it has any value though, this is mostly cosmetic.

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 👍

Copy link
Member

@ffoodd ffoodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines -3 to -12
/site/.jekyll-cache
/site/.jekyll-metadata
/site/docs/**/dist/
# Hugo folders
/resources/

# Ignore ruby/bundler files
/.bundle/
/vendor/
/.ruby-version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@XhmikosR
Copy link
Member Author

Thanks @ffoodd for the review, it's been really helpful catching some of the issues :)

So, basically this leaves us:

  1. See if we are going to go with the homepage changes /CC @mdo
  2. I need to make a final rebase to clean up the patches
  3. About the team members, we can tackle it in another PR; I just noted here whatever I noticed while comparing each of the pages

@XhmikosR XhmikosR force-pushed the v4-dev-xmr-hugo branch 3 times, most recently from d19a6d5 to ff91a9e Compare November 18, 2020 19:31
Copy link
Member

@MartijnCuppens MartijnCuppens left a 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!

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants