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

Preview with serve looks perfect; format is weird on live website (may be dependency-related, may not be) #1919

Closed
griffinjmbur opened this issue Feb 16, 2024 · 7 comments
Assignees
Labels
bug A bug.
Milestone

Comments

@griffinjmbur
Copy link

Describe the bug
Hi, folks. I'm more-or-less a n00b and have limited HTML experience so forgive me if I am missing something (mostly do datascience/sociology stuff). I have managed to get a very nice looking local preview, but when I push to GH, it looks funky and almost entirely unformatted. The two attached images show the difference.
Screenshot 2024-02-16 at 4 30 44 PM
Screenshot 2024-02-16 at 4 29 00 PM

I have mostly followed the steps here (https://archive.ph/Tnzxg), but one possible source of error is that I write in Mathjax in a Python Jupyter notebook, so I did need to manually add a mathjax-supplement file in _includes and then modify the default.html file in _layouts, which was successful locally. I don't know if that could possibly cause this issue, though.

The error I see (technically an annotation/warning) in the Actions log is this:

build
The github-pages gem can't satisfy your Gemfile's dependencies. If you want to use a different Jekyll version or need additional dependencies, consider building Jekyll site with GitHub Actions: https://jekyllrb.com/docs/continuous-integration/github-actions/

I did try using a GitHub Actions workflow, but to no avail (I just used their suggested default .yml file for Jekyll).

I also saw some recent issues involving the "excerpt" tags that caused people trouble, but I only cloned this repo very recently, and, perhaps for that reason, I actually don't see any "excerpt" tags in the pre-shipped markdown files to begin with.

Lastly, I also get this warning in the terminal when I push:

GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.

I haven't tried to mess with that since after Googling it appeared to be mostly an informational message per other users. I also was able to successfully publish a test run of this site using minimal-mistakes earlier today, and this wasn't a problem.

I greatly appreciate any help or thoughts that anyone has in advance.

@rjzupkoii rjzupkoii added the bug A bug. label Feb 17, 2024
@rjzupkoii
Copy link
Collaborator

This appears to be the same issue as #1041 - can you link to one of the builds that got pushed to your live website?

GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.

This warning you can ignore in the terminal. At some point I'll take a closer look at it to see if there's a way to suppress it since it doesn't impact local testing.

@rjzupkoii rjzupkoii added this to the 2024 Refresh milestone Feb 17, 2024
@griffinjmbur
Copy link
Author

griffinjmbur commented Feb 17, 2024

Forgive me if I'm not linking the correct thing, but I think this should be a good example of a build that worked locally to include the theme but does not include it live.

https://github.com/griffinjmbur/griffinjmbur.github.io/actions/runs/7939272300

By the way, I should note that, although I cannot remember where, I did remember between my first post and this one that I have read about the mathjax fix specifically causing themes not to display. I'm not sure if that's helpful.

I can directly post the specifics of my Mathjax modifications if useful, but they basically followed the guidelines here (https://archive.ph/aKZ29).

Thanks a million for the help.

@rjzupkoii
Copy link
Collaborator

@griffinjmbur Thanks for those links! I still haven't been able to reproduce the error on my slide; however, I suspect there might be a conflict between how MathJax works on stock Minimal Mistakes and Academic Pages. I've bumped MathJax to version 3.0 and updated the template's guide page to demonstrate things up and running. You'll likely need to undo the MathJax related changes in griffinjmbur/griffinjmbur.github.io@47dea63 but hopefully this fixes the problem!

@rjzupkoii rjzupkoii self-assigned this Feb 17, 2024
@griffinjmbur
Copy link
Author

griffinjmbur commented Feb 17, 2024

Got it.

I am going to ask a stupid question, and please link to me to your Ko-Fi/Patreon or whatever for this if you choose to answer it. I just re-pushed and got the same error, but I doubtless didn't actually correct my local files correctly. By

undo the MathJax related changes

do you mean something akin to

modify the mathjax_support.html file to allow for compatibility with Mathjax 3?

?

I (with a bit of help from GPT) updated the _includes/mathjax_support-html to look like this (https://github.com/griffinjmbur/griffinjmbur.github.io/blob/master/_includes/mathjax_support.html), but I'm still get the same issue.

Sorry about this. It is embarrassing to me that I am adept at certain computer/math related tasks but that I'm still just barely proficient at Git and all things web engineering. Any help would be most appreciated!

@rjzupkoii
Copy link
Collaborator

@griffinjmbur From what I was reading it seems like some approaches to MathJax end up overriding some of the template's settings, so that's most likely what is happening. With MathJax version 3.0 you really shouldn't need much more that the two lines in green from 45ea6b2 - I'd recommend starting by undoing anything you did related to MathJax to see if you can start by just getting the site deployed successfully. Then once you have that you can try adding these two lines to _includes/head/custom.html:

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

@griffinjmbur
Copy link
Author

Ah, I see. Thanks for the tip.

I removed the Mathjax supplemental file and the reference to it in the default. Still the same problem, although I may have forgotten somewhere else that I modified the files to get Mathjax working.

I'm going to try to wipe it all clean and start over and see if I can just use your slight modifications to the code mentioned above locally and then try pushing. At this point, I can't seem to get the theme to look coherent on the website even without adding any posts of my own or any reference to MJ. Thanks for the help! I'll report back.

@griffinjmbur
Copy link
Author

OK, that did it. So, for the record, your update to the source code + my removal of all Mathjax custom code worked.

THANK YOU!!!!

WillFuller added a commit to WillFuller/WillFuller.github.io that referenced this issue May 10, 2024
# Merged changes from Upstream Fork

* Increase font size in code blocks

See academicpages#59

* Adds missing semi-colon

* fix font awesome code icon in syntax box

* Fix encoding issue with bib files

* add goodreads to site

* change orcid color

* add medium icon

* add medium profile

* Resolve Google Scholar link not displayed

There was as slight typo in the logic due to which the google scholar link for the respective author's profile set in Config was not being displayed.

* Adding pronouns field to author profile

* Add Google Analytics 4 Support

* fix: Remove deprecated JavaScript to avoid load error from 404 page

* Update files to be ignored

* + webrick to gem file

* academicpages#1902 RM excerpt in pages

* Start updating the README

* academicpages#456 Use real Google Scholar link as an example

* Update issue templates

* RM minimal mistakes changelog

* academicpages#1906

* Edit readme

* + Syntax highlighting example

* Update README.md

* Update README

* Correct syntax

* Streamline config organization for new users

* Add Mastodon to social media

* Closes academicpages#696 with new Kaggle link

* Adjustments to Kaggle link

* Closes academicpages#271 with addition of arXiv

* academicpages#244, academicpages#1600, academicpages#1917 update font awesome to v6, add icons

* Closes academicpages#1911 with update to Academicons

* Closes academicpages#1671 with a new favicon

* academicpages#462 update inline documentation

* academicpages#1041 allow links to wrap

* Closes academicpages#1773 with update to HTML

* Closes academicpages#45 with an update to the CV generator

* academicpages#33, academicpages#1919 Possible missing template fix, bump MathJax to 3.0

* academicpages#1153 add Zhihu

* Closes academicpages#1905 with updates to documentation

* Closes academicpages#693 with updates to documentation and location of citation

* Closes academicpages#820 with updated style

* added missing spanish translations and updated some of the previous ones on ui-text-yml

* Replace `polyfill.io`

* Closes academicpages#1972, update Markdown documentation

* Closes academicpages#1936 with setting to hide RSS feed

* academicpages#1935 clean-up the footer follow a bit

* RM old development override

* Make it clearer where the footnotes are

* academicpages#1975 ignore files created by npm

* Closes academicpages#339 with a fixed masthead

* academicpages#1975 version updates, manage jQuery from npm

* Closes academicpages#1970 with responsive element

* Fix typo

* Closes academicpages#1999

* scroll in sidebar

* scroll in sidebar

* Add scroll to sidebar and adjust media query for screen adaptability

* Closes academicpages#2029 with update to sidebar

* Closes academicpages#1917 with with icon, FA bump to 6.5.2

* Update _config.yml

# Added More Info and blanked out the template filler material.

* added to short left hand bio

* Commented out most of the example publication

* couldn't comment out the link, so changed text from The paper can be downloaded here to test link, and redirected the link to the correct test file

* Comment out 2012-03-01-talk-1.md

* Commented out 2013-03-01-tutorial-1.md

* added some text so that the rest renders blank 2012-03-01-talk-1.md

* Commented out 2014-02-01-talk-2.md

* Comment out 2014-03-01-talk-3.md

* Comment out 2012-08-14-blog-post-1.md

* Update 2012-08-14-blog-post-1.md

* Comment out Update 2199-01-01-future-post.md

* Comment out portfolio-1.md

* Comment out portfolio-2.html

* Commented out pubs and talks for now navigation.yml

* Update cv.md

* Update cv.md

* rename to about about.md

* Update _config.yml

* Rename webpage main title

* Update cv.md

  - figured out how to properly comment out the links to stuff
  - added Scotts email
  - started to begin summary for each job

* Update cv.md

* Update cv.md

* Create 2021-04-20-iop-poster-optimising.md

* Update and rename 2021-04-20-iop-poster-optimising.md to 2021-04-06-iop-poster-optimising.md

* added poster file

* academicpages#2061 Update README with note on dependencies

* Closes academicpages#2055 with adjustment to masthead-height

* Adjust variable name to prevent confusion

* Update casing of template name

* managed to empty out the CV when stuff isn't there

* hidden blogposts for now until I add some more

* added some detail to CV

* added some more intro details for the about page

---------

## Main Repo Credits

Co-authored-by: Steve <sbitner@uwf.edu>
Co-authored-by: Rob Williams <jayrobwilliams@gmail.com>
Co-authored-by: sigma67 <benedikt.putz@wiwi.uni-regensburg.de>
Co-authored-by: naveenarun <notatroll.troll@gmail.com>
Co-authored-by: Mohit_Gupta <52665879+Mohit-15@users.noreply.github.com>
Co-authored-by: Bhavish Pahwa <53102161+bp-high@users.noreply.github.com>
Co-authored-by: amyzlc <6166519+amyzlc@users.noreply.github.com>
Co-authored-by: Sonny Arora <sonnyarora@Sonnys-MacBook-Air.local>
Co-authored-by: Bhav Beri <43399374+bhavberi@users.noreply.github.com>
Co-authored-by: rjzupkoii <rjzii@yahoo.com>
Co-authored-by: johnhandleyd <translatjohn@gmail.com>
Co-authored-by: SukkaW <isukkaw@gmail.com>
Co-authored-by: Maximiliano <maximilianogalindo7@gmail.com>
WillFuller added a commit to WillFuller/WillFuller.github.io that referenced this issue May 10, 2024
# Merged changes from Upstream Fork

* Increase font size in code blocks

See academicpages#59

* Adds missing semi-colon

* fix font awesome code icon in syntax box

* Fix encoding issue with bib files

* add goodreads to site

* change orcid color

* add medium icon

* add medium profile

* Resolve Google Scholar link not displayed

There was as slight typo in the logic due to which the google scholar link for the respective author's profile set in Config was not being displayed.

* Adding pronouns field to author profile

* Add Google Analytics 4 Support

* fix: Remove deprecated JavaScript to avoid load error from 404 page

* Update files to be ignored

* + webrick to gem file

* academicpages#1902 RM excerpt in pages

* Start updating the README

* academicpages#456 Use real Google Scholar link as an example

* Update issue templates

* RM minimal mistakes changelog

* academicpages#1906

* Edit readme

* + Syntax highlighting example

* Update README.md

* Update README

* Correct syntax

* Streamline config organization for new users

* Add Mastodon to social media

* Closes academicpages#696 with new Kaggle link

* Adjustments to Kaggle link

* Closes academicpages#271 with addition of arXiv

* academicpages#244, academicpages#1600, academicpages#1917 update font awesome to v6, add icons

* Closes academicpages#1911 with update to Academicons

* Closes academicpages#1671 with a new favicon

* academicpages#462 update inline documentation

* academicpages#1041 allow links to wrap

* Closes academicpages#1773 with update to HTML

* Closes academicpages#45 with an update to the CV generator

* academicpages#33, academicpages#1919 Possible missing template fix, bump MathJax to 3.0

* academicpages#1153 add Zhihu

* Closes academicpages#1905 with updates to documentation

* Closes academicpages#693 with updates to documentation and location of citation

* Closes academicpages#820 with updated style

* added missing spanish translations and updated some of the previous ones on ui-text-yml

* Replace `polyfill.io`

* Closes academicpages#1972, update Markdown documentation

* Closes academicpages#1936 with setting to hide RSS feed

* academicpages#1935 clean-up the footer follow a bit

* RM old development override

* Make it clearer where the footnotes are

* academicpages#1975 ignore files created by npm

* Closes academicpages#339 with a fixed masthead

* academicpages#1975 version updates, manage jQuery from npm

* Closes academicpages#1970 with responsive element

* Fix typo

* Closes academicpages#1999

* scroll in sidebar

* scroll in sidebar

* Add scroll to sidebar and adjust media query for screen adaptability

* Closes academicpages#2029 with update to sidebar

* Closes academicpages#1917 with with icon, FA bump to 6.5.2

* Update _config.yml

# Added More Info and blanked out the template filler material.

* added to short left hand bio

* Commented out most of the example publication

* couldn't comment out the link, so changed text from The paper can be downloaded here to test link, and redirected the link to the correct test file

* Comment out 2012-03-01-talk-1.md

* Commented out 2013-03-01-tutorial-1.md

* added some text so that the rest renders blank 2012-03-01-talk-1.md

* Commented out 2014-02-01-talk-2.md

* Comment out 2014-03-01-talk-3.md

* Comment out 2012-08-14-blog-post-1.md

* Update 2012-08-14-blog-post-1.md

* Comment out Update 2199-01-01-future-post.md

* Comment out portfolio-1.md

* Comment out portfolio-2.html

* Commented out pubs and talks for now navigation.yml

* Update cv.md

* Update cv.md

* rename to about about.md

* Update _config.yml

* Rename webpage main title

* Update cv.md

  - figured out how to properly comment out the links to stuff
  - added Scotts email
  - started to begin summary for each job

* Update cv.md

* Update cv.md

* Create 2021-04-20-iop-poster-optimising.md

* Update and rename 2021-04-20-iop-poster-optimising.md to 2021-04-06-iop-poster-optimising.md

* added poster file

* academicpages#2061 Update README with note on dependencies

* Closes academicpages#2055 with adjustment to masthead-height

* Adjust variable name to prevent confusion

* Update casing of template name

* managed to empty out the CV when stuff isn't there

* hidden blogposts for now until I add some more

* added some detail to CV

* added some more intro details for the about page

---------

## Main Repo Credits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug.
Projects
None yet
Development

No branches or pull requests

3 participants
@rjzupkoii @griffinjmbur and others