| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| # Docs |
| |
| ## Preview on fork |
| |
| When implementing changes to the website on a fork, the GitHub Actions |
| workflow behaves differently. |
| |
| On a commit to all branches, the rendered static site will be |
| published to GitHub Pages using GitHub Actions. The latest commit is |
| only visible because all publications use the same output location: |
| https://${YOUR_GITHUB_ACCOUNT}.github.io/arrow-dotnet/ |
| |
| You need to configure your fork repository to use this feature: |
| |
| 1. Enable GitHub Pages on your fork: |
| 1. Open https://github.com/${YOUR_GITHUB_ACCOUNT}/arrow-dotnet/settings/pages |
| 2. Select "GitHub Actions" as "Source" |
| 2. Accept publishing GitHub Pages from all branches on your fork: |
| 1. Open https://github.com/${YOUR_GITHUB_ACCOUNT}/arrow-dotnet/settings/environments |
| 2. Select the "github-pages" environment |
| 3. Change the default "Deployment branches and tags" rule: |
| 1. Press the "Edit" button |
| 2. Change the "Name pattern" to `*` from `main` or `gh-pages` |
| |
| See also the [GitHub Pages documentation](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow). |