Method: XcodePages.doxygen_docset_install
- Defined in:
- lib/XcodePages.rb
.doxygen_docset_install ⇒ Object
Runs Doxygen and installs the Apple DocSet in the current user’s shared documentation folder. Finally, as a courtesy, it tells Xcode about the change; signalling an update in your running Xcode IDE. Documentation updates immediately.
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/XcodePages.rb', line 135 def self.doxygen_docset_install doxygen %x(cd #{html_output_directory} ; make install) script = Tempfile.open(['XcodePages', '.scpt']) do |script| script.puts " tell application \"Xcode\"\n EOF\n Dir.glob(File.join(html_output_directory, '*.docset')).each do |docset_path|\n script.puts <<-EOF\n load documentation set with path \"\#{ENV['HOME']}/Library/Developer/Shared/Documentation/DocSets/\#{File.basename(docset_path)}\"\n EOF\n end\n script.puts <<-EOF\n end tell\n EOF\n script.close\n %x(osascript \#{script.path})\n end\nend\n" |