diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-05-05 15:48:41 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-08-19 15:37:23 +0200 |
commit | 3ecc86c00d0df6a2a2693ba8461c47ca0ff43737 (patch) | |
tree | eec89eb77ed48208fa0cc2f49a699c1de6a9a519 /dottydoc/jvm/src | |
parent | 07e4ae210b34e64a84731133f6ea4761baa19057 (diff) | |
download | dotty-3ecc86c00d0df6a2a2693ba8461c47ca0ff43737.tar.gz dotty-3ecc86c00d0df6a2a2693ba8461c47ca0ff43737.tar.bz2 dotty-3ecc86c00d0df6a2a2693ba8461c47ca0ff43737.zip |
Fix linking (do not remove parent linking!)
Diffstat (limited to 'dottydoc/jvm/src')
-rw-r--r-- | dottydoc/jvm/src/dotty/tools/dottydoc/core/Phases.scala | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/dottydoc/jvm/src/dotty/tools/dottydoc/core/Phases.scala b/dottydoc/jvm/src/dotty/tools/dottydoc/core/Phases.scala index d2a1320a2..8fec01215 100644 --- a/dottydoc/jvm/src/dotty/tools/dottydoc/core/Phases.scala +++ b/dottydoc/jvm/src/dotty/tools/dottydoc/core/Phases.scala @@ -130,14 +130,20 @@ object Phases { totalRuns = units.length val compUnits = super.runOn(units) - // (2) Create documentation template from docstrings, with internal links + // (2) Set parents of entities, needed for linking + for { + parent <- packages.values + child <- parent.children + } setParent(child, to = parent) + + // (3) Create documentation template from docstrings, with internal links println("Generating documentation, this might take a while...") commentParser.parse(packages) - // (3) Write the finished model to JSON + // (4) Write the finished model to JSON if (!ctx.settings.YDocNoWrite.value) util.IndexWriters.writeJs(packages, "../js/out") - // (4) Clear caches + // (5) Clear caches commentParser.clear() // Return super's result |