I have a problem with GitHub Pages personal site, which I want to create from this template:
portfolYOU by YoussefRaafatNasry
I was able to figure out how to test the site locally with Jekyll and everything worked great. After I tried to upload the project to GitHub.
At first I forgot to edit the _config.yml file, the site worked on the main link, but transitions to all pages and all interactive elements worked with an error.
After editing the _config.yml file, loading the site on GitHub became impossible - I observe an error in GitHub Actions (GitHub use it by itself), the cause of which I cannot determine.
Run actions/jekyll-build-pages#v1
/usr/bin/docker run --name ghcrioactionsjekyllbuildpagesv104_23b786 --label ea425b --workdir /github/workspace --rm -e "INPUT_SOURCE" -e "INPUT_DESTINATION" -e "INPUT_FUTURE" -e "INPUT_BUILD_REVISION" -e "INPUT_VERBOSE" -e "INPUT_TOKEN" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_ID_TOKEN_REQUEST_URL" -e "ACTIONS_ID_TOKEN_REQUEST_TOKEN" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/evklo.github.io/evklo.github.io":"/github/workspace" ghcr.io/actions/jekyll-build-pages:v1.0.4
Logging at level: debug
Configuration file: /github/workspace/./_config.yml
GitHub Pages: github-pages v227
GitHub Pages: jekyll v3.9.2
Theme: jekyll-theme-primer
Theme source: /usr/local/bundle/gems/jekyll-theme-primer-0.6.0
Requiring: jekyll-github-metadata
To use retry middleware with Faraday v2.0+, install faraday-retry gem
Liquid Exception: Could not locate the included file 'elements/highlight.html' in any of ["/github/workspace/_includes"]. Ensure it exists in one of those directories and is not a symlink as those are not allowed in safe mode. in /github/workspace/_posts/2018-12-01-what-the-heck-is-a-callback.md
/usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/tags/include.rb:121:in locate_include_file': Could not locate the included file 'elements/highlight.html' in any of ["/github/workspace/_includes"]. Ensure it exists in one of those directories and is not a symlink as those are not allowed in safe mode. (IOError) from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/tags/include.rb:130:in render'
from /usr/local/bundle/gems/liquid-4.0.3/lib/liquid/block_body.rb:103:in render_node_to_output' from /usr/local/bundle/gems/liquid-4.0.3/lib/liquid/block_body.rb:91:in render'
from /usr/local/bundle/gems/liquid-4.0.3/lib/liquid/template.rb:208:in block in render' from /usr/local/bundle/gems/liquid-4.0.3/lib/liquid/template.rb:242:in with_profiling'
from /usr/local/bundle/gems/liquid-4.0.3/lib/liquid/template.rb:207:in render' from /usr/local/bundle/gems/liquid-4.0.3/lib/liquid/template.rb:220:in render!'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/liquid_renderer/file.rb:30:in block (2 levels) in render!' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/liquid_renderer/file.rb:42:in measure_bytes'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/liquid_renderer/file.rb:29:in block in render!' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/liquid_renderer/file.rb:49:in measure_time'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/liquid_renderer/file.rb:28:in render!' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/renderer.rb:126:in render_liquid'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/renderer.rb:79:in render_document' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/renderer.rb:62:in run'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:479:in render_regenerated' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:464:in block (2 levels) in render_docs'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:463:in each' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:463:in block in render_docs'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:462:in each_value' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:462:in render_docs'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:191:in render' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:71:in process'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/command.rb:28:in process_site' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:65:in build'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:36:in process' from /usr/local/bundle/gems/github-pages-227/bin/github-pages:70:in block (3 levels) in <top (required)>'
from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in block in execute' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in each'
from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in execute' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in go'
from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program' from /usr/local/bundle/gems/github-pages-227/bin/github-pages:6:in <top (required)>'
from /usr/local/bundle/bin/github-pages:23:in load' from /usr/local/bundle/bin/github-pages:23:in '
Requiring: jekyll-seo-tag
Requiring: jemoji
Requiring: jekyll-coffeescript
Requiring: jekyll-commonmark-ghpages
Requiring: jekyll-gist
Requiring: jekyll-github-metadata
Requiring: jekyll-paginate
Requiring: jekyll-relative-links
Requiring: jekyll-optional-front-matter
Requiring: jekyll-readme-index
Requiring: jekyll-default-layout
Requiring: jekyll-titles-from-headings
Requiring: jekyll-remote-theme
GitHub Metadata: Initializing...
Source: /github/workspace/.
Destination: /github/workspace/./_site
Incremental build: disabled. Enable with --incremental
Generating...
Theme: evklo/evklo.github.io
Theme source: /tmp/jekyll-remote-theme-20230123-7-1e2b06p
Remote Theme: Using theme evklo/evklo.github.io
Remote Theme: Downloading https://codeload.github.com/evklo/evklo.github.io/zip/HEAD to /tmp/jekyll-remote-theme-20230123-7-zbex2n.zip
Remote Theme: Unzipping /tmp/jekyll-remote-theme-20230123-7-zbex2n.zip to /tmp/jekyll-remote-theme-20230123-7-1e2b06p
Reading: _posts/2016-07-23-a-better-hello-world.md
Reading: _posts/2016-02-09-what-is-version-control.md
Reading: _posts/2019-02-15-learn-react-js.md
Reading: _posts/2018-12-01-what-the-heck-is-a-callback.md
Reading: _posts/2015-09-25-how-to-undo-your-git-failure.md
Reading: _posts/2019-02-20-digital-minimalism.md
Reading: _posts/2018-12-10-clean-coding.md
Reading: _posts/2018-05-09-four-lessons-after-eleven-years-in-silicon-valley.md
Reading: _posts/2016-04-17-do-not-go-gentle-into-that-good-night.md
Reading: _posts/2017-01-01-github-flow.md
Reading: _projects/(2) Awesome Project.md
Reading: _projects/(6) Dummy Project.md
Reading: _projects/(1) PlaceHolder Project.md
Reading: _projects/(4) VVG on GitHub.md
Reading: _projects/(5) The Fabulous.md
Reading: _projects/(3) Empty Project.md
Generating: JekyllOptionalFrontMatter::Generator finished in 4.24e-05 seconds.
Generating: JekyllReadmeIndex::Generator finished in 5.13e-05 seconds.
Generating: Jekyll::Paginate::Pagination finished in 8.5e-06 seconds.
Generating: JekyllRelativeLinks::Generator finished in 4.8201e-05 seconds.
Generating: JekyllDefaultLayout::Generator finished in 0.002420515 seconds.
Generating: JekyllTitlesFromHeadings::Generator finished in 5.65e-05 seconds.
Rendering: _posts/2015-09-25-how-to-undo-your-git-failure.md
Pre-Render Hooks: _posts/2015-09-25-how-to-undo-your-git-failure.md
Rendering Markup: _posts/2015-09-25-how-to-undo-your-git-failure.md
Requiring: kramdown-parser-gfm
Rendering Layout: _posts/2015-09-25-how-to-undo-your-git-failure.md
Rendering: _posts/2016-02-09-what-is-version-control.md
Pre-Render Hooks: _posts/2016-02-09-what-is-version-control.md
Rendering Markup: _posts/2016-02-09-what-is-version-control.md
Rendering Layout: _posts/2016-02-09-what-is-version-control.md
Rendering: _posts/2016-04-17-do-not-go-gentle-into-that-good-night.md
Pre-Render Hooks: _posts/2016-04-17-do-not-go-gentle-into-that-good-night.md
Rendering Markup: _posts/2016-04-17-do-not-go-gentle-into-that-good-night.md
Rendering Layout: _posts/2016-04-17-do-not-go-gentle-into-that-good-night.md
Rendering: _posts/2016-07-23-a-better-hello-world.md
Pre-Render Hooks: _posts/2016-07-23-a-better-hello-world.md
Rendering Markup: _posts/2016-07-23-a-better-hello-world.md
Rendering Layout: _posts/2016-07-23-a-better-hello-world.md
Rendering: _posts/2017-01-01-github-flow.md
Pre-Render Hooks: _posts/2017-01-01-github-flow.md
Rendering Markup: _posts/2017-01-01-github-flow.md
Rendering Layout: _posts/2017-01-01-github-flow.md
Rendering: _posts/2018-05-09-four-lessons-after-eleven-years-in-silicon-valley.md
Pre-Render Hooks: _posts/2018-05-09-four-lessons-after-eleven-years-in-silicon-valley.md
Rendering Markup: _posts/2018-05-09-four-lessons-after-eleven-years-in-silicon-valley.md
Rendering Layout: _posts/2018-05-09-four-lessons-after-eleven-years-in-silicon-valley.md
Rendering: _posts/2018-12-01-what-the-heck-is-a-callback.md
Pre-Render Hooks: _posts/2018-12-01-what-the-heck-is-a-callback.md
Rendering Liquid: _posts/2018-12-01-what-the-heck-is-a-callback.md
github-pages 227 | Error: Could not locate the included file 'elements/highlight.html' in any of ["/github/workspace/_includes"]. Ensure it exists in one of those directories and is not a symlink as those are not allowed in safe mode.
Remote Theme: Cleaning up /tmp/jekyll-remote-theme-20230123-7-1e2b06p
I ask you to help understand the deployment of this project and fix this problem.
If it will be useful, a link to my test GitHub:
My test GitHub
It seems the issue is with your theme, the theme you want to use is not a "supported theme" so it must be added via remote_theme.
In your config you have your sites repo listed as the remote theme, but there is no theme info in your repo. Your post links the theme you want to use -- to use it the remote theme in the config should be as follows:
remote_theme: YoussefRaafatNasry/portfolYOU
See Github Pages docs on themes
Related
Here is the workflow execution log:
Run xcodebuild clean build -project ExGithubAction/ExGithubAction.xcproject -scheme ExGithubAction
Command line invocation:
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/xcodebuild clean build -project ExGithubAction.xcproject -scheme ExGithubAction
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
xcodebuild: error: 'ExGithubAction.xcproject' does not exist.
Error: Process completed with exit code 66.
How can I get past the error 'ExGithubAction.xcproject' does not exist?
First, as a step (after the uses: actions/checkout#v3) to do a ls and confirm that ExGithubAction.xcproject is indeed checked out.
Second, as in this thread, specify the full path:
xcodebuild \
-workspace MyProject.xcworkspace \
-scheme MyProject \
-sdk iphonesimulator8.1 \
-configuration Release \
clean build \
OBJROOT=$(PWD)/build \
SYMROOT=$(PWD)/build
(adapt it and remove the options you do not need)
If you have a obfuscate_project script, you have would need to provide proper values to variables corresponding to your project in the first section of the script and commit those changes.
# General build options
# WORKSPACE=YourWorkspace.xcworkspace
PROJECT=YourProject.xcodeproj
SCHEME=YourScheme
CONFIGURATION=Release
SDK=7.1
So I've got the following project OpenFHE-development and when I run the build process, there are lots of warnings. However, most of these warnings are fine to ignore (we vet them before pushing to the main branch)
Specifically, is there a way to take
pth/python -m sphinx -T -E -b readthedocssinglehtmllocalmedia -d _build/doctrees -D language=en . _build/localmedia
and convert it to
pth/python -m sphinx -T -E -b readthedocssinglehtmllocalmedia -d _build/doctrees -D language=en . _build/localmedia 2> errors.txt
(pipe the stderr to a file instead of having it display on stdout)?
Does not seem to be possible at the moment. See git discussion
I'm trying to run a basic GitHub page locally on macOS.
Here is my Gemfile:
$cat Gemfile
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
Then I install the dependencies:
$bundle install --path vendor/bundle
As a result, it installs Jekyll 3.8.5.
But when I build the site with bundle exec jekyll build --verbose I get the next error:
Logging at level: debug
Configuration file: /Users/user/personal/my_user_name.github.io/_config.yml
Theme: jekyll-theme-midnight
Theme source: /Users/user/personal/my_user_name.github.io/vendor/bundle/ruby/2.6.0/gems/jekyll-theme-midnight-0.1.1
Invalid theme folder: _includes
GitHub Pages: github-pages v203
GitHub Pages: jekyll v3.8.5
Theme: jekyll-theme-midnight
Theme source: /Users/user/personal/my_user_name.github.io/vendor/bundle/ruby/2.6.0/gems/jekyll-theme-midnight-0.1.1
Invalid theme folder: _includes
Requiring: jekyll-seo-tag
Requiring: jekyll-coffeescript
Requiring: jekyll-commonmark-ghpages
Requiring: jekyll-gist
jekyll 3.8.5 | Error: uninitialized constant Faraday::Error::ClientError
Did you mean? Faraday::ClientError
My machine details:
$sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.2
BuildVersion: 19C57
How can I fix the issue?
P.S.
If I create a jekyll directory from scratch with
$jekyll new myblog
$cd myblog
$jekyll serve
It runs correctly. The only difference I see is that it uses Jekyll 4.0.0
UPDATE:
I have changed the Gemfile to this:
$cat Gemfile
source 'https://rubygems.org'
#gem 'github-pages', group: :jekyll_plugins
gem 'github-pages'
After I run bundle exec jekyll serve --verbose I see:
Logging at level: debug
Configuration file: /Users/user/personal/my_user_name.github.io/_config.yml
Logging at level: debug
Theme: jekyll-theme-midnight
Theme source: /Users/user/personal/my_user_name.github.io/vendor/bundle/ruby/2.6.0/gems/jekyll-theme-midnight-0.1.1
Invalid theme folder: _includes
Requiring: jekyll-seo-tag
Source: /Users/user/personal/my_user_name.github.io
Destination: /Users/user/personal/my_user_name.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
EntryFilter: excluded /Gemfile
EntryFilter: excluded /Gemfile.lock
EntryFilter: excluded /vendor/bundle/ruby
Rendering: assets/css/style.scss
Pre-Render Hooks: assets/css/style.scss
Rendering Markup: assets/css/style.scss
Writing: /Users/user/personal/my_user_name.github.io/_site/assets/css/style.css
done in 0.099 seconds.
Requiring: jekyll-watch
Watcher: Ignoring (?-mix:^_config\.yml)
Watcher: Ignoring (?-mix:^_site\/)
Watcher: Ignoring (?-mix:^Gemfile)
Watcher: Ignoring (?-mix:^Gemfile\.lock)
Watcher: Ignoring (?-mix:^vendor\/bundle\/)
Auto-regeneration: enabled for '/Users/user/personal/my_user_name.github.io'
[2020-01-01 17:52:58] INFO WEBrick 1.4.2
[2020-01-01 17:52:58] INFO ruby 2.6.5 (2019-10-01) [x86_64-darwin19]
[2020-01-01 17:52:58] DEBUG WEBrick::HTTPServlet::FileHandler is mounted on /.
[2020-01-01 17:52:58] DEBUG unmount .
[2020-01-01 17:52:58] DEBUG Jekyll::Commands::Serve::Servlet is mounted on .
Server address: http://127.0.0.1:4000
[2020-01-01 17:52:58] INFO WEBrick::HTTPServer#start: pid=65841 port=4000
Server running... press ctrl-c to stop.
[2020-01-01 17:53:27] DEBUG accept: 127.0.0.1:53546
[2020-01-01 17:53:27] DEBUG accept: 127.0.0.1:53547
[2020-01-01 17:53:27] DEBUG Jekyll::Commands::Serve::Servlet is invoked.
[2020-01-01 17:53:30] DEBUG Jekyll::Commands::Serve::Servlet is invoked.
[2020-01-01 17:53:31] DEBUG Jekyll::Commands::Serve::Servlet is invoked.
[2020-01-01 17:53:34] DEBUG Jekyll::Commands::Serve::Servlet is invoked.
[2020-01-01 17:53:35] DEBUG Jekyll::Commands::Serve::Servlet is invoked.
[2020-01-01 17:53:42] DEBUG close: 127.0.0.1:53547
^C[2020-01-01 17:53:55] DEBUG close TCPSocket(127.0.0.1, 4000)
[2020-01-01 17:53:55] INFO going to shutdown ...
[2020-01-01 17:53:56] DEBUG close: 127.0.0.1:53546
[2020-01-01 17:53:56] INFO WEBrick::HTTPServer#start done.
But when I open it in browser I see just a list of directories but not the blog
It looks due to the latest update of faraday - a gem depended by github-pages.
Try this workaround temporarily.
Add the following line to your Gemfile.
gem 'faraday', '~> 0'
Use command bundle update to update the gem(s) with Gemfile.
You may see outputs below:
Fetching faraday 0.17.3 (was 1.0.0)
Installing faraday 0.17.3 (was 1.0.0)
That means gem faraday in ./vendor/bundle has been updated to the latest compatible version with the github-pages.
You can check the version history of faraday at this page on rubygems.org.
Try bundle exec jekyll again.
If it doesn't work yet, try bundle pristine.
There are several options for setting up Gitlab pages. Most of them have a lot of awesome tools. But it is not really necessary for us. That's why we wondered if it was possible to convert a .MD (readme.md) file to a single Gitlab page. So we can write in .MD markup.
I have written a script which converts the md file to html and then uploads it on a host.
image: node:4.2.2
variables:
HOST: "myhost"
USERNAME: "myusername"
PASSWORD: "mypassword"
pages:
stage: deploy
script:
- npm install -g markdown-styles -y
- generate-md --input ./ --output ./output --layout mixu-bootstrap-2col
- cd output
- pwd
- ls
- apt-get update -qq && apt-get install -y -qq lftp
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./ ./www -e --delete-first --parallel=10 --exclude-glob .git* --exclude .sh --exclude .gitlab-ci.yml --exclude /node_modules/*"
only:
- master
when I knit HTML in R studio, I get this:
"C:/Users/Susan/ANACON~1/Scripts/pandoc" +RTS -K512m -RTS lesson3_student.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output lesson3_student.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\Susan\AppData\Local\Temp\RtmpaUaaRx\rmarkdown-str3cf45da21737.html" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
output file: lesson3_student.knit.md
unrecognized option `--smart'
Try pandoc.exe --help for more information.
Error: pandoc document conversion failed with error 2
In addition: Warning message:
running command '"C:/Users/Susan/ANACON~1/Scripts/pandoc" +RTS -K512m -RTS lesson3_student.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output lesson3_student.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\Susan\AppData\Local\Temp\RtmpaUaaRx\rmarkdown-str3cf45da21737.html" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"' had status 2
Execution halted
Can someone give me an idea what went wrong and how to fix it?
Thank you
Today I had the same problem.
I fixed it by setting the smart option to false, as described here.
output:
html_document:
smart: false
It seems that --smart is no longer supported in the newest pandoc version (1.19.2.1), even though it should be should be; see discusion on the RStudio forum