1. 26 May, 2014 3 commits
  2. 20 May, 2014 5 commits
  3. 19 May, 2014 10 commits
  4. 16 May, 2014 4 commits
  5. 15 May, 2014 2 commits
  6. 14 May, 2014 3 commits
  7. 13 May, 2014 13 commits
    • Lasse Karstensen's avatar
      Use vmodtool.py in strict mode by default. · 30f66716
      Lasse Karstensen authored
      Use the strict parsing mode (still infant) to be sure
      that our own vmod.vcc files are valid.
      30f66716
    • Lasse Karstensen's avatar
      Remove unused description. · 92c94665
      Lasse Karstensen authored
      This description isn't used anywhere, and it doesn't contain
      much useful information.
      92c94665
    • Lasse Karstensen's avatar
      Add option parser, error handling and strictness. · 96c0ae47
      Lasse Karstensen authored
      This is one of those tiny jobs you start on (add --strict),
      and then it just goes downhill from there.
      
      Main changes:
      * Use optparse to parse command line arguments.
      * With --strict it aborts if a parse or format error is seen.
      * A basic test case for the parser has been added.
      
      No changes were made to the parser or output format.
      
      Adding the test case meant reordering the execution flow.
      
      Since Varnish code standard is using tabs, I've kept this to my
      best ability. Pylint is not happy about this and give the code
      a score of -4 out of 10 points. :-)
      96c0ae47
    • Lasse Karstensen's avatar
      Remove remaining references to vcl-intro.rst. · d2358fd4
      Lasse Karstensen authored
      These hard-code references were forgotten when I
      removed this file in ebbd8288.
      d2358fd4
    • Lasse Karstensen's avatar
      Disable parallel build due to old sphinx. · 57136c23
      Lasse Karstensen authored
      The sphinx version on git.varnish-cache.org is v1.1.8 which
      hasn't got -j.
      
      In sphinx v1.2.2 (debian jessie) it is in place.
      
      Guess we'll have to live with those extra 820 milliseconds
      per build for now.
      57136c23
    • Lasse Karstensen's avatar
      Increase Sphinx strictness. · 9acf7dcc
      Lasse Karstensen authored
      Warnings are now considered build errors.
      
      We've been shipping documentation with sections missing
      because we didn't take warnings seriously.
      
      Bonus change: build in parallel, save 82 centiseconds per build!
      (html target on my laptop, ymmv)
      9acf7dcc
    • Lasse Karstensen's avatar
      Put vmod docs back into the documentation. · 57a46f02
      Lasse Karstensen authored
      Squashing Sphinx warnings revealed that the vmod_std and
      vmod_directors includes wasn't working.
      
      Move the generated files a bit so Sphinx is happy to load them.
      
      I'm not using include (where relative paths seem to work)
      since that works differently in a TOC listing.
      57a46f02
    • Lasse Karstensen's avatar
      Delete unreferenced file vcl-intro.rst. · ebbd8288
      Lasse Karstensen authored
      Sphinx complains that this file isn't referenced
      anywhere, and a quick glance indicate that the contents
      have been merged into other rst files.
      ebbd8288
    • Lasse Karstensen's avatar
      Halt rst2man/rst2html on warnings. · 4141e7a4
      Lasse Karstensen authored
      We don't allow compiler warnings in the C code, so I don't see any
      reason why we should allow warnings in the documentation.
      
      Warnings in the documentation are now build errors.
      4141e7a4
    • Lasse Karstensen's avatar
      Output RST comment with enough linefeeds. · 8fb3ea68
      Lasse Karstensen authored
      Empty RST comments need an extra empty line afterwards, re this output
      from rst2man:
      
          (WARNING/2) Explicit markup ends without a blank line; unexpected unindent
      8fb3ea68
    • Lasse Karstensen's avatar
      Remove text block dividers just added. · fb1e33d8
      Lasse Karstensen authored
      This made it easier to see where objects started/stopped, but
      vmodtool.py don't believe in this comment format. Especially rst2man
      wasn't impressed, so roll back for now.
      fb1e33d8
    • Lasse Karstensen's avatar
      Output autogen-msg to .rst; pythonify a bit. · 2180ad2b
      Lasse Karstensen authored
      Write a header in generated .rst files that it was generated from the
      .vcc file.
      
      Also softly sprinkled with some python formatting:
      * use a python 2.5 context manager for the filepointer
      * and make the output easier to read by avoiding concatination.
      2180ad2b
    • Lasse Karstensen's avatar
      Output correct tool name. · 7a2a9836
      Lasse Karstensen authored
      And avoid hardcoding it, in case we change it in the future
      some time.
      7a2a9836