[tools] godoc: add table of contents to Overview section

42 views
Skip to first unread message

jimmy frasche (Gerrit)

unread,
Oct 6, 2017, 3:39:19 PM10/6/17
to Ian Lance Taylor, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

jimmy frasche has uploaded this change for review.

View Change

godoc: add table of contents to Overview section

To aid navigation of large packages this creates
a table of contents from the headers in the package
comment to allow the user to quickly jump to the
relevant section.

Updates golang/go#18342

Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
---
M godoc/godoc.go
M godoc/static/package.html
M godoc/static/static.go
3 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/godoc/godoc.go b/godoc/godoc.go
index d6c27d0..9f3b6cf 100644
--- a/godoc/godoc.go
+++ b/godoc/godoc.go
@@ -72,11 +72,12 @@
"infoSnippet_html": p.infoSnippet_htmlFunc,

// formatting of AST nodes
- "node": p.nodeFunc,
- "node_html": p.node_htmlFunc,
- "comment_html": comment_htmlFunc,
- "comment_text": comment_textFunc,
- "sanitize": sanitizeFunc,
+ "node": p.nodeFunc,
+ "node_html": p.node_htmlFunc,
+ "comment_html": comment_htmlFunc,
+ "package_comment_html": package_comment_htmlFunc,
+ "comment_text": comment_textFunc,
+ "sanitize": sanitizeFunc,

// support for URL attributes
"pkgLink": pkgLinkFunc,
@@ -347,6 +348,31 @@
return buf.String()
}

+var headerRx = regexp.MustCompile(`<h3 id="([^"]+)">([^<]+)</h3>`)
+
+func package_comment_htmlFunc(comment string) string {
+ var inner, outer bytes.Buffer
+ doc.ToHTML(&inner, comment, nil)
+ // Extract headers. It would be better to do this by iterating go/doc blocks.
+ matches := headerRx.FindAllSubmatch(inner.Bytes(), -1)
+ if len(matches) == 0 {
+ // No headers, so nothing special to do.
+ return inner.String()
+ }
+ outer.WriteString("<dl><dt>Sections</dt>")
+ for _, match := range matches {
+ id, nm := match[1], match[2]
+ outer.WriteString(`<dd><a href="#`)
+ outer.Write(id)
+ outer.WriteString(`">`)
+ outer.Write(nm)
+ outer.WriteString("</a></dd>")
+ }
+ outer.WriteString("</dl>")
+ outer.ReadFrom(&inner)
+ return outer.String()
+}
+
// punchCardWidth is the number of columns of fixed-width
// characters to assume when wrapping text. Very few people
// use terminals or cards smaller than 80 characters, so 80 it is.
diff --git a/godoc/static/package.html b/godoc/static/package.html
index 1d2d1e3..339b17e 100644
--- a/godoc/static/package.html
+++ b/godoc/static/package.html
@@ -42,7 +42,7 @@
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Overview section">Overview â–¾</h2>
- {{comment_html .Doc}}
+ {{package_comment_html .Doc}}
</div>
</div>
{{example_html $ ""}}
diff --git a/godoc/static/static.go b/godoc/static/static.go
index 7a5618f..9be129d 100644
--- a/godoc/static/static.go
+++ b/godoc/static/static.go
@@ -1695,7 +1695,7 @@
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Overview section">Overview â–¾</h2>
- {{comment_html .Doc}}
+ {{package_comment_html .Doc}}
</div>
</div>
{{example_html $ ""}}

To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
Gerrit-Change-Number: 69030
Gerrit-PatchSet: 1
Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>

jimmy frasche (Gerrit)

unread,
May 21, 2018, 7:50:08 PM5/21/18
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

jimmy frasche uploaded patch set #2 to this change.

View Change

x/tools/cmd/godoc: add table of contents for Overview section


To aid navigation of large packages this creates
a table of contents from the headers in the package
comment to allow the user to quickly jump to the
relevant section. It also unifies the short nav
to provide a more complete top-level table of contents.


Updates golang/go#18342

Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
---
M godoc/godoc.go
M godoc/static/package.html
M godoc/static/static.go
3 files changed, 38 insertions(+), 9 deletions(-)

To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
Gerrit-Change-Number: 69030
Gerrit-PatchSet: 2
Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
Gerrit-MessageType: newpatchset

jimmy frasche (Gerrit)

unread,
May 21, 2018, 7:53:40 PM5/21/18
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

