diff --git a/Makefile b/Makefile
index 004dcf7c7..5f047934d 100644
--- a/Makefile
+++ b/Makefile
@@ -301,7 +301,7 @@ site: push
 # We munge haddock and hoogle into a rough but useful framed layout.
 # For this to work the hoogle cgi must be built with base target "main".
 # XXX move the framed index building into haddock: ?
-apidocs: haddock hscolour #hoogle
+apidocs: haddock hscolour #sourcegraph #hoogle
 	sed -i -e 's%^>website/api-doc/hscolour.css
 
+sourcegraph:
+	-SourceGraph hledger.cabal
+	-cd hledger-lib; SourceGraph hledger-lib.cabal
+
 #set up the hoogle web interface
 #uses a hoogle source tree configured with --datadir=., patched to fix haddock urls/target frame
 HOOGLESRC=/usr/local/src/hoogle
diff --git a/README2 b/README2
index 8a55dbd16..2b85d40b3 100644
--- a/README2
+++ b/README2
@@ -24,10 +24,13 @@ hledger is free software by `Simon Michael`_ & `co.`_, released under GNU GPLv3.
 **Develop**
  ``darcs get http://joyful.com/repos/hledger``, 
  `browse the repo`_, 
- `code docs`_, 
  `hackage page`_, 
- notes_, 
- benchmark_\/profile_\/heap_\/coverage_ reports
+ `hledger-lib api docs`_, 
+ `hledger api docs`_, 
+ `hledger-lib sourcegraph report`_, 
+ `hledger sourcegraph report`_, 
+ benchmark_\/profile_\/heap_\/coverage_ reports,
+ `developer notes`_
 
 .. raw:: html
  
@@ -67,8 +70,11 @@ hledger is free software by `Simon Michael`_ & `co.`_, released under GNU GPLv3.
 .. _manual:               MANUAL.html
 .. _news:                 NEWS.html
 .. _screenshots:          SCREENSHOTS.html
-.. _code docs:            http://hledger.org/api-doc
-.. _notes:                http://joyful.com/darcsweb/darcsweb.cgi?r=hledger;a=plainblob;f=/NOTES
+.. _hledger-lib api docs: http://joyful.com/repos/hledger/hledger-lib/dist/doc/html/hledger-lib/index.html
+.. _hledger api docs:     http://hledger.org/api-doc
+.. _hledger-lib sourcegraph report: http://joyful.com/repos/hledger/hledger-lib/SourceGraph/hledger-lib.html
+.. _hledger sourcegraph report: http://joyful.com/repos/hledger/SourceGraph/hledger.html
+.. _developer notes:      http://joyful.com/darcsweb/darcsweb.cgi?r=hledger;a=plainblob;f=/NOTES
 .. _benchmark:            http://hledger.org/profs/latest.bench
 .. _profile:              http://hledger.org/profs/latest.prof
 .. _heap:                 http://hledger.org/profs/latest.ps