<commit_before>jQuery Validation Unobtrusive Native Docs / Demo
================================================

Well hello!

This is a documentation project for jQVUN which demonstrates how you might use the library.  It's written in ASP.Net MVC (perhaps unsurprisingly) but is, to all intents and purposes pretty much a static site. (Well the Remote and Globalize demos are slightly the exception to the rule but generally that's true.)

I'm planning to use GitHub Pages to host this.  The easiest way to do this is to use a tool to generate a static site that we can put on GitHub Pages.

# Generating the static site

You're going to need a copy of [wget](http://users.ugent.be/~bpuype/wget/).

Then spin up your website and enter this at the command line:

```
wget.exe --recursive --convert-links -E --directory-prefix=static-site --no-host-directories http://localhost:57612/

# Switch to gh-pages branch and remove contents of directory
cd C:\GitHub\jQuery.Validation.Unobtrusive.Native 

git checkout gh-pages
Get-ChildItem -Attributes !r | Remove-Item -Recurse -Force

# Copy contents of C:\GitHub\static-site to C:\GitHub\jQuery.Validation.Unobtrusive.Native
copy-item -path C:\GitHub\static-site\* -Destination C:\GitHub\jQuery.Validation.Unobtrusive.Native -Recurse
<commit_msg>fleshed out documation automation instructions<commit_after>jQuery Validation Unobtrusive Native Docs / Demo
================================================

Well hello!

This is a documentation project for jQVUN which demonstrates how you might use the library.  It's written in ASP.Net MVC (perhaps unsurprisingly) but is, to all intents and purposes pretty much a static site. (Well the Remote and Globalize demos are slightly the exception to the rule but generally that's true.)

I'm planning to use GitHub Pages to host this.  The easiest way to do this is to use a tool to generate a static site that we can put on GitHub Pages.

# Generating the static site

You're going to need a copy of [wget](http://users.ugent.be/~bpuype/wget/).

Build your app then enter this at the command line: (Visual Studio should be closed)

```
Remove-Item -path C:\GitHub\static-site -Recurse -Force

Start-Job Name RunIisExpress Scriptblock {& 'C:\Program Files (x86)\IIS Express\iisexpress.exe' /path:C:\GitHub\jQuery.Validation.Unobtrusive.Native\jVUNDemo /port:57612}

Wait-Job -Name RunIisExpress -Timeout 5

cd C:\GitHub\
wget.exe --recursive --convert-links -E --directory-prefix=static-site --no-host-directories http://localhost:57612/

Get-Job Name RunIisExpress | Stop-Job
Get-Job Name RunIisExpress | Remove-Job

# Switch to gh-pages branch and remove contents of directory
cd C:\GitHub\jQuery.Validation.Unobtrusive.Native 

git checkout gh-pages
Get-ChildItem -Attributes !r | Remove-Item -Recurse -Force

# Copy contents of C:\GitHub\static-site to C:\GitHub\jQuery.Validation.Unobtrusive.Native
copy-item -path C:\GitHub\static-site\* -Destination C:\GitHub\jQuery.Validation.Unobtrusive.Native -Recurse

{'fraction_non_alphanumeric': 0.11588411588411589, 'fraction_numerical': 0.005994005994005994, 'mean_word_length': 4.422382671480144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4581330', 'n_tokens_mistral': 936, 'n_tokens_neox': 851, 'n_words': 345}