File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 publish_branch : gh-pages
4545 publish_dir : site/dist
4646 force_orphan : true
47+ # Keep the custom-domain CNAME file on gh-pages; without this,
48+ # force_orphan would delete it on every deploy and detach the domain.
49+ cname : progit3.com
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ agent-generated posts.**
7272publishes ` site/dist/ ` to the ` gh-pages ` branch with
7373[ peaceiris/actions-gh-pages] ( https://github.com/peaceiris/actions-gh-pages ) .
7474Point GitHub Pages at the ` gh-pages ` branch (Settings → Pages → Deploy from a
75- branch) and the site is served at < https://progit.github.io/ progit3/ > .
75+ branch) and the site is served at < https://progit3.com / > .
7676
77- The canonical URL and base path default to ` https://progit.github.io ` and
78- ` /progit3 ` ; override them with the ` SITE_URL ` and ` BASE_PATH ` environment
79- variables (e.g. for a fork or a custom domain ).
77+ The canonical URL and base path default to ` https://progit3.com ` and
78+ ` / ` ; override them with the ` SITE_URL ` and ` BASE_PATH ` environment
79+ variables (e.g. for a fork served at ` https://<user>.github.io/progit3/ ` ).
Original file line number Diff line number Diff line change 22import { defineConfig } from 'astro/config' ;
33import mdx from '@astrojs/mdx' ;
44
5- // GitHub Pages project site : https://progit.github.io/ progit3/
6- // Override SITE_URL / BASE_PATH for forks or a custom domain .
7- const site = process . env . SITE_URL ?? 'https://progit.github.io ' ;
8- const base = process . env . BASE_PATH ?? '/progit3 ' ;
5+ // GitHub Pages with a custom domain : https://progit3.com /
6+ // Override SITE_URL / BASE_PATH for forks (e.g. https://<user>.github.io and /progit3) .
7+ const site = process . env . SITE_URL ?? 'https://progit3.com ' ;
8+ const base = process . env . BASE_PATH ?? '/' ;
99
1010export default defineConfig ( {
1111 site,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { fileURLToPath } from 'node:url';
2222
2323const siteRoot = path . resolve ( path . dirname ( fileURLToPath ( import . meta. url ) ) , '..' ) ;
2424const repoRoot = path . resolve ( siteRoot , '..' ) ;
25- const base = ( process . env . BASE_PATH ?? '/progit3 ' ) . replace ( / \/ + $ / , '' ) ;
25+ const base = ( process . env . BASE_PATH ?? '/' ) . replace ( / \/ + $ / , '' ) ;
2626
2727// ---------------------------------------------------------------------------
2828// 1. Make sure book/contributors.txt exists (mirrors the Rakefile task).
You can’t perform that action at this time.
0 commit comments