我在运行 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) 我已经在 Github 上部署了我的项目,它给出了这个
控制台上出现错误,我该如何修复它?
git 的链接是:https://blessja.github.io/Bottelary/
github 仓库: https: //github.com/blessja/Bottelary
我有一个使用 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
存储库名称列出两次。
我想创建一个 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 …
我正在构建一个 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) 随着 Github 私人页面的出现。我实际上可以将在私人存储库中运行的 github 操作放在其中。但是,私有页面无法呈现应有权访问此私有存储库的徽章。
但是,如果我单击图像,就会看到徽章。这是因为我在 Github 中进行了身份验证,并且可以看到有关存储库的所有内容。我想知道为什么行动徽章没有显示。
我点击此链接在 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) 我正在尝试在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。
我创建了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)
有什么问题?
我从角度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 ×10
github ×4
jekyll ×3
ruby ×3
angular ×1
css ×1
emscripten ×1
html ×1
javascript ×1
macos ×1
reactjs ×1
vite ×1