Coder Social home page Coder Social logo

just-the-docs / just-the-docs-template Goto Github PK

View Code? Open in Web Editor NEW
110.0 6.0 95.0 37 KB

one-click template to use just-the-docs on GitHub Pages

Home Page: https://just-the-docs.github.io/just-the-docs-template/

License: MIT License

Ruby 100.00%
github-pages jekyll just-the-docs template

just-the-docs-template's Introduction

just-the-docs-template

This is a bare-minimum template to create a Jekyll site that:

  • uses the Just the Docs theme;
  • can be built and published on GitHub Pages;
  • can be built and previewed locally, and published on other platforms.

More specifically, the created site:

  • uses a gem-based approach, i.e. uses a Gemfile and loads the just-the-docs gem;
  • uses the GitHub Pages / Actions workflow to build and publish the site on GitHub Pages.

To get started with creating a site, simply:

  1. click "use this template" to create a GitHub repository
  2. go to Settings > Pages > Build and deployment > Source, and select GitHub Actions

If you want to maintain your docs in the docs directory of an existing project repo, see Hosting your docs from an existing project repo.

After completing the creation of your new site on GitHub, update it as needed:

Replace the content of the template pages

Update the following files to your own content:

  • index.md (your new home page)
  • README.md (information for those who access your site repo on GitHub)

Changing the version of the theme and/or Jekyll

Simply edit the relevant line(s) in the Gemfile.

Adding a plugin

The Just the Docs theme automatically includes the jekyll-seo-tag plugin.

To add an extra plugin, you need to add it in the Gemfile and in _config.yml. For example, to add jekyll-default-layout:

  • Add the following to your site's Gemfile:

    gem "jekyll-default-layout"
  • And add the following to your site's _config.yml:

    plugins:
      - jekyll-default-layout

Note: If you are using a Jekyll version less than 3.5.0, use the gems key instead of plugins.

Publishing your site on GitHub Pages

  1. If your created site is YOUR-USERNAME/YOUR-SITE-NAME, update _config.yml to:

    title: YOUR TITLE
    description: YOUR DESCRIPTION
    theme: just-the-docs
    
    url: https://YOUR-USERNAME.github.io/YOUR-SITE-NAME
    
    aux_links: # remove if you don't want this link to appear on your pages
      Template Repository: https://github.com/YOUR-USERNAME/YOUR-SITE-NAME
  2. Push your updated _config.yml to your site on GitHub.

  3. In your newly created repo on GitHub:

    • go to the Settings tab -> Pages -> Build and deployment, then select Source: GitHub Actions.
    • if there were any failed Actions, go to the Actions tab and click on Re-run jobs.

Building and previewing your site locally

Assuming Jekyll and Bundler are installed on your computer:

  1. Change your working directory to the root directory of your site.

  2. Run bundle install.

  3. Run bundle exec jekyll serve to build your site and preview it at localhost:4000.

    The built site is stored in the directory _site.

Publishing your built site on a different platform

Just upload all the files in the directory _site.

Customization

You're free to customize sites that you create with this template, however you like!

Browse our documentation to learn more about how to use this theme.

Hosting your docs from an existing project repo

You might want to maintain your docs in an existing project repo. Instead of creating a new repo using the just-the-docs template, you can copy the template files into your existing repo and configure the template's Github Actions workflow to build from a docs directory. You can clone the template to your local machine or download the .zip file to access the files.

Copy the template files

  1. Create a .github/workflows directory at your project root if your repo doesn't already have one. Copy the pages.yml file into this directory. GitHub Actions searches this directory for workflow files.

  2. Create a docs directory at your project root and copy all remaining template files into this directory.

Modify the GitHub Actions workflow

