Open phil294 opened 2 years ago
Might need to declare it a failed experiment, at least in the current approach. Given the compiler packages don't ship the vendored in markd sources, I don't see a sane way to go forward. That said:
diff --git a/src/generator/doc.cr b/src/generator/doc.cr
index 6d039a98..ac4c257a 100644
--- a/src/generator/doc.cr
+++ b/src/generator/doc.cr
@@ -2,7 +2,7 @@ require "xml"
require "option_parser"
require "../g_i_repository"
require "./namespace"
-require "compiler/crystal/**"
+require "compiler/requires"
module Crystal::Config
def self.path
$ cd /opt/homebrew/Cellar/crystal/1.5.0/share/crystal/
$ mkdir lib
$ cd lib
$ git clone https://github.com/icyleaf/markd.git
$ cd ~/projects/crystal-gobject
$ shards build gi-doc
$ CRYSTAL_PATH="$(crystal env CRYSTAL_PATH):samples/lib" CRYSTAL_LIBRARY_PATH="$(crystal env CRYSTAL_LIBRARY_PATH)" bin/gi-doc -g $(brew --prefix)/share/gir-1.0 GObject
Docs written to docs/gobject
$ ls docs/gobject
404.html Float32.html GLib.html Gio.html Int8.html String.html UInt8.html index.json toplevel.html
Bool.html Float64.html GObject Int32.html Object.html UInt32.html css js
Enum.html GLib GObject.html Int64.html Pointer.html UInt64.html index.html search-index.js
😅 🤣
After a clean clone,
shards run gi-doc
showserror trace
Thanks for all your work. This shard is so meta, it's fascinating to read through the source.