Skip to content

Commit dcd08b9

Browse files
committed
fix: update root _config.yml for custom domain
- Set baseurl to empty string for custom domain - Set url to https://docs.specfact.io - Exclude assets/ from permalink pattern to fix CSS paths - This file is copied to docs/ by GitHub Pages workflow, so it must match docs/_config.yml Fixes CSS 404 error: /specfact-cli/assets/main.css -> /assets/main.css
1 parent 6f3eaa3 commit dcd08b9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

_config.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
title: SpecFact CLI Documentation
55
description: >-
66
Complete documentation for SpecFact CLI - Brownfield-first CLI: Reverse engineer legacy Python → specs → enforced contracts.
7-
baseurl: "/specfact-cli" # Project pages require baseurl
8-
url: "https://nold-ai.github.io" # GitHub Pages domain
7+
baseurl: "" # Custom domain at root, no baseurl needed
8+
url: "https://docs.specfact.io" # Custom domain
99

1010
# Build settings
1111
markdown: kramdown
@@ -51,17 +51,16 @@ defaults:
5151
type: pages
5252
values:
5353
layout: default
54-
# Apply permalink pattern only to markdown files
54+
# Apply permalink pattern only to markdown files (exclude assets)
5555
# Note: SCSS files with front matter are treated as pages and inherit this pattern
56-
# This causes CSS to be output at main/index.css instead of assets/main.css
57-
# We fix this in the GitHub Pages workflow by copying the CSS to the correct location
56+
# We exclude assets/ directory to prevent CSS from being output at main/index.css
5857
- scope:
5958
path: ""
6059
type: pages
60+
exclude:
61+
- "assets/**"
6162
values:
6263
permalink: /:basename/
63-
# Only apply to files that are actually markdown, not SCSS
64-
# Jekyll will still process SCSS as assets if they're in assets/
6564
- scope:
6665
path: "getting-started"
6766
values:

0 commit comments

Comments
 (0)