The GitHub Actions workflow that builds and deploys your site to Github Pages is defined by the pages.yml file. You'll need to edit this file to that so that your build and deploy steps look to your docs directory, rather than the project root.

  1. Set the default working-directory param for the build job.

    build:
      runs-on: ubuntu-latest
      defaults:
        run:
          working-directory: docs
  2. Set the working-directory param for the Setup Ruby step.

    - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.1'
          bundler-cache: true
          cache-version: 0
          working-directory: '${{ github.workspace }}/docs'
  3. Set the path param for the Upload artifact step:

    - name: Upload artifact
        uses: actions/upload-pages-artifact@v1
        with:
          path: "docs/_site/"
  4. Modify the trigger so that only changes within the docs directory start the workflow. Otherwise, every change to your project (even those that don't affect the docs) would trigger a new site build and deploy.

    on:
      push:
        branches:
          - "main"
        paths:
          - "docs/**"

Licensing and Attribution

This repository is licensed under the MIT License. You are generally free to reuse or extend upon this code as you see fit; just include the original copy of the license (which is preserved when you "make a template"). While it's not necessary, we'd love to hear from you if you do use this template, and how we can improve it for future use!

The deployment GitHub Actions workflow is heavily based on GitHub's mixed-party starter workflows. A copy of their MIT License is available in actions/starter-workflows.


just-the-docs-template's People

Contributors

dependabot[bot] avatar janbrasna avatar lamasfoker avatar mattxwang avatar max06 avatar olgarithms avatar pdmosses avatar rtreddick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

just-the-docs-template's Issues

Deduplicate information across index.md and README.md

I noticed that some information is duplicated across the index.md and README.md files in the Just the Docs Template, and some information is not listed on both pages. I wanted to open this issue so that we might be able to discuss an approach for combining these two files.

Potentially desirable end state
Combine the information currently spread across index.md and README.md into a single file, README.md, that is permalinked to /:path/. The context for this suggestion was something that I did last year to deduplicate information across the index.md and README.md files in my Just the Class template. I figured this might also be a useful change for the official template repository too.

The advantages of deduplicating information in these two files:

  • Make things less confusing for users who mistakenly change README.md when they intend to change index.md.
  • Display of all key content upfront in GitHub, which renders the README.md using GitHub's markdown engine.
  • Aid maintainers and users of the template repository by reducing the need to update or other synchronize changes across both files.
  • Fix an issue with the template website currently generating a publicly-visible plain page for README.md. (This can be excluded in the Jekyll site configuration.)

The drawbacks of deduplicating information in these two files:

  • YAML front matter is slightly annoying to read for people who aren't interested in it, but I figured this was an okay annoyance since it's the template repository and not the gem source repository.
  • Make things more confusing for users who want their README.md (displayed in GitHub) to appear separately and differently from their website index.md content.

What are your thoughts? My assumption is that having a unified README.md and index.md makes things clearer for less-experienced users by ensuring that a change to a file that looks like the home page's content would in fact result in a change in the output website.

This goes against GitHub Pages documentation

According to GitHub Pages documentation, the correct way to use GitHub Pages is to include in the gemfile something like this:

# If you have any plugins, put them here!
group :jekyll_plugins do
  gem "github-pages", "~> 227"
end

github-pages then pulls everything you need. You can then add just-the-docs in the remote_theme and that's it, and let GitHub Pages run its predefined actions for you.

Am I wrong?

The just-the-docs theme could not be found

I am encountering an error with the "just-the-docs" theme while using the configuration file located at "/github/workspace/./_config.yml". Despite not having made any changes to the "just-the-theme" present in the config file, I am still receiving the following error message:

"Error: The just-the-docs theme could not be found."

I am hoping that someone can assist me in resolving this issue so that I may proceed with my work.

Thank you in advance for your help.

Jekyll cant seem to install just-the-docs

Hi there,

Experiencing build fails because of this error.
As a complete beginner at both github actions and jekyll, is there a fix to get passing builds?

Thanks again.

image

[Git Action] Build with Jekyll Failed

  1. Click "use this template"
  2. create new repo
  3. Action said below

image

Run actions/jekyll-build-pages@v1
/usr/bin/docker run --name ghcrioactionsjekyllbuildpagesv104_0cff86 --label 817f70 --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_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -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_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 "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/cha2hyun.github.io/cha2hyun.github.io":"/github/workspace" ghcr.io/actions/jekyll-build-pages:v1.0.4
/usr/local/bundle/gems/jekyll-3.[9](https://github.com/cha2hyun/cha2hyun.github.io/actions/runs/3081451418/jobs/4980010328#step:4:10).2/lib/jekyll/theme.rb:84:in `rescue in gemspec': The just-the-docs theme could not be found. (Jekyll::Errors::MissingDependencyException)
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:81:in `gemspec'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:19:in `root'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:12:in `initialize'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in `new'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in `configure_theme'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:55:in `config='
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:23:in `initialize'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30:in `new'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30: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 `<main>'
/usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:3[11](https://github.com/cha2hyun/cha2hyun.github.io/actions/runs/3081451418/jobs/4980010328#step:4:12):in `to_specs': Could not find 'just-the-docs' (>= 0) among 148 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/github/home/.gem/ruby/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/local/bundle', execute `gem env` for more information
	from /usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec'
	from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:986:in `find_by_name'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:82:in `gemspec'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:19:in `root'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:[12](https://github.com/cha2hyun/cha2hyun.github.io/actions/runs/3081451418/jobs/4980010328#step:4:13):in `initialize'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in `new'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in `configure_theme'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:55:in `config='
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:23:in `initialize'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30:in `new'
	from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30: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](https://github.com/cha2hyun/cha2hyun.github.io/actions/runs/3081451418/jobs/4980010328#step:4:20):in `program'
	from /usr/local/bundle/gems/github-pages-[22](https://github.com/cha2hyun/cha2hyun.github.io/actions/runs/3081451418/jobs/4980010328#step:4:23)7/bin/github-pages:6:in `<top (required)>'
	from /usr/local/bundle/bin/github-pages:[23](https://github.com/cha2hyun/cha2hyun.github.io/actions/runs/3081451418/jobs/4980010328#step:4:24):in `load'
	from /usr/local/bundle/bin/github-pages:23:in `<main>'
  Logging at level: debug
Configuration file: /github/workspace/./_config.yml
             Theme: just-the-docs
github-pages 2[27](https://github.com/cha2hyun/cha2hyun.github.io/actions/runs/3081451418/jobs/4980010328#step:4:28) | Error:  The just-the-docs theme could not be found.

Any help ?

Getting Ruby build exit code 16 when trying to add

Repo: https://github.com/cake-tech/cakewallet-guides

Failing commit: cake-tech/cakewallet-guides@412f63b

Failing build: https://github.com/cake-tech/cakewallet-guides/actions/runs/3877739659/jobs/6613109848#step:3:47

To reproduce:

Error: Error: The process '/opt/hostedtoolcache/Ruby/3.1.3/x64/bin/bundle' failed with exit code 16
    at ExecState._setResult (/home/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:5381:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:5364:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:5258:27)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:390:28)
    at Pipe.<anonymous> (node:net:687:12)

just the docs update request

Hi,

A few weeks ago I received an e-mail from dependabot asking me a pull request for the just-the-docs template. I am a beginner user of the GitHub and other sites like this so I wasn't sure what I should do.
I am currently working in a site using just-the-docs template. I created a new one but there are some deploy and build problems and then I realized it might be because of the new version of the template. My question is: do I need a new pull request for this repository or since I'm using a template, it should be working since I created it after the updates?

Kind regards,
IzatheWriter

"Build with Jekyll" steps does not seem to be building

Experiencing build fail.

  • Notice that the Setup Ruby step is not executed.
  • It seems that it is unable to bundle isntall just-the-docs version 0.5.0
    image

Full pages.yml code here

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages

on:
  push:
    branches: ["main"]
    paths:
      - "docs/**"

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

# Allow one concurrent deployment
concurrency:
  group: "pages"
  cancel-in-progress: true

jobs:
  # Build job
  build:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: docs
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.1' # Not needed with a .ruby-version file
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
          cache-version: 0 # Increment this number if you need to re-download cached gems
          working-directory: '${{ github.workspace }}/docs'
      - name: Setup Pages
        id: pages
        uses: actions/configure-pages@v2
      - name: Build with Jekyll
        # Outputs to the './_site' directory by default
        run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
        env:
          JEKYLL_ENV: production
      - name: Upload artifact
        # Automatically uploads an artifact from the './_site' directory by default
        uses: actions/upload-pages-artifact@v1
        with:
          path: "docs/_site/"

  # Deployment job
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    needs: build
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v1

bundler: command not found: jekyll

I'm trying to add the just-the-docs theme to an existing repo, and I've done the following -

  1. Copied Gemfile from this template repo to mine in the root directory
  2. Copied Gemfile.lock from this template repo to mine in the root directory
  3. Created the .github/workflows directory and copied the pages.yml file into it
  4. Modified the pages.yml file as instructed in the README
  5. Configured GitHub pages by going to my repo's Settings > Pages tab and setting the source as GitHub Actions instead of "Deploy from a branch"
  6. Created a _config.yml file in the root directory with the following content (according to the GitHub docs)
remote-theme: just-the-docs

But whenever I push changes to the docs or re-run the action, It fails with the message bundler: command not found: jekyll.

image

This is my first time working with Jekyll, and I can't figure out if I'm doing something wrong. Any help would be appreciated!

Can't get my just-the-docs site running on Azure Static Websites

I'm trying to transition from hosting my website on Azure instead of GitHub Pages. It looks beautiful on GitHub Pages but terrible on Azure (see the attached images). I followed these instructions on Learn Microsoft to set up the Azure website: https://learn.microsoft.com/en-us/azure/static-web-apps/publish-jekyll
Then I added all my markdown files to my repository. I've been comparing the files between the two repositories and the main differences I've found are in the gemfile.lock files, but I don't know if this is the issue.

Just-the-docs gemfile.lock template:

google-protobuf (4.26.1-arm64-darwin)
  rake (>= 13)
google-protobuf (4.26.1-x86_64-linux)
  rake (>= 13)

PLATFORMS
arm64-darwin
x86_64-linux-gnu

DEPENDENCIES
jekyll (~> 4.3.3)
just-the-docs (= 0.8.2)

BUNDLED WITH
2.5.9

In my current gemfile.lock file I see these differences.

google-protobuf (4.26.1-x64-mingw-ucrt)
  rake (>= 13)
google-protobuf (4.26.1-x86_64-linux)
  rake (>= 13)

jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)

tzinfo (2.0.6)
  concurrent-ruby (~> 1.0)
tzinfo-data (1.2024.1)
  tzinfo (>= 1.0.0)

PLATFORMS
ruby
x64-mingw-ucrt
x86_64-linux

DEPENDENCIES
http_parser.rb (> 0.6.0)
jekyll-feed (
> 0.12)
just-the-docs
tzinfo (>= 1, < 3)
tzinfo-data
wdm (~> 0.1.1)

BUNDLED WITH
2.4.22

Note that if I try to use Bundler 2.5.9 it doesn't seem to like it. It has dependency conflicts.

My github site is https://github.com/Tom-H2oThermo/jekyll-azure-static

Thank you for any advice you can give me.

Website on Azure website on github pages

Code folding support

I was trying to implement collapsible code (or ideally folded with the first couple lines visible) in my site, but the general methods for workarounds for github don't seem to translate to Jekyll.

### R script header

<details>
  <summary>Summary</summary>
  <!-- have to be followed by an empty line! -->

    ```r
    #!/usr/bin/env Rscript
    ## ---------------------------
    ```
</details>

image

The just-the-docs theme could not be found

I am only using the template, and ‘theme: just-the-docs’ is the only line I’m changing.

When I use ‘theme: just-the-docs,’ the site works locally and appears normal on the web, but there are two build errors:

  • Logging at level: debug Configuration file: /github/workspace/./_config.yml Theme: just-the-docs github-pages 231 | Error: The just-the-docs theme could not be found.
  • The github-pages gem can't satisfy your Gemfile's dependencies. If you want to use a different Jekyll version or need additional dependencies, consider building Jekyll site with GitHub Actions: https://jekyllrb.com/docs/continuous-integration/github-actions/

When I use ‘remote_theme: just-the-docs/just-the-docs,’ the site does not work locally (there is no formatting, just plain text), but the site works normally on the web, and there are no build errors

What do I do? The site is https://glasseszoom0p.github.io/wiki/
I don’t want to use GitHub Actions because they have limitations and are not free after a certain point.

deploy: build The set-output command is deprecated and will be disabled soon

I've tried this and am still getting the error (on a different line)
Run ruby/setup-ruby@0a29871
Modifying PATH
Downloading Ruby
Extracting Ruby
Print Ruby version
Installing Bundler
bundle install

Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Changing the monitoring directory to docs

Hi,

I followed the instructions from the ReadMe and I could not get the pages workflow to run correctly after making changes so that the monitoring directory is docs rather than the home dir.

I get the following error:
An error occurred trying to start process '/usr/bin/bash' with working directory '/home/runner/work/squids_learning/squids_learning/docs'. No such file or directory

There is double squids_learning directory, which is not true. However, I do not know where is that configuration so I can change it. Does anyone have any advice? Here is the link to the failed workflow: https://github.com/NikolaAndro/squids_learning/actions/runs/7550917678/job/20557324688#step:2:5

Missing documentation step (enabling GitHub Pages as deploy source)

I'm new to GitHub Actions, and I'm still wrapping my head around this, so please excuse me if I'm missing something obvious.

So I've cloned the template repo and followed the instructions in https://github.com/just-the-docs/just-the-docs-template#publishing-your-site-on-github-pages.

No. 3 is where I ran into problems. I suppose GitHub should find the workflows/pages.yml automatically, but it doesn't. Instead it offers me to create a workflows/jekyll.yml action, which is similar but not the same:
https://imgur.com/a/55jv83E

This jekyll.yml action gets triggered automatically when I push a commit to the site. My solution was to somehow add the pages.yml action and delete jekyll.yml.

Github action for just-the-docs site in docs/ sub-directory

Hi I'm following 'Modify the GitHub Actions workflow' in

https://github.com/just-the-docs/just-the-docs-template/blob/main/README.md

I get this error:

https://github.com/ABRG-Models/morphologica/actions/runs/7286458464/job/19855212486

(not sure if this is public)

Run actions/jekyll-build-pages@v1
/usr/bin/docker run --name ghcrioactionsjekyllbuildpagesv109_b5117d --label 4107db --workdir /github/workspace --rm -e "GITHUB_PAGES" -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_ENVIRONMENT" -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 "ACTIONS_RESULTS_URL" -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/morphologica/morphologica":"/github/workspace" ghcr.io/actions/jekyll-build-pages:v1.0.9
Configuration file: none
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
             Error: could not read file /github/workspace/docs/vendor/bundle/ruby/3.1.0/gems/jekyll-3.9.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb: Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'docs/vendor/bundle/ruby/3.1.0/gems/jekyll-3.9.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'docs/vendor/bundle/ruby/3.1.0/gems/jekyll-3.9.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
Error:  Logging at level: debug GitHub Pages: github-pages v228 GitHub Pages: jekyll v3.9.3 Theme: jekyll-theme-primer Theme source: /usr/local/bundle/gems/jekyll-theme-primer-0.6.0 Requiring: jekyll-github-metadata Requiring: jekyll-seo-tag 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 GitHub Metadata: Initializing... Source: /github/workspace/./ Destination: /github/workspace/./_site Incremental build: disabled. Enable with --incremental Generating... Reading: docs/_posts/2023-11-18-A_Post.md Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-sitemap-1.4.0/spec/fixtures/_posts/2014-05-11-exclude-this-post.md Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-sitemap-1.4.0/spec/fixtures/_posts/2016-04-02-错误.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-sitemap-1.4.0/spec/fixtures/_posts/2015-01-18-jekyll-last-modified-at.md Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-sitemap-1.4.0/spec/fixtures/_posts/2013-12-12-dec-the-second.md Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-sitemap-1.4.0/spec/fixtures/_posts/2014-03-04-march-the-fourth.md Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-sitemap-1.4.0/spec/fixtures/_posts/2014-03-02-march-the-second.md Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-sitemap-1.4.0/spec/fixtures/_posts/2016-04-03-错误.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-sitemap-1.4.0/spec/fixtures/_posts/2016-04-01-错误.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-paginate-1.1.0/spec/source/_posts/2014-05-20-blah.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-paginate-1.1.0/spec/source/_posts/2014-05-24-whateva.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-paginate-1.1.0/spec/source/_posts/2014-05-22-humor.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-paginate-1.1.0/spec/source/_posts/2014-05-25-oh-yes.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-paginate-1.1.0/spec/source/_posts/2014-05-23-hey-there.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-paginate-1.1.0/spec/source/_posts/2014-05-21-bleh.html Reading: docs/vendor/bundle/ruby/3.1.0/gems/jekyll-3.9.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb

My action yml is:

https://github.com/ABRG-Models/morphologica/blob/9b703edbffdf4393442fb854dbcc8252a3dcf43e/.github/workflows/jekyll-gh-pages.yml

I want to build a site from files in docs/ in my existing code repo 'morphologica'

Any idea how to fix?

[Git Action] Build with Jekyll Failed

On my repo - brand new no changes https://github.com/Mieekaserra/Mieekaserra.github.io

Am getting the following error

image

Which gives me the following error.
/usr/bin/docker run --name ghcrioactionsjekyllbuildpagesv106_b31546 --label 290506 --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_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -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_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/Mieekaserra.github.io/Mieekaserra.github.io":"/github/workspace" ghcr.io/actions/jekyll-build-pages:v1.0.6
/usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:84:in rescue in gemspec': The just-the-docs theme could not be found. (Jekyll::Errors::MissingDependencyException) from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:81:in gemspec'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:19:in root' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:12:in initialize'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in new' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in configure_theme'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:55:in config=' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:23:in initialize'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30:in new' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30: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 <main>' /usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:3[11](https://github.com/Mieekaserra/Mieekaserra.github.io/actions/runs/3542179945/jobs/5947366955#step:4:12):in to_specs': Could not find 'just-the-docs' (>= 0) among 148 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/github/home/.gem/ruby/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/local/bundle', execute gem env for more information
from /usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:323:in to_spec' from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:986:in find_by_name'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:82:in gemspec' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:19:in root'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:12:in initialize' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in new'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in configure_theme' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:55:in config='
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:23:in initialize' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30:in new'
from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30: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-[22](https://github.com/Mieekaserra/Mieekaserra.github.io/actions/runs/3542179945/jobs/5947366955#step:4:23)7/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

'
Logging at level: debug
Configuration file: /github/workspace/./_config.yml
Theme: just-the-docs
github-pages 227 | Error: The just-the-docs theme could not be found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.