Bugzilla – Bug 511
enable easy "no network" mode for running validator
Last modified: 2009-06-25 13:26:39 CEST
I find it currently a bit troublesome to try to run validator.nu locally in situations where I don't have a network connection. Ideally, there should be a single switch called "--nonet" or "--local-only" (or whatever), and specifying it should cause v.nu to use locally cached copies of the files with microsyntax descriptions and IANA language-registry stuff that it otherwise tries to fetch remotely. This would help people avoid the trouble of needing to manually download copies of those files themselves and point v.nu to them.
Created attachment 106 [details]
patch with proposed change
Noting "<hsivonen> MikeSmith: it might be best to commit microsyntax and alt advice into svn and handle languag tags like 3rd-party dtds" but... the attached patch treats the microsyntax and alt advice and language-tag files in the same way -- because it seems like this is the simplest way to handle them for now. This allows the existing entity-map mechanism to be used to download and store the files. If/when I have more time later, I could revisit this and try to make something a little smarter.