Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Link to documentation in navigation bar (and search bar) (GreaseMonkey script)  (Read 7452 times)

0 Members and 1 Guest are viewing this topic.

spacechase0

  • Newbie
  • *
  • Posts: 39
    • AOL Instant Messenger - thespacechase0
    • View Profile
    • http://spacechase0.com/
This adds a "DOCS" link to the navigation bar leading to the SFML 2.0 2.4..2 class list (in a new tab).

(10/21/2012: Added search box)
(05/07/2013: Fixed for new forum header, fixed bug with going to main forum page on form submit.)
(05/09/2017: Fixed for https and changed docs version to 2.4.2)

I just thought other people might find it useful. :P

(Old version for slightly larger search box here.)
(Old version for old forum header here.)
(Old version with just the link here.)
« Last Edit: May 09, 2017, 08:40:39 pm by spacechase0 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Link to documentation in navigation bar (GreaseMonkey script)
« Reply #1 on: October 08, 2012, 05:31:12 pm »
Cool nice little addition which makes helping people out a bit easier!
Thanks! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

spacechase0

  • Newbie
  • *
  • Posts: 39
    • AOL Instant Messenger - thespacechase0
    • View Profile
    • http://spacechase0.com/
Uploaded a new one that adds a documentation "search" area in the top right corner:



It can take a module name (like "network" or "audio", case insensitive) or a class name with or without "sf::" (case sensitive, since page URLs are case sensitive).

I also added a few variables to the top that lets you change the documentation version (DOC_VERSION) and placeholder search text (SEARCH_TEXT), disable opening in new tabs (NEW_TAB), and disable the link or search box (LINK or SEARCH, respectively) individually.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
This is great! :)

Thanks a lot!
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

spacechase0

  • Newbie
  • *
  • Posts: 39
    • AOL Instant Messenger - thespacechase0
    • View Profile
    • http://spacechase0.com/
Added a new version which shows up correctly for the new header. Also fixed the bug where it goes to the front page of the forums as well as the documentation when you press enter.

spacechase0

  • Newbie
  • *
  • Posts: 39
    • AOL Instant Messenger - thespacechase0
    • View Profile
    • http://spacechase0.com/
I just noticed this wasn't working anymore, and apparently it was from the site changing to https. I just uploaded a fixed version. (All I did to fix it was change the four "http:" to "https:".)

I also changed the docs version to 2.4.2. Still editable at the top of course.

 

anything