mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5892 from jbampton/rake-doc-capi-graphviz
rake doc: C API needs both Doxygen and Graphviz
This commit is contained in:
@@ -52,7 +52,7 @@ See the [compile.md](doc/guides/compile.md) file for the detail.
|
||||
|
||||
## Building documentation
|
||||
|
||||
There are two sets of documentation in mruby: the mruby API (generated by yard) and C API (Doxygen)
|
||||
There are two sets of documentation in mruby: the mruby API (generated by yard) and C API (Doxygen and Graphviz)
|
||||
|
||||
To build both of them, simply go
|
||||
|
||||
|
||||
+6
-4
@@ -19,13 +19,15 @@ namespace :doc do
|
||||
begin
|
||||
sh "doxygen Doxyfile"
|
||||
rescue
|
||||
puts "ERROR: To generate C API documents, you need Doxygen."
|
||||
puts "ERROR: To generate C API documents, you need Doxygen and Graphviz."
|
||||
puts "On Debian-based systems:"
|
||||
puts " $ sudo apt-get install doxygen"
|
||||
puts " $ sudo apt-get install doxygen graphviz"
|
||||
puts "On RHEL-based systems:"
|
||||
puts " $ sudo dnf install doxygen"
|
||||
puts " $ sudo dnf install doxygen graphviz"
|
||||
puts "On macOS-based systems:"
|
||||
puts " $ brew install doxygen"
|
||||
puts " $ brew install doxygen graphviz"
|
||||
puts "https://www.doxygen.nl/"
|
||||
puts "https://graphviz.org/"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user