jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
626 stars 67 forks source link

MathJax are not processed in GitHub Pages, but locally #63

Closed alexzhangs closed 2 years ago

alexzhangs commented 2 years ago

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
alexzhangs commented 2 years ago

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.

jeffreytse commented 2 years ago

@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.

alexzhangs commented 2 years ago

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