|
1 | | -jqueryvalidation-content |
2 | | -======================== |
| 1 | +# jQuery Validation Plugin - Content Repository |
3 | 2 |
|
4 | | -## Building |
| 3 | +This repository contains the documentation and content for the [jQuery Validation Plugin](https://github.com/jquery-validation/jquery-validation) website. |
5 | 4 |
|
6 | | -### Requirements |
| 5 | +## GitHub Pages Deployment |
7 | 6 |
|
8 | | -* <a href="http://www.xmlsoft.org/">libxml2</a> |
9 | | -* <a href="http://xmlsoft.org/XSLT/">libxslt</a> |
| 7 | +This site is automatically deployed to GitHub Pages using Jekyll. |
10 | 8 |
|
11 | | -The `xmllint` and `xsltproc` utilities need to be in your path. If you are on Windows, you can get libxml2 and libxslt from <a href="http://www.zlatkovic.com/libxml.en.html">GnuWin32</a>. |
| 9 | +### How it Works |
12 | 10 |
|
13 | | -* Install [WordPress](http://wordpress.org/download/) |
14 | | -* Install [jqueryvalidation-theme](https://github.com/jzaefferer/validation-theme) - clone that repo, then symlink it into your `wp-content/themes` folder |
15 | | -* Install [gilded-wordpress plugin](https://raw.githubusercontent.com/scottgonzalez/gilded-wordpress/v1.0.0/gilded-wordpress.php) |
16 | | -* Install [jquery-static-index plugin](https://raw.githubusercontent.com/jquery/jquery-wp-content/v4.0.1/plugins/jquery-static-index.php) |
| 11 | +- Content is written in Markdown with Jekyll front matter |
| 12 | +- The site is built using Jekyll (configured in `_config.yml`) |
| 13 | +- GitHub Actions automatically builds and deploys the site when changes are pushed to the `main` or `master` branch |
| 14 | +- The workflow is defined in `.github/workflows/deploy-pages.yml` |
17 | 15 |
|
18 | | -### Installation |
| 16 | +### Local Development |
19 | 17 |
|
20 | | -In this repo: |
21 | | -* Make sure nodejs (with npm) is installed, otherwise install from nodejs.org |
22 | | -* `cp config-sample.json config.json`, edit config.json to match login for local WordPress |
23 | | -* run `npm install -g grunt-cli` |
24 | | -* run `npm install` |
| 18 | +To test the site locally: |
25 | 19 |
|
26 | | -### Hacks |
| 20 | +1. Install Ruby and Bundler: |
| 21 | + ```bash |
| 22 | + gem install bundler |
| 23 | + ``` |
27 | 24 |
|
28 | | -* Make sure your local `wordpress` nodejs module contains [this commit](https://github.com/scottgonzalez/node-wordpress/commit/2b19238cf8064dafb66b9db09d0adcc9eac7f724) |
29 | | -* Make sure your local config contains |
30 | | - * rpc-auth and basic-auth credentials |
31 | | - * a https jqueryvalidation url |
| 25 | +2. Install dependencies: |
| 26 | + ```bash |
| 27 | + bundle install |
| 28 | + ``` |
32 | 29 |
|
33 | | -### Deploy |
| 30 | +3. Run Jekyll locally: |
| 31 | + ```bash |
| 32 | + bundle exec jekyll serve |
| 33 | + ``` |
34 | 34 |
|
35 | | -`grunt deploy` |
| 35 | +4. Open your browser to `http://localhost:4000` |
| 36 | + |
| 37 | +### Making Changes |
| 38 | + |
| 39 | +1. Edit or create Markdown files (`.md`) in the root directory |
| 40 | +2. Each file should have Jekyll front matter at the top: |
| 41 | + ```yaml |
| 42 | + --- |
| 43 | + layout: default |
| 44 | + title: Your Page Title |
| 45 | + --- |
| 46 | + ``` |
| 47 | +3. Commit and push your changes |
| 48 | +4. GitHub Actions will automatically build and deploy the site |
| 49 | + |
| 50 | +### Content Structure |
| 51 | + |
| 52 | +- `index.md` - Home page |
| 53 | +- `documentation.md` - API documentation |
| 54 | +- `contribute.md` - Contribution guide |
| 55 | +- `reference.md` - General guidelines and reference |
| 56 | +- `entries/` - XML documentation entries (for API methods) |
| 57 | +- `pages/` - Original content files (kept for reference) |
| 58 | + |
| 59 | +### Deployment |
| 60 | + |
| 61 | +The site is automatically deployed via GitHub Actions when: |
| 62 | +- Changes are pushed to `main` or `master` branch |
| 63 | +- The workflow can also be triggered manually from the Actions tab |
| 64 | + |
| 65 | +No manual deployment is required! |
0 commit comments