> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/ja/insutru/using-the-github-codespace.md).

# GitHub Codespace の使用

Overleaf Pro をセットアップする最も簡単な方法は GitHub Codespace を使用することです。すべての環境変数は事前設定済みで、すぐに使い始められるようになっています。

{% hint style="warning" %}
GitHub Codespaces を使用して Docker コンテナを実行すると、Codespace は自動的に終了せず、引き続き **課金されます**。GitHub Codespaces の課金ルールについては、 [github codespaces の課金ルール](https://docs.github.com/en/billing/concepts/product-billing/github-codespaces).

GitHub Codespaces を管理するには、こちらにアクセスしてください <https://github.com/codespaces>。不要になったら、Codespace を適時削除してください。
{% endhint %}

私たちは **事前設定済みの** 以下の機能があります：

* [x] テンプレートシステム
* [x] 公開登録
* [x] サンドボックスコンパイル
* [x] Overleaf 用 Git ブリッジ
* [x] レビューパネル

{% stepper %}
{% step %}

### GitHub Codespace を作成する

以下のボタンをクリックして GitHub Codespace を作成してください。サーバー構成については、 **2コア・8GB RAM** で、個人の日常的な編集には通常十分です。 **小規模チーム**で共同作業を行う予定がある場合は、 **4コア以上**.

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ayaka-notes/overleaf)
{% endstep %}

{% step %}

### Overleaf インスタンスを初期化する

Codespace の準備ができたら、bash で次のコマンドを実行して Overleaf インスタンスを初期化してください。

{% code title="bash" %}

```bash
./init.sh
```

{% endcode %}

{% hint style="info" %}
必要な Docker イメージをすべて取得するまで、少なくとも 3 分待つ必要がある場合があります。
{% endhint %}

<figure><img src="/files/eafbbfb65b863fdd36a64b9ab25ef4edf2d05937" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 80番ポートを利用可能にする

「 **Ports** 」タブに切り替え、次の手順に従って 80 番ポートを公開してください。

<figure><img src="/files/bd96cc4e67da94e7ac3d8792e717f3b7f93edc6f" alt=""><figcaption></figcaption></figure>

その後、 **転送先アドレス** をクリックして Overleaf インスタンスにアクセスできます。必要に応じて `/launchpad` を追加して Overleaf のウェルカムページにアクセスしてください。
{% endstep %}

{% step %}

### 管理者アカウントを作成する

管理者アカウントとパスワードを入力し、Register ボタンをクリックしてください。

<figure><img src="/files/484618fd5f97c37c8c7df6edd03d03292323677e" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 執筆を楽しみましょう

さあ、 $$\LaTeX$$ 執筆を楽しみましょう！

<figure><img src="/files/7276740261a71997255972b23a6bcbac9f7c8358" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# 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://ayakaleaf-pro.ayaka.space/on-premises/ja/insutru/using-the-github-codespace.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.
