{"id":20036121,"url":"https://github.com/tnowad/git-guide","last_synced_at":"2026-04-12T18:53:51.024Z","repository":{"id":232894316,"uuid":"656296251","full_name":"tnowad/git-guide","owner":"tnowad","description":"This repository contains comprehensive documentation on Git, a distributed version control system. Whether you’re a beginner or an experienced user, this documentation will guide you through the fundamentals and advanced features of Git.","archived":false,"fork":false,"pushed_at":"2024-08-02T01:07:21.000Z","size":43,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-12T18:50:51.633Z","etag":null,"topics":["git","git-workflow","jekyll"],"latest_commit_sha":null,"homepage":"https://tnowad.github.io/git-guide/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tnowad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-20T16:50:35.000Z","updated_at":"2023-06-20T19:12:20.000Z","dependencies_parsed_at":"2025-01-12T18:40:52.361Z","dependency_job_id":null,"html_url":"https://github.com/tnowad/git-guide","commit_stats":null,"previous_names":["tnowad/git-guide"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnowad%2Fgit-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnowad%2Fgit-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnowad%2Fgit-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnowad%2Fgit-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tnowad","download_url":"https://codeload.github.com/tnowad/git-guide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241465103,"owners_count":19967243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-workflow","jekyll"],"created_at":"2024-11-13T10:10:55.871Z","updated_at":"2025-11-25T19:03:04.120Z","avatar_url":"https://github.com/tnowad.png","language":"Ruby","readme":"# just-the-docs-template\n\nThis is a *bare-minimum* template to create a [Jekyll] site that:\n\n- uses the [Just the Docs] theme;\n- can be built and published on [GitHub Pages];\n- can be built and previewed locally, and published on other platforms.\n\nMore specifically, the created site:\n\n- uses a gem-based approach, i.e. uses a `Gemfile` and loads the `just-the-docs` gem;\n- uses the [GitHub Pages / Actions workflow] to build and publish the site on GitHub Pages.\n\nTo get started with creating a site, just click \"[use this template]\"!\n\nIf you want to maintain your docs in the `docs` directory of an existing project repo, see [Hosting your docs from an existing project repo](#hosting-your-docs-from-an-existing-project-repo).\n\nAfter completing the creation of your new site on GitHub, update it as needed:\n\n## Replace the content of the template pages\n\nUpdate the following files to your own content:\n\n- `index.md` (your new home page)\n- `README.md` (information for those who access your site repo on GitHub)\n\n## Changing the version of the theme and/or Jekyll\n\nSimply edit the relevant line(s) in the `Gemfile`.\n\n## Adding a plugin\n\nThe Just the Docs theme automatically includes the [`jekyll-seo-tag`] plugin.\n\nTo add an extra plugin, you need to add it in the `Gemfile` *and* in `_config.yml`. For example, to add [`jekyll-default-layout`]:\n\n- Add the following to your site's `Gemfile`:\n\n  ```ruby\n  gem \"jekyll-default-layout\"\n  ```\n\n- And add the following to your site's `_config.yml`:\n\n  ```yaml\n  plugins:\n    - jekyll-default-layout\n  ```\n\nNote: If you are using a Jekyll version less than 3.5.0, use the `gems` key instead of `plugins`.\n\n## Publishing your site on GitHub Pages\n\n1.  If your created site is `YOUR-USERNAME/YOUR-SITE-NAME`, update `_config.yml` to:\n\n    ```yaml\n    title: YOUR TITLE\n    description: YOUR DESCRIPTION\n    theme: just-the-docs\n\n    url: https://YOUR-USERNAME.github.io/YOUR-SITE-NAME\n\n    aux_links: # remove if you don't want this link to appear on your pages\n      Template Repository: https://github.com/YOUR-USERNAME/YOUR-SITE-NAME\n    ```\n\n2.  Push your updated `_config.yml` to your site on GitHub.\n\n3.  In your newly created repo on GitHub:\n    - go to the `Settings` tab -\u003e `Pages` -\u003e `Build and deployment`, then select `Source`: `GitHub Actions`.\n    - if there were any failed Actions, go to the `Actions` tab and click on `Re-run jobs`.\n\n## Building and previewing your site locally\n\nAssuming [Jekyll] and [Bundler] are installed on your computer:\n\n1.  Change your working directory to the root directory of your site.\n\n2.  Run `bundle install`.\n\n3.  Run `bundle exec jekyll serve` to build your site and preview it at `localhost:4000`.\n\n    The built site is stored in the directory `_site`.\n\n## Publishing your built site on a different platform\n\nJust upload all the files in the directory `_site`.\n\n## Customization\n\nYou're free to customize sites that you create with this template, however you like!\n\n[Browse our documentation][Just the Docs] to learn more about how to use this theme.\n\n## Hosting your docs from an existing project repo\n\nYou might want to maintain your docs in an existing project repo. Instead of creating a new repo using the [just-the-docs template](https://github.com/just-the-docs/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.\n\n### Copy the template files\n\n1.  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.\n\n2.  Create a `docs` directory at your project root and copy all remaining template files into this directory.\n\n### Modify the Github Actions worklow\n\nThe 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.\n\n1.  Set the default `working-directory` param for the build job.\n\n    ```yaml\n    build:\n      runs-on: ubuntu-latest\n      defaults:\n        run:\n          working-directory: docs\n    ```\n\n2.  Set the `working-directory` param for the Setup Ruby step.\n\n    ```yaml\n    - name: Setup Ruby\n        uses: ruby/setup-ruby@v1\n        with:\n          ruby-version: '3.1'\n          bundler-cache: true\n          cache-version: 0\n          working-directory: '${{ github.workspace }}/docs'\n    ```\n\n3.  Set the path param for the Upload artifact step:\n\n    ```yaml\n    - name: Upload artifact\n        uses: actions/upload-pages-artifact@v1\n        with:\n          path: \"docs/_site/\"\n    ```\n\n4.  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.\n\n    ```yaml\n    on:\n      push:\n        branches:\n          - \"main\"\n        paths:\n          - \"docs/**\"\n    ```\n\n## Licensing and Attribution\n\nThis 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!\n\nThe 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].\n\n----\n\n[^1]: [It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll#creating-your-site).\n\n[Jekyll]: https://jekyllrb.com\n[Just the Docs]: https://just-the-docs.github.io/just-the-docs/\n[GitHub Pages]: https://docs.github.com/en/pages\n[GitHub Pages / Actions workflow]: https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/\n[Bundler]: https://bundler.io\n[use this template]: https://github.com/just-the-docs/just-the-docs-template/generate\n[`jekyll-default-layout`]: https://github.com/benbalter/jekyll-default-layout\n[`jekyll-seo-tag`]: https://jekyll.github.io/jekyll-seo-tag\n[MIT License]: https://en.wikipedia.org/wiki/MIT_License\n[starter workflows]: https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml\n[actions/starter-workflows]: https://github.com/actions/starter-workflows/blob/main/LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnowad%2Fgit-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftnowad%2Fgit-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnowad%2Fgit-guide/lists"}