Skip to content

Commit 29f9de4

Browse files
committed
fix: correct documentation preview URL paths
- Update index URL path to use root instead of /index - Update installation URL to use /install instead of /install/index - Add Quick Links section to PR comment with direct paths - Ensure consistent path references across all components
1 parent 0cafee5 commit 29f9de4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/docs/actions/docs-core/action.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ runs:
384384
PREVIEW_URL="https://coder.com/docs/@$SANITIZED_BRANCH"
385385
386386
# Generate standard document links
387-
INDEX_URL="$PREVIEW_URL/index"
388-
INSTALL_URL="$PREVIEW_URL/install/index"
387+
INDEX_URL="$PREVIEW_URL"
388+
INSTALL_URL="$PREVIEW_URL/install"
389389
GETTING_STARTED_URL="$PREVIEW_URL/start/first-workspace"
390390
391391
# Store variables for later steps
@@ -883,7 +883,13 @@ runs:
883883
GH_COMMENT+="\n## 🖥️ Preview Your Changes\n\n"
884884
GH_COMMENT+="**🔗 [View Documentation Preview](${{ steps.context-info.outputs.preview_url }})**\n\n"
885885
886-
# Add direct links if available
886+
# Add standard documentation links
887+
GH_COMMENT+="### Quick Links\n\n"
888+
GH_COMMENT+="- [Main Docs](${{ steps.context-info.outputs.preview_url }})\n"
889+
GH_COMMENT+="- [Installation Guide](${{ steps.context-info.outputs.install_url }})\n"
890+
GH_COMMENT+="- [Getting Started](${{ steps.context-info.outputs.getting_started_url }})\n\n"
891+
892+
# Add direct links to changed files if available
887893
if [ -n "${{ steps.file-detection.outputs.direct_links }}" ]; then
888894
GH_COMMENT+="<details>\n<summary><strong>📄 Direct Links to Changed Files</strong></summary>\n\n"
889895

0 commit comments

Comments
 (0)