about summary refs log tree commit diff
path: root/pkgs/applications/misc/rtfm/patches/friendly-docs-path.patch
blob: cecbeb750b3003178198f6d6c131e22ec06c75df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/create_gtk_docset.cr	2023-07-17 14:28:04.882620660 +0300
+++ b/src/create_gtk_docset.cr	2023-07-17 14:27:09.660643747 +0300
@@ -136,7 +136,7 @@
 end
 
 def find_modules : Array(Path)
-  basedir = Path.new("/usr/share/doc")
+  basedir = Path.new(ARGV[0]? || "gtk-docs")
   MODULES.compact_map do |mod|
     print "#{mod.ljust(20, '.')}"
     mod_dir = basedir.join(mod)