jimmy frasche uploaded patch set #3 to this change.

View Change

x/tools/cmd/godoc: add table of contents for Overview section


To aid navigation of large packages this creates
a table of contents from the headers in the package
comment to allow the user to quickly jump to the
relevant section. It also unifies the short nav
to provide a more complete top-level table of contents.

Updates golang/go#25449


Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
---
M godoc/godoc.go
M godoc/static/package.html
M godoc/static/static.go
3 files changed, 38 insertions(+), 9 deletions(-)

To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
Gerrit-Change-Number: 69030
Gerrit-PatchSet: 3

Yury Smolsky (Gerrit)

unread,
May 22, 2018, 5:21:18 PM5/22/18
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Can you provide a screenshot with big table of contents?

View Change

    To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
    Gerrit-Change-Number: 69030
    Gerrit-PatchSet: 3
    Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
    Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
    Gerrit-Comment-Date: Tue, 22 May 2018 21:21:15 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    jimmy frasche (Gerrit)

    unread,
    May 22, 2018, 5:36:22 PM5/22/18
    to goph...@pubsubhelper.golang.org, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

    Patch Set 3:

    Can you provide a screenshot with big table of contents?

    https://i.imgur.com/9xhNZcC.png

    Note that the repeated Overview is because the docs have their own Overview header.

    View Change

      To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: tools
      Gerrit-Branch: master
      Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
      Gerrit-Change-Number: 69030
      Gerrit-PatchSet: 3
      Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
      Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
      Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
      Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
      Gerrit-Comment-Date: Tue, 22 May 2018 21:36:20 +0000

      Agniva De Sarker (Gerrit)

      unread,
      May 23, 2018, 12:38:22 AM5/23/18
      to goph...@pubsubhelper.golang.org, Yury Smolsky, golang-co...@googlegroups.com

      Thanks ! Please add the hashtag "wait-release". R=Go1.12.

      Also, I think https://golang.org/pkg/html/template/ might provide a better screenshot example. Since it does not have the "Overview" sub-header.

      View Change

        To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: tools
        Gerrit-Branch: master
        Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
        Gerrit-Change-Number: 69030
        Gerrit-PatchSet: 3
        Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
        Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
        Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
        Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
        Gerrit-Comment-Date: Wed, 23 May 2018 04:38:13 +0000

        jimmy frasche (Gerrit)

        unread,
        May 23, 2018, 12:59:18 AM5/23/18
        to goph...@pubsubhelper.golang.org, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

        Thanks ! Please add the hashtag "wait-release". R=Go1.12.

        Done

        Also, I think https://golang.org/pkg/html/template/ might provide a better screenshot example. Since it does not have the "Overview" sub-header.

        Provided https://i.imgur.com/68YA2Td.png

        That's a good one.

        View Change

          To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: tools
          Gerrit-Branch: master
          Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
          Gerrit-Change-Number: 69030
          Gerrit-PatchSet: 3
          Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
          Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
          Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
          Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
          Gerrit-Comment-Date: Wed, 23 May 2018 04:59:17 +0000

          Agniva De Sarker (Gerrit)

          unread,
          Aug 21, 2018, 12:09:45 AM8/21/18
          to goph...@pubsubhelper.golang.org, Yury Smolsky, golang-co...@googlegroups.com

          Jimmy - Would you like to do a fresh rebase and get this ready for review ?

          View Change

            To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: tools
            Gerrit-Branch: master
            Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
            Gerrit-Change-Number: 69030
            Gerrit-PatchSet: 3
            Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
            Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
            Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
            Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
            Gerrit-Comment-Date: Tue, 21 Aug 2018 04:09:42 +0000

            jimmy frasche (Gerrit)

            unread,
            Aug 24, 2018, 10:22:27 AM8/24/18
            to goph...@pubsubhelper.golang.org, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

            jimmy frasche uploaded patch set #4 to this change.

            View Change

            x/tools/cmd/godoc: add table of contents for Overview section

            To aid navigation of large packages, this creates

            a table of contents from the headers in the package
            comment allowing the user to quickly jump to the

            relevant section. It also unifies the short nav
            to provide a more complete top-level table of contents.

            Fixes golang/go#25449


            Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
            ---
            M godoc/godoc.go
            M godoc/static/package.html
            M godoc/static/static.go
            3 files changed, 33 insertions(+), 8 deletions(-)

            To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: tools
            Gerrit-Branch: master
            Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
            Gerrit-Change-Number: 69030
            Gerrit-PatchSet: 4
            Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
            Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
            Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
            Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
            Gerrit-MessageType: newpatchset

            jimmy frasche (Gerrit)

            unread,
            Aug 24, 2018, 10:28:00 AM8/24/18
            to goph...@pubsubhelper.golang.org, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

            Patch Set 3:

            Jimmy - Would you like to do a fresh rebase and get this ready for review ?

            Done.

            View Change

              To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: tools
              Gerrit-Branch: master
              Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
              Gerrit-Change-Number: 69030
              Gerrit-PatchSet: 4
              Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
              Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
              Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
              Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
              Gerrit-Comment-Date: Fri, 24 Aug 2018 14:27:58 +0000

              Agniva De Sarker (Gerrit)

              unread,
              Aug 31, 2018, 5:59:28 AM8/31/18
              to goph...@pubsubhelper.golang.org, Andrew Bonventre, Yury Smolsky, golang-co...@googlegroups.com

              Patch Set 4:

              Patch Set 3:

              Jimmy - Would you like to do a fresh rebase and get this ready for review ?

              Done.

              Sorry for the radio silence. I've been meaning to take a look at this. Probably this weekend.

              In the mean while, adding Andy so that he can take a look whenever he is back.

              View Change

                To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: tools
                Gerrit-Branch: master
                Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                Gerrit-Change-Number: 69030
                Gerrit-PatchSet: 4
                Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
                Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                Gerrit-Comment-Date: Fri, 31 Aug 2018 09:59:24 +0000

                Agniva De Sarker (Gerrit)

                unread,
                Sep 2, 2018, 6:30:19 AM9/2/18
                to goph...@pubsubhelper.golang.org, Andrew Bonventre, Yury Smolsky, golang-co...@googlegroups.com

                Really sad that we have to regex-ify the html. But I don't see any other solution unless we get a new api from go/doc.

                View Change

                7 comments:

                To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: tools
                Gerrit-Branch: master
                Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                Gerrit-Change-Number: 69030
                Gerrit-PatchSet: 4
                Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
                Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                Gerrit-Comment-Date: Sun, 02 Sep 2018 10:30:15 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Gerrit-MessageType: comment

                jimmy frasche (Gerrit)

                unread,
                Sep 3, 2018, 10:50:57 PM9/3/18
                to Andrew Bonventre, goph...@pubsubhelper.golang.org, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

                jimmy frasche uploaded patch set #5 to this change.

                View Change

                godoc: add table of contents for Overview section

                To aid navigation of large packages, this creates

                a table of contents from the headers in the package
                comment allowing the user to quickly jump to the
                relevant section. It also unifies the short nav
                to provide a more complete top-level table of contents.

                Fixes golang/go#25449

                Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                ---
                M godoc/godoc.go
                M godoc/static/package.html
                M godoc/static/static.go
                3 files changed, 34 insertions(+), 8 deletions(-)

                To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: tools
                Gerrit-Branch: master
                Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                Gerrit-Change-Number: 69030
                Gerrit-PatchSet: 5
                Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
                Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                Gerrit-MessageType: newpatchset

                jimmy frasche (Gerrit)

                unread,
                Sep 3, 2018, 10:51:41 PM9/3/18
                to goph...@pubsubhelper.golang.org, Andrew Bonventre, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

                View Change

                7 comments:

                  • Done

                  • Quotes aren't compulsory in an attribute value. Also, single-quotes are valid too. […]

                    I don't want to attempt to parse html with a regex. It feels really gross even doing this but the fact that it comes from a single, slow changing source under the same umbrella as this code makes it not entirely unacceptable. Just gross. It would be best if go/doc exposed the parse tree so there'd be no need for shenanigans.

                  • Patch Set #4, Line 358: overviewHeader

                  • Maybe "overviewHeader" is a better name ?

                  • Done

                  • Yes, and that would be the correct thing to do. I went with what all the other code is doing for consistency.

                To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: tools
                Gerrit-Branch: master
                Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                Gerrit-Change-Number: 69030
                Gerrit-PatchSet: 5
                Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                Gerrit-CC: Agniva De Sarker <agniva.qu...@gmail.com>
                Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                Gerrit-Comment-Date: Tue, 04 Sep 2018 02:51:39 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: Agniva De Sarker <agniva.qu...@gmail.com>
                Gerrit-MessageType: comment

                Agniva De Sarker (Gerrit)

                unread,
                Sep 3, 2018, 11:33:25 PM9/3/18
                to goph...@pubsubhelper.golang.org, Andrew Bonventre, Yury Smolsky, golang-co...@googlegroups.com

                Patch set 5:Code-Review +1

                View Change

                  To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                  Gerrit-Project: tools
                  Gerrit-Branch: master
                  Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                  Gerrit-Change-Number: 69030
                  Gerrit-PatchSet: 5
                  Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                  Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                  Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                  Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                  Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                  Gerrit-Comment-Date: Tue, 04 Sep 2018 03:33:20 +0000
                  Gerrit-HasComments: No
                  Gerrit-Has-Labels: Yes
                  Gerrit-MessageType: comment

                  Brad Fitzpatrick (Gerrit)

                  unread,
                  Oct 10, 2018, 10:32:26 PM10/10/18
                  to goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Dmitri Shuralyov, Andrew Bonventre, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

                  Sorry, you'll need to rebase & re-run go generate for the static stuff.

                  View Change

                    To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-Project: tools
                    Gerrit-Branch: master
                    Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                    Gerrit-Change-Number: 69030
                    Gerrit-PatchSet: 5
                    Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                    Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                    Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                    Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
                    Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                    Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
                    Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                    Gerrit-Comment-Date: Thu, 11 Oct 2018 02:32:24 +0000

                    jimmy frasche (Gerrit)

                    unread,
                    Oct 10, 2018, 10:44:40 PM10/10/18
                    to Agniva De Sarker, Dmitri Shuralyov, Andrew Bonventre, goph...@pubsubhelper.golang.org, Yury Smolsky, Brad Fitzpatrick, golang-co...@googlegroups.com

                    jimmy frasche uploaded patch set #6 to this change.

                    View Change

                    godoc: add table of contents for Overview section

                    To aid navigation of large packages, this creates

                    a table of contents from the headers in the package
                    comment allowing the user to quickly jump to the
                    relevant section. It also unifies the short nav
                    to provide a more complete top-level table of contents.

                    Fixes golang/go#25449

                    Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                    ---
                    M godoc/godoc.go
                    M godoc/static/package.html
                    M godoc/static/static.go
                    3 files changed, 33 insertions(+), 7 deletions(-)

                    To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-Project: tools
                    Gerrit-Branch: master
                    Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                    Gerrit-Change-Number: 69030
                    Gerrit-PatchSet: 6
                    Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                    Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                    Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                    Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
                    Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                    Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
                    Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                    Gerrit-MessageType: newpatchset

                    jimmy frasche (Gerrit)

                    unread,
                    Oct 10, 2018, 10:48:48 PM10/10/18
                    to goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Dmitri Shuralyov, Andrew Bonventre, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

                    oops, didn't mean to mail that

                    View Change

                      To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                      Gerrit-Project: tools
                      Gerrit-Branch: master
                      Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                      Gerrit-Change-Number: 69030
                      Gerrit-PatchSet: 6
                      Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                      Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                      Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                      Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
                      Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                      Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
                      Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                      Gerrit-Comment-Date: Thu, 11 Oct 2018 02:48:46 +0000

                      jimmy frasche (Gerrit)

                      unread,
                      Oct 10, 2018, 10:57:50 PM10/10/18
                      to Agniva De Sarker, Dmitri Shuralyov, Andrew Bonventre, goph...@pubsubhelper.golang.org, Yury Smolsky, Brad Fitzpatrick, golang-co...@googlegroups.com

                      jimmy frasche uploaded patch set #7 to this change.

                      View Change

                      godoc: add table of contents for Overview section

                      To aid navigation of large packages, this creates

                      a table of contents from the headers in the package
                      comment allowing the user to quickly jump to the
                      relevant section. It also unifies the short nav
                      to provide a more complete top-level table of contents.

                      Fixes golang/go#25449

                      Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                      ---
                      M godoc/godoc.go
                      M godoc/static/package.html
                      M godoc/static/static.go
                      3 files changed, 33 insertions(+), 7 deletions(-)

                      To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                      Gerrit-Project: tools
                      Gerrit-Branch: master
                      Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                      Gerrit-Change-Number: 69030
                      Gerrit-PatchSet: 7
                      Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                      Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                      Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                      Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
                      Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                      Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
                      Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                      Gerrit-MessageType: newpatchset

                      jimmy frasche (Gerrit)

                      unread,
                      Oct 10, 2018, 10:58:40 PM10/10/18
                      to goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Dmitri Shuralyov, Andrew Bonventre, Agniva De Sarker, Yury Smolsky, golang-co...@googlegroups.com

                      that one I meant

                      View Change

                        To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                        Gerrit-Project: tools
                        Gerrit-Branch: master
                        Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                        Gerrit-Change-Number: 69030
                        Gerrit-PatchSet: 7
                        Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                        Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                        Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
                        Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                        Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
                        Gerrit-CC: Yury Smolsky <yu...@smolsky.by>
                        Gerrit-Comment-Date: Thu, 11 Oct 2018 02:58:38 +0000

                        Andrew Bonventre (Gerrit)

                        unread,
                        Sep 30, 2019, 7:27:26 PM9/30/19
                        to goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Dmitri Shuralyov, Agniva De Sarker, golang-co...@googlegroups.com

                        @dmitshur are we going forward with this?

                        View Change

                        1 comment:

                        To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                        Gerrit-Project: tools
                        Gerrit-Branch: master
                        Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                        Gerrit-Change-Number: 69030
                        Gerrit-PatchSet: 7
                        Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                        Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                        Gerrit-Reviewer: Andrew Bonventre <andy...@golang.org>
                        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
                        Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                        Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
                        Gerrit-Comment-Date: Mon, 30 Sep 2019 23:27:22 +0000
                        Gerrit-HasComments: Yes
                        Gerrit-Has-Labels: No
                        Gerrit-MessageType: comment

                        Ian Lance Taylor (Gerrit)

                        unread,
                        May 6, 2020, 9:12:24 PM5/6/20
                        to goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Dmitri Shuralyov, Agniva De Sarker, golang-co...@googlegroups.com

                        I'm not sure what the status of this change is. Do we still want this?

                        View Change

                          To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                          Gerrit-Project: tools
                          Gerrit-Branch: master
                          Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                          Gerrit-Change-Number: 69030
                          Gerrit-PatchSet: 7
                          Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                          Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                          Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
                          Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                          Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
                          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                          Gerrit-Comment-Date: Thu, 07 May 2020 01:12:19 +0000

                          Dmitri Shuralyov (Gerrit)

                          unread,
                          May 6, 2020, 9:44:12 PM5/6/20
                          to goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Julie Qiu, Ian Lance Taylor, Brad Fitzpatrick, Agniva De Sarker, golang-co...@googlegroups.com

                          This fell off my list, unfortunately. I'll try to look.

                          This CL fixes an issue with Proposal-Accepted label.

                          However, it's worth to consider the original issue in regard to UX work that is being done as part of pkg.go.dev. It's likely we want to keep documentation rendering in sync between golang.org and pkg.go.dev.

                          View Change

                            To view, visit change 69030. To unsubscribe, or for help writing mail filters, visit settings.

                            Gerrit-Project: tools
                            Gerrit-Branch: master
                            Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                            Gerrit-Change-Number: 69030
                            Gerrit-PatchSet: 7
                            Gerrit-Owner: jimmy frasche <soapbo...@gmail.com>
                            Gerrit-Reviewer: Agniva De Sarker <agniva.qu...@gmail.com>
                            Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
                            Gerrit-Reviewer: jimmy frasche <soapbo...@gmail.com>
                            Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
                            Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
                            Gerrit-CC: Julie Qiu <ju...@golang.org>
                            Gerrit-Comment-Date: Thu, 07 May 2020 01:44:07 +0000

                            Sean Liao (Gerrit)

                            unread,
                            Apr 13, 2025, 2:08:41 PM4/13/25
                            to goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Ian Lance Taylor, Brad Fitzpatrick, Agniva De Sarker, golang-co...@googlegroups.com

                            Sean Liao abandoned this change

                            Related details

                            Attention set is empty
                            Submit Requirements:
                            • requirement is not satisfiedCode-Review
                            • requirement is not satisfiedNo-Unresolved-Comments
                            • requirement is not satisfiedReview-Enforcement
                            • requirement is not satisfiedTryBots-Pass
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: abandon
                            Gerrit-Project: tools
                            Gerrit-Branch: master
                            Gerrit-Change-Id: I0e348509d3660d3a665505b5ee1e01c44d13d924
                            Gerrit-Change-Number: 69030
                            unsatisfied_requirement
                            open
                            diffy
                            Reply all
                            Reply to author
                            Forward
                            0 new messages