Change 12787

eedwards (eedwards)
eedwards committed this change into //guest/perforce_software/doc_build/main/perforce/assets/publicsite/js
Request Review
Download .zip
#review-871968
Add additional hashtag processing to make it easier to
craft URLs that target specific portions of the HTML
documentation when the provided section markers are
not specific enough:

#Sxx - scroll to xx percent down the page.
       e.g. #S45 to scroll 45% down the page.

%Px - scroll to the xth "paragraph" block on the page,
      where code blocks are considered paragraphs,
      e.g. #P7 to scroll to the 7th "paragraph"

%/xx - scroll to near the first instance of the text "xx".
       Matching is case-insensitive, and the text should
       be URI encoded. Wildcards not supported.
       e.g. #/Known%20limitations

@gnicol should review.

Rendered HTML is available for experimentation:
http://ee.perforce.ca/docs/swarm.14.3/admin.security.html#S45
http://ee.perforce.ca/docs/swarm.14.3/admin.security.html#P11
http://ee.perforce.ca/docs/swarm.14.3/admin.security.html#/known%20limitations
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
perforce.js#23
Loading...
Tip: Use n and p to cycle through the changes.