in lib/gitlab/navigation/doc.rb [33:36]
def children @children ||= doc.fetch(:docs, []).map { |nested_doc| Doc.new(nested_doc) } end