Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
6572c7ee
Commit
6572c7ee
authored
Oct 10, 2012
by
Shenghou Ma
Committed by
Andrew Gerrand
Oct 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/godoc.js: assign tmp. id to nodes without id in generateTOC()
R=adg CC=golang-dev
https://golang.org/cl/6604062
parent
7e196d08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
godocs.js
doc/godocs.js
+2
-0
No files found.
doc/godocs.js
View file @
6572c7ee
...
...
@@ -58,6 +58,8 @@ function generateTOC() {
var
toc_items
=
[];
$
(
nav
).
nextAll
(
'h2, h3'
).
each
(
function
()
{
var
node
=
this
;
if
(
node
.
id
==
''
)
node
.
id
=
'tmp_'
+
toc_items
.
length
;
var
link
=
$
(
'<a/>'
).
attr
(
'href'
,
'#'
+
node
.
id
).
text
(
$
(
node
).
text
());
var
item
;
if
(
$
(
node
).
is
(
'h2'
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment