标签: github-pages

尝试使用 jekyll 时如何解决此捆绑包更新错误?

我在运行 jekyll 来创建 GitHub 页面时遇到问题。按照文档中列出的说明进行操作后,在编辑 Gemfile 并尝试运行后,我不断收到错误消息bundle update。错误是:

Bundler could not find compatible versions for gem "terminal-table":
  In snapshot (Gemfile.lock):
    terminal-table (>= 2.0.0)

  In Gemfile:
    github-pages (~> 215) was resolved to 215, which depends on
      terminal-table (~> 1.4)'


  I reinstalled terminal-table using 'gem install terminal-table', and listing my gems using 'gem list' I can see that I have version 3.0.1 installed, so I don't understand the error.

Thanks.
Run Code Online (Sandbox Code Playgroud)

Gemfile

Bundler could not find compatible versions for …
Run Code Online (Sandbox Code Playgroud)

ruby jekyll github-pages

3
推荐指数
1
解决办法
6152
查看次数

如何修复无法加载资源状态 404 github 页面的问题

我已经在 Github 上部署了我的项目,它给出了这个

图片错误

控制台上出现错误,我该如何修复它?

git 的链接是:https://blessja.github.io/Bottelary/

github 仓库: https: //github.com/blessja/Bottelary

html css github-pages

3
推荐指数
1
解决办法
2万
查看次数

在 GitHub 页面上推送 vite Reactjs 构建会导致构建文件出现 404 错误

我有一个使用 vitejs 的 ReactJS 网站,当我使用它进行编译时,npm run build它会在 dist 文件夹中生成已编译的网站,当我将内容发布到此文件夹时,我遇到

Permissions-Policy 标头错误:无法识别的功能:“interest-cohort”。

和薮猫

获取https://brijrajparmar27.github.io/assets/index.d12487b2.js网::ERR_ABORTED 404

我发现奇怪的是,如果你检查上面错误中的 url,它试图在里面找到 .js 文件,brijrajparmar27.github.io/assets/它不应该在里面吗https://brijrajparmar27.github.io/[Repo-Name]/assets

尽管不知何故,它仍然可以在我的本地主机上运行。

看完这个后,我[Repo-name]/在 dist 文件夹中已编译的 index.html 文件的链接标记的开头手动添加了,在托管时我得到了

获取https://brijrajparmar27.github.io/Atmosphere/Atmosphere/assets/vendor.95b2f1d7.js网::ERR_ABORTED 404

存储库名称列出两次。

javascript github-pages reactjs vite

3
推荐指数
1
解决办法
3551
查看次数

actions/upload-pages-artifact 在 actions/upload-artifact 处失败,并显示“未在提供的路径中找到文件”

我想创建一个 GitHub 工作流,使用 emscripten 和 cmake 构建 C++ 应用程序,并将其部署到 GitHub Pages。我的工作流程工作如下所示。

environment:
  name: github-pages
  url: ${{steps.deployment.outputs.page_url}}

runs-on: ubuntu-latest

container:
  image: emscripten/emsdk
  
steps:
- uses: actions/checkout@v3
- run: cmake -B $GITHUB_WORKSPACE/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DEMSCRIPTEN=ON
- run: cmake --build $GITHUB_WORKSPACE/build --config ${{env.BUILD_TYPE}}

# actions/upload-pages-artifact uses this directory, but it doesn't exist in the image
- run: mkdir -p ${{runner.temp}}

- uses: actions/configure-pages@v1
- uses: actions/upload-pages-artifact@v1
  with:
    path: $GITHUB_WORKSPACE/build
- id: deployment
  uses: actions/deploy-pages@v1  
Run Code Online (Sandbox Code Playgroud)

upload-pages-artifact运行 tar 并在日志中列出要部署的所有文件。运行时upload-artifact日志显示Warning: No files were …

emscripten github-pages github-actions

3
推荐指数
1
解决办法
4995
查看次数

安装 ruby​​ 但出现错误“链接器命令失败,退出代码 1”

我正在构建一个 GitHub Pages 站点,并尝试按照此处所述为我的 Mac 安装 Ruby 。当我运行时ruby-install ruby ,我得到以下信息:

linking shared-object -test-/arith_seq/extract.bundle
Undefined symbols for architecture arm64:
  "_rb_arithmetic_sequence_extract", referenced from:
      _arith_seq_s_extract in extract.o
  "_rb_ary_new_capa", referenced from:
      _arith_seq_s_extract in extract.o
  "_rb_ary_store", referenced from:
      _arith_seq_s_extract in extract.o
  "_rb_define_singleton_method", referenced from:
      _Init_extract in extract.o
  "_rb_path2class", referenced from:
      _Init_extract in extract.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../../../.ext/arm64-darwin22/-test-/arith_seq/extract.bundle] Error 1
make[1]: *** [ext/-test-/arith_seq/extract/all] Error …
Run Code Online (Sandbox Code Playgroud)

ruby macos github jekyll github-pages

3
推荐指数
1
解决办法
3669
查看次数

github 私人页面中私人存储库中的 Github 操作徽章

随着 Github 私人页面的出现。我实际上可以将在私人存储库中运行的 github 操作放在其中。但是,私有页面无法呈现应有权访问此私有存储库的徽章。

在此输入图像描述

但是,如果我单击图像,就会看到徽章。这是因为我在 Github 中进行了身份验证,并且可以看到有关存储库的所有内容。我想知道为什么行动徽章没有显示。

github github-pages github-actions

3
推荐指数
1
解决办法
849
查看次数

捆绑执行 jekyll 服务无法在本地工作

我点击此链接在 Github 上设置我的个人网站。网站已经部署成功,现在可以访问了。

我的 ruby​​ 版本是3.3.0,我的 gem 版本是3.5.4。我还添加了webrick链接中提到的内容。

bundle install但是,运行和后我无法在本地构建它bundle exec jekyll serve。错误是

jekyll 3.9.3 | Error:  undefined method `[]' for nil
/usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/logger.rb:384:in `level': undefined method `[]' for nil (NoMethodError)

    @level_override[Fiber.current] || @level
                   ^^^^^^^^^^^^^^^
    from /usr/local/lib/ruby/gems/3.3.0/gems/jekyll-3.9.3/lib/jekyll/log_adapter.rb:43:in `adjust_verbosity'
    from /usr/local/lib/ruby/gems/3.3.0/gems/jekyll-3.9.3/lib/jekyll/configuration.rb:157:in `config_files'
    from /usr/local/lib/ruby/gems/3.3.0/gems/jekyll-3.9.3/lib/jekyll.rb:113:in `configuration'
    from /usr/local/lib/ruby/gems/3.3.0/gems/jekyll-3.9.3/lib/jekyll/command.rb:43:in `configuration_from_options'
    from /usr/local/lib/ruby/gems/3.3.0/gems/jekyll-3.9.3/lib/jekyll/commands/serve.rb:89:in `start'
    from /usr/local/lib/ruby/gems/3.3.0/gems/jekyll-3.9.3/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
    from /usr/local/lib/ruby/gems/3.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
    from /usr/local/lib/ruby/gems/3.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
    from /usr/local/lib/ruby/gems/3.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute' …
Run Code Online (Sandbox Code Playgroud)

ruby jekyll github-pages

3
推荐指数
2
解决办法
383
查看次数

如何在GitHub Pages上设置自定义404页面?

我正在尝试在Github页面上设置自定义404页面。

我在这里创建了一个页面:http : //garemoko.github.com/TinCanCoUK/404.html,直接访问该页面即可。

但是,如果我转到http://garemoko.github.com/TinCanCoUK/foo.html,则会得到默认的Github 404页面。

有任何想法吗?我在master和gh-pages目录中都有404.html。

背景: 这对于该站点特别重要,因为我正从一个在无法复制的URL中使用:的Mediawiki站点迁移,因此必须更改所有URL。

github http-status-code-404 github-pages

2
推荐指数
1
解决办法
3045
查看次数

为什么[用户名] .github.io上的GitHub页面不显示?

我创建了repo [用户名] .github.io,在gh-pages分支中推送第一次提交,已经等待了30分钟(GitHub说,它不应该超过10个)并且有404页面试图加载我的页面.检查出不同的浏览器,结果是一样的.

这是我如何做到的方式:

$ git clone http://github.com/RedCorbie/RedCorbie.github.io
$ git add index.html 
$ git commit -m "Initial commit"
$ git branch gh-pages
$ git push origin gh-pages
Run Code Online (Sandbox Code Playgroud)

有什么问题?

github github-pages

2
推荐指数
1
解决办法
1948
查看次数

Angular2:无法加载资源文件夹图像

我从角度CLI创建了一个项目,在assets文件夹下放置了一个图像.它在localhost环境中工作正常,但是当部署到github页面时它会抛出404.

在此输入图像描述

在此输入图像描述

build --prod --base-href "my-project"

在dist目录的index.html中更改了基本href.

 <base href="my-project">
Run Code Online (Sandbox Code Playgroud)

部署到github页面后,它无法找到图像.

GET https://srk.github.io/assets/srk-favicon.ico 404 (Not Found)
Run Code Online (Sandbox Code Playgroud)

我想URL应该是 https://srk.github.io/my-project/assets/srk-favicon.ico

github-pages angular

2
推荐指数
1
解决办法
5972
查看次数