1. validator
  2. build

Commits

Michael[tm] Smith  committed 69fa136

The servlet now serves secondary files.

  • Participants
  • Parent commits 3871388
  • Branches default

Comments (0)

Files changed (1)

File build.py

View file
   print "                                Sets the URL for charset registry"
   print "  --about=http://about.validator.nu/"
   print "                                Sets the URL for the about page"
-  print "  --stylesheet=http://about.validator.nu/style.css"
+  print "  --stylesheet=style.css"
   print "                                Sets the URL for the style sheet"
-  print "                                Defaults to --about= plus style.css"
-  print "  --script=http://about.validator.nu/script.js"
-  print "                                Sets the URL for the style sheet"
-  print "                                Defaults to --about= plus script.js"
+  print "                                Defaults to just style.css relative to"
+  print "                                the validator URL"
+  print "  --script=script.js"
+  print "                                Sets the URL for the script"
+  print "                                Defaults to just script.js relative to"
+  print "                                the validator URL"
   print "  --microsyntax=http://wiki.whatwg.org/wiki/MicrosyntaxDescriptions"
   print "                                Sets the URL for microformat"
   print "                                descriptions"
     elif arg == 'script':
       if noSelfUpdate:
         if not stylesheet:
-          stylesheet = aboutPage + 'style.css'
+          stylesheet = 'style.css'
         if not script:
-          script = aboutPage + 'script.js'
+          script = 'script.js'
         if not icon:
-          icon = aboutPage + 'icon.png'
+          icon = 'icon.png'
         generateRunScript()
       else:
         selfUpdate()
     elif arg == 'run':
       if noSelfUpdate:
         if not stylesheet:
-          stylesheet = aboutPage + 'style.css'
+          stylesheet = 'style.css'
         if not script:
-          script = aboutPage + 'script.js'
+          script = 'script.js'
         if not icon:
-          icon = aboutPage + 'icon.png'
+          icon = 'icon.png'
         if useLocalCopies:
           ianaLang = 'file:local-entities/www.iana.org/assignments/language-subtag-registry'
           ianaCharset = 'file:local-entities/www.iana.org/assignments/character-sets'
         buildAll()
         runTests()
         if not stylesheet:
-          stylesheet = aboutPage + 'style.css'
+          stylesheet = 'style.css'
         if not script:
-          script = aboutPage + 'script.js'
+          script = 'script.js'
         if not icon:
-          icon = aboutPage + 'icon.png'
+          icon = 'icon.png'
         runValidator()
       else:
         selfUpdate()