Skip to content

Commit 2703859

Browse files
_
1 parent d87761f commit 2703859

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

afterpython/cli/commands/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def build(ctx, dev: bool, execute: bool):
160160
click.echo(f"Building {content_type}/...")
161161
# NOTE: needs to set BASE_URL so that the project website can link to the content pages correctly at e.g. localhost:5173/doc
162162
# BASE_PATH is set by the GitHub Actions workflow
163-
base_path = os.getenv("BASE_PATH", "/afterpython")
163+
base_path = os.getenv("BASE_PATH", "")
164164
base_url = f"{base_path}/{content_type}"
165165
build_env = {**node_env, "BASE_URL": base_url}
166166
result = subprocess.run(

afterpython/templates/deploy-workflow-template.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767
working-directory: ./afterpython/_website
6868

6969
- name: Build website
70-
run: ap build
70+
run: |
71+
ap build
7172
env:
7273
BASE_PATH: '/${{ github.event.repository.name }}'
7374

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependencies = [
5353
[project.urls]
5454
homepage = "https://afterpython.org"
5555
repository = "https://github.com/AfterPythonOrg/afterpython"
56-
documentation = "https://docs.afterpython.org"
56+
documentation = "https://ap.afterpython.org/doc"
5757

5858
[project.scripts]
5959
ap = "afterpython.main:run_cli"

0 commit comments

Comments
 (0)