rake doc: C API needs both Doxygen and Graphviz

https://www.doxygen.nl/

https://graphviz.org/download/
This commit is contained in:
John Bampton
2022-12-30 09:05:13 +10:00
parent d437182f79
commit e9b69c611d
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -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