title: Linking to sources from scaladoc?
body: <p>I need to link to sources on github from my scaladoc. I build those docs with the sbt's <code>doc</code> task. </p>
  
  <p>There are two problems - first, I do not like creating several nested empty directories for my <code>.scala</code> files, so I usually pack them all in one - like <code>src/main/scala/org.rogach.scallop</code> instead of <code>src/main/scala/org/rogach/scallop</code>. Is there a way to make links to docs work without splitting that directory?</p>
  
  <p>Second, when I put this line in my build.sbt:</p>
  
  <pre><code>scalacOptions in (Compile, doc) ++=
    Opts.doc.sourceUrl("https://raw.github.com/Rogach/scallop/master/src/main/scala/")
  </code></pre>
  
  <p>docs contain links to sources, but all those links just point to the source root url, not files themselves. What am I doing wrong?</p>