github-wiki-search icon indicating copy to clipboard operation
github-wiki-search copied to clipboard

GitHub Enterprise support

Open TheJaredWilcurt opened this issue 9 years ago • 11 comments

You have the github website hardcoded. It would be nice if there was an options page for users to add in custom URLs/domains for this to work on. Many companies have the enterprise version of GitHub and being able to search the wiki at work would be super useful.

If nothing else, you could just add in a regex thing to look for http(s)://githib.*.com/*/*/wiki

  function allowedLocation(callback) {
    if (/^https?:\/\/github\.com\/.*?\/.*?\/wiki/.test(location.href)) {
      callback();
    }
  }

TheJaredWilcurt avatar Jan 26 '15 19:01 TheJaredWilcurt

+1

soasme avatar Feb 12 '15 09:02 soasme

+1

ccampanale avatar Feb 17 '15 15:02 ccampanale

In the meantime, I made this. I'm still testing it to ensure it isn't breaking anything but it seems to be working as intended until the extension can include support for GHE installations.

ccampanale avatar Feb 17 '15 16:02 ccampanale

I agree with @TheJaredWilcurt though I think a better regex would be /^https?:\/\/github\..*?\/.*?\/.*?\/wiki/ as this would return true for both public and enterprise GitHub installations. That being said, I believe the real limitation here is in the manifest of the Chrome extension as you have to define on which sites you want the script to run. Though I may be wrong!

ccampanale avatar Feb 18 '15 13:02 ccampanale

+1, though our subdomain contains 'github' it doesn't start with it.

judwhite avatar Jul 06 '15 03:07 judwhite

+1

kleinen avatar Mar 16 '16 16:03 kleinen

Really the correct answer is to just let people type in the root for their own github server, even if it's just localhost:8080.

Though, auto-guessing would be cool too.

TheJaredWilcurt avatar Mar 16 '16 17:03 TheJaredWilcurt

Hrmmm we never closed this issue... lol

This is done and it's a feature now for anyone who is curious. And you can do exactly that @TheJaredWilcurt; there's an options page that lets you define for which domains you want the extension to run on.

ccampanale avatar Mar 16 '16 19:03 ccampanale

@ccampanale

I just downloaded the extension and tried it on both github and ghe, and neither worked. There's also no options page.

options

TheJaredWilcurt avatar Mar 16 '16 21:03 TheJaredWilcurt

I also am unable to find the options you refer to.

kleinen avatar Mar 16 '16 22:03 kleinen

Guys, my bad... I got the extension mixed up; I was thinking this was another one that I contributed to that recently got enterprise support... :-/ This one unfortunately still has no support for enterprises... :( Sorry

ccampanale avatar Mar 17 '16 00:03 ccampanale