> For the complete documentation index, see [llms.txt](https://greene-lab.gitbook.io/lab-website-template-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://greene-lab.gitbook.io/lab-website-template-docs/getting-started/set-up-your-site.md).

# Set up your site

There are two ways to start your copy of the template from [GitHub](https://github.com/greenelab/lab-website-template): **generating** or **forking**. They each have pros and cons:

<table><thead><tr><th width="87.33333333333331"></th><th>Generate (recommended)</th><th>Fork</th></tr></thead><tbody><tr><td></td><td><img src="/files/HKJygXeIFnVKluUtwhoe" alt="" data-size="line"></td><td><img src="/files/NgFQOPHRfcen0gEg1oM0" alt="" data-size="line"></td></tr><tr><td><em>Pros</em></td><td><ul><li>Clean commit and Actions history; a "fresh start".</li><li>Can have multiple per user/organization.</li></ul></td><td><ul><li>A bit easier to <a href="/pages/CyrVqaWdqeooJSCpj8I7">update your version of the template</a>.</li></ul></td></tr><tr><td><em>Cons</em></td><td><ul><li>A bit harder to <a href="/pages/CyrVqaWdqeooJSCpj8I7">update your version of the template</a>.</li></ul></td><td><ul><li>You get <a href="https://github.com/greenelab/lab-website-template/commits/main">the development history of the template</a> in your repo's commit and Actions history.</li><li>Can only have one per user/organization.</li><li><a href="https://github.com/orgs/community/discussions/11729">Accidental PRs</a></li></ul></td></tr></tbody></table>

Once you decide which approach to take, follow the appropriate setup steps below. We've tried to automate this setup for you as much as possible, within the limitations of GitHub!

{% tabs %}
{% tab title="Generate" %}

1. [Generate a new repo from this template under your account](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template) with the <img src="https://user-images.githubusercontent.com/8326331/106949308-c4877180-66fa-11eb-9300-9468cb8a6aaa.png" alt="Use this template" data-size="line"> button.
   1. Name your repo something like `your-lab-website` to avoid confusion with the template itself.
   2. Set the repo to "Public" visibility.
   3. Uncheck "Include all branches".
2. In your repo's "⚙️ Settings", [give GitHub Actions workflows read and write permissions](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository), and [allow them to create pull requests](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests).
3. In your repo's "▶️ Actions", find the "first time setup" workflow and [run it manually](https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow). Wait for it to complete (\~30 seconds).
4. In your repo's "⚙️ Settings", [set GitHub Pages to build/publish from](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) the `gh-pages` branch. Wait for the first build of your site to complete (\~3 minutes, multiple Actions workflows will run).
5. Your repo should be initialized and your site should be live! Check your readme for the link.
   {% endtab %}

{% tab title="Fork" %}

1. [Fork this repo under your account](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) with the <img src="https://user-images.githubusercontent.com/8326331/106949309-c4877180-66fa-11eb-86fd-d0a2741e49d0.png" alt="Fork" data-size="line"> button.
   1. Name your repo something like `your-lab-website` to avoid confusion with the template itself.
   2. Check "Copy the `main` branch only".
2. In your repo's "▶️ Actions", acknowledge the warning and enable Actions workflows.
3. In your repo's "⚙️ Settings", [give GitHub Actions workflows read and write permissions](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository), and [allow them to create pull requests](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests).
4. In your repo's "▶️ Actions", find the "first time setup" workflow and [run it manually](https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow). Wait for it to complete (\~30 seconds).
5. In your repo's "⚙️ Settings", [set GitHub Pages to build/publish from](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) the `gh-pages` branch. Wait for the first build of your site to complete (\~3 minutes, multiple Actions workflows will run).
6. Your repo should be initialized and your site should be live! Check your readme for the link.
7. If you want to [periodic citation updates](/lab-website-template-docs/basics/citations.md#periodic-updates), in your repo's "▶️ Actions", find the "on schedule" workflow and [enable it](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow).
   {% endtab %}
   {% endtabs %}

{% hint style="info" %}
A lot of the automation in this template relies on GitHub Actions, which sometimes (very rarely) [goes down](https://www.githubstatus.com/). Be aware of this in case a process in the template ever fails.
{% endhint %}

{% hint style="info" %}
GitHub frequently changes and rearranges its web interface, so you may notice slight discrepancies in the instructions above. We've tried to write the instructions more abstractly, linking to GitHub's official documentation for more details.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://greene-lab.gitbook.io/lab-website-template-docs/getting-started/set-up-your-site.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
