Skip to content

Commit c85b376

Browse files
fsecada01claude
andcommitted
Fix docs deployment: copy full pdoc output and correct entry-point URLs
pdoc generates component_framework.html at the output root plus a component_framework/ subdirectory for submodules. The previous deploy step only copied the subdirectory, leaving the root HTML missing and causing 404s on the published URL. - docs.yml: copy all of downloaded-docs/ (not just the subdirectory) - update_gh_pages.py: link to component_framework.html (not the dir) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ca6cc80 commit c85b376

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
DEST="gh-pages-dir/${LABEL}"
149149
rm -rf "${DEST}"
150150
mkdir -p "${DEST}"
151-
cp -r downloaded-docs/component_framework "${DEST}/"
151+
cp -r downloaded-docs/. "${DEST}/"
152152
153153
- name: Update latest symlink (releases only)
154154
if: needs.build.outputs.is-release == 'true'

docs/update_gh_pages.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def write_root_index(
220220
if has_main:
221221
items.append(
222222
_LI_TEMPLATE.format(
223-
href="main/component_framework/",
223+
href="main/component_framework.html",
224224
label="main",
225225
tag_class="tag-dev",
226226
tag_text="dev",
@@ -230,7 +230,7 @@ def write_root_index(
230230
if latest:
231231
items.append(
232232
_LI_TEMPLATE.format(
233-
href="latest/component_framework/",
233+
href="latest/component_framework.html",
234234
label=f"latest ({latest})",
235235
tag_class="tag-latest",
236236
tag_text="stable",
@@ -242,7 +242,7 @@ def write_root_index(
242242
tag_text = "latest" if version == latest else "release"
243243
items.append(
244244
_LI_TEMPLATE.format(
245-
href=f"{version}/component_framework/",
245+
href=f"{version}/component_framework.html",
246246
label=version,
247247
tag_class=tag_class,
248248
tag_text=tag_text,

0 commit comments

Comments
 (0)