Skip to content

Commit 73cace3

Browse files
authored
Merge pull request #23 from nullhack/fix/docs-branch-publish
fix: use docs branch for GitHub Pages
2 parents 45409e7 + fe3b004 commit 73cace3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ doc-serve = "pdoc ./{{cookiecutter.package_name}} --host localhost --port 8080"
153153
doc-build = "pdoc ./{{cookiecutter.package_name}} -o docs/api --search"
154154
doc-publish = """\
155155
task doc-build && \
156-
git checkout gh-pages 2>/dev/null || git checkout -b gh-pages && \
156+
git checkout docs 2>/dev/null || git checkout -b docs && \
157157
git rm -rf . && \
158158
cp -r docs/api/* . && \
159159
git add -A && \
160160
git commit -m "Publish API documentation" && \
161-
git push origin gh-pages --force && \
161+
git push origin docs --force && \
162162
git checkout main"""
163163
mut-report = """
164164
uv run cosmic-ray new-config mut.toml && \

0 commit comments

Comments
 (0)