Skip to content

Commit 85582b0

Browse files
Copilotbytestream
andauthored
Add setup documentation and finalize configuration
Agent-Logs-Url: https://github.com/jquery-validation/validation-content/sessions/56c60609-42d5-4470-b53a-8ba170e29227 Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>
1 parent 093f7a5 commit 85582b0

4 files changed

Lines changed: 64 additions & 9 deletions

File tree

GITHUB_PAGES_SETUP.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# GitHub Pages Setup Instructions
2+
3+
This document explains how to enable GitHub Pages for this repository.
4+
5+
## Automatic Deployment
6+
7+
The repository is configured to automatically deploy to GitHub Pages using GitHub Actions. The workflow is defined in `.github/workflows/deploy-pages.yml`.
8+
9+
## Enabling GitHub Pages
10+
11+
To enable GitHub Pages for this repository, a repository administrator needs to:
12+
13+
1. Go to the repository **Settings** page
14+
2. Navigate to **Pages** in the left sidebar
15+
3. Under **Build and deployment**:
16+
- **Source**: Select "GitHub Actions"
17+
4. Save the changes
18+
19+
## After Enabling
20+
21+
Once GitHub Pages is enabled:
22+
23+
1. The workflow will automatically run when changes are pushed to `main` or `master` branch
24+
2. You can also manually trigger the workflow from the **Actions** tab
25+
3. The site will be available at: `https://jquery-validation.github.io/validation-content/`
26+
- Or at your custom domain if configured
27+
28+
## Testing the Deployment
29+
30+
After enabling GitHub Pages and pushing changes:
31+
32+
1. Go to the **Actions** tab in the repository
33+
2. You should see the "Deploy to GitHub Pages" workflow running
34+
3. Once complete, visit the deployed site URL
35+
4. Verify that the content displays correctly
36+
37+
## Troubleshooting
38+
39+
If the deployment fails:
40+
41+
1. Check the workflow logs in the **Actions** tab
42+
2. Verify that GitHub Pages is enabled with "GitHub Actions" as the source
43+
3. Ensure the branch being deployed (main or master) exists and has the latest changes
44+
4. Check that all required files are present: `_config.yml`, `_layouts/default.html`, and content files
45+
46+
## Custom Domain (Optional)
47+
48+
To use a custom domain:
49+
50+
1. Add a `CNAME` file to the repository root with your domain name
51+
2. Configure your DNS settings to point to GitHub Pages
52+
3. Enable HTTPS in the Pages settings (recommended)
53+
54+
For more information, see: https://docs.github.com/en/pages

_config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: jQuery Validation Plugin
22
description: Site content for the jQuery Validation Plugin
3-
url: https://jqueryvalidation.org
4-
baseurl: ""
3+
url: https://jquery-validation.github.io
4+
baseurl: "/validation-content"
55

66
# Build settings
77
markdown: kramdown
@@ -23,6 +23,7 @@ exclude:
2323
- dist
2424
- Gemfile
2525
- Gemfile.lock
26+
- GITHUB_PAGES_SETUP.md
2627

2728
# Collections
2829
collections:

_layouts/default.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@
7171
</head>
7272
<body>
7373
<header>
74-
<h1><a href="/" style="color: #0066cc; text-decoration: none;">{{ site.title }}</a></h1>
74+
<h1><a href="{{ site.baseurl }}/" style="color: #0066cc; text-decoration: none;">{{ site.title }}</a></h1>
7575
<nav>
76-
<a href="/">Home</a>
77-
<a href="/documentation/">Documentation</a>
78-
<a href="/contribute/">Contribute</a>
79-
<a href="/reference/">Reference</a>
76+
<a href="{{ site.baseurl }}/">Home</a>
77+
<a href="{{ site.baseurl }}/documentation/">Documentation</a>
78+
<a href="{{ site.baseurl }}/contribute/">Contribute</a>
79+
<a href="{{ site.baseurl }}/reference/">Reference</a>
8080
<a href="https://github.com/jquery-validation/jquery-validation">GitHub</a>
8181
</nav>
8282
</header>

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Starting with Version 1.15.0 [Markus Staab](https://github.com/staabm) took over
2020
### Files:
2121
- [Download](https://github.com/jzaefferer/jquery-validation/releases/tag/1.19.5) - zip-Archive with source code, minified and packed version, demos and examples
2222
- [Changelog](https://github.com/jzaefferer/jquery-validation/releases/tag/1.19.5)
23-
- [Demos](//jqueryvalidation.org/files/demo/)
24-
- [Documentation](/documentation/)
23+
- [Demos](https://jqueryvalidation.org/files/demo/)
24+
- [Documentation](documentation/)
2525
- [GitHub Repository](https://github.com/jzaefferer/jquery-validation)
2626

2727
### Installation via Package Managers

0 commit comments

Comments
 (0)