jeffreytse/jekyll-spaceship

MathJax are not processed in GitHub Pages, but locally

alexzhangs opened this issue · 3 comments

The following text are processed correctly at local, but none of them are being processed in GitHub Pages.

2021-10-17-Testing-Jekyll-Spaceship.md

The text $ π $​ should be rendered as inlineMath.

If not, try it in a new line:

$ π $

Still not? Try it with displayMath:

$$
π
$$

The sample is available at: https://0xbeta.com/testing/2021/10/17/Testing-Jekyll-Spaceship.html
I looked into the HTML source, there's no MathJax related script was injected.

Gemfile:

source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
group :jekyll_plugins do
  gem "jekyll-feed", "~> 0.9"
  gem "jekyll-seo-tag", "~> 2.1"
  gem "jekyll-sitemap"
  gem "jekyll-paginate"
  gem "jekyll-spaceship"
  gem "searchyll", git: "https://github.com/alexforks/searchyll", ref: "fix-update-alias-404"
end

platforms :mingw, :x64_mingw, :mswin, :jruby do
  gem "tzinfo", "~> 1.2"
  gem "tzinfo-data"
end

gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

It should be using the latest version 0.10.1.

part of _config.yml:

markdown: kramdown
kmarkdown:
  input: GFM

remote_theme: "jeffreytse/jekyll-theme-yat"
plugins:
  - jekyll-feed
  - jekyll-seo-tag
  - jekyll-sitemap
  - jekyll-paginate
  - jekyll-spaceship
  - searchyll

I figured it the reason is that Jekyll-spaceship is not in the list of Github Pages Dependency. Therefore the plugin won't be functional on the remote as described in the Jekyll-spaceship document. I'm gonna try the jekyll-dploy-action solution that is suggested.
Closing this issue.

@alexzhangs You're right, I think the jekyll-deploy-action can settle your issue down. If you still get stuck, do not hesitate to tell me.

@jeffreytse I just get the Jekyll-deploy-action settled, the jekyll-spaceship now is launching just like a rocket! 🚀