Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1b419d4ef573
Choose a base ref
...
head repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 74a30e80a6ab
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 20, 2017

  1. Copy the full SHA
    4075f9c View commit details
  2. Merge pull request #5152 from asterite/bug/3072-docs-dont-link-libs

    Docs: don't link libs or types inside libs
    asterite authored Oct 20, 2017
    Copy the full SHA
    74a30e8 View commit details
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/compiler/crystal/tools/doc/generator.cr
3 changes: 3 additions & 0 deletions src/compiler/crystal/tools/doc/generator.cr
Original file line number Diff line number Diff line change
@@ -113,6 +113,9 @@ class Crystal::Doc::Generator
return false if nodoc?(type)
return true if crystal_builtin?(type)

# Don't include lib types or types inside a lib type
return false if type.is_a?(Crystal::LibType) || type.namespace.is_a?(LibType)

type.locations.try &.any? do |type_location|
must_include? type_location
end