~ubuntu-branches/ubuntu/utopic/ctioga2/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/ctioga2/commands/doc/documentation-commands.rb

  • Committer: Package Import Robot
  • Author(s): Vincent Fourmond
  • Date: 2014-03-17 22:29:58 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140317222958-mo23o3mhmblq1yyc
Tags: 0.10-1
New upstream release (yeah, I should package intermediate versions)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
Writes a manual page based on a template
50
50
EOH
51
51
 
 
52
      WriteHTMLOptions = {
 
53
        'page-menu' => CmdArg.new('text')
 
54
      }
52
55
 
53
56
      WriteHTMLCommands = 
54
57
        Cmd.new("write-html-commands", nil, "--write-html-commands", 
55
 
                []) do |plotmaker|
 
58
                [], WriteHTMLOptions) do |plotmaker, opts|
56
59
        html = HTML.new(plotmaker.interpreter.doc)
57
 
        html.write_commands()
 
60
        html.write_commands(opts)
58
61
      end
59
62
      
60
63
      WriteHTMLCommands.describe("HTML documentation for group and commands",
62
65
Prints the HTML documentation for group and commands to standard output.
63
66
EOH
64
67
 
 
68
      WriteHTMLFunctions = 
 
69
        Cmd.new("write-html-functions", nil, "--write-html-functions", 
 
70
                [], WriteHTMLOptions) do |plotmaker, opts|
 
71
        html = HTML.new(plotmaker.interpreter.doc)
 
72
        html.write_functions(opts)
 
73
      end
 
74
      
 
75
      WriteHTMLFunctions.describe("HTML documentation for functions",
 
76
                                 <<EOH, DocumentationGenerationGroup)
 
77
Prints the HTML documentation for functions.
 
78
EOH
 
79
 
65
80
      WriteHTMLTypes = 
66
81
        Cmd.new("write-html-types", nil, "--write-html-types", 
67
 
                []) do |plotmaker|
 
82
                [], WriteHTMLOptions) do |plotmaker, opts|
68
83
        html = HTML.new(plotmaker.interpreter.doc)
69
 
        html.write_types()
 
84
        html.write_types(opts)
70
85
      end
71
86
      
72
87
      WriteHTMLTypes.describe("HTML documentation for types",
76
91
 
77
92
      WriteHTMLBackends = 
78
93
        Cmd.new("write-html-backends", nil, "--write-html-backends", 
79
 
                []) do |plotmaker|
 
94
                [], WriteHTMLOptions) do |plotmaker, opts|
80
95
        html = HTML.new(plotmaker.interpreter.doc)
81
 
        html.write_backends()
 
96
        html.write_backends(opts)
82
97
      end
83
98
      
84
99
      WriteHTMLBackends.describe("HTML documentation for backends",
89
104
 
90
105
      WriteHTMLCommandLineOptions = 
91
106
        Cmd.new("write-html-commandline", nil, "--write-html-commandline", 
92
 
                []) do |plotmaker|
 
107
                [], WriteHTMLOptions) do |plotmaker, opts|
93
108
        html = HTML.new(plotmaker.interpreter.doc)
94
 
        html.write_command_line_options()
 
109
        html.write_command_line_options(opts)
95
110
      end
96
111
      
97
112
      WriteHTMLCommandLineOptions.describe("HTML documentation for types",