Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"sidebar" listed as orphan #42

Open
phallobst opened this issue Jan 15, 2020 · 15 comments
Open

"sidebar" listed as orphan #42

phallobst opened this issue Jan 15, 2020 · 15 comments

Comments

@phallobst
Copy link

The nature of the "sidebar" page does not require any referencing link in order to be used, so it should be excluded from the orphan list.

@gamma
Copy link
Member

gamma commented Feb 12, 2020

Yes, but there are some more files that will have to be excluded afaik.

@schniepp
Copy link

@gamma: which files did you have in mind? I think it would mainly be all the pages named "sidebar" (sidebar.txt). These page names could simply be excluded from the search. The only downside would be if someone has named a page "sidebar" without having the sidebar plugin installed. A simple solution would be a checkbox, that sidebar used could check. A more sophisticated solution would be to detect the presence of an enabled plugin "sidebar", which then automatically enables the exclusion of pages names "sidebar".

@rgleason
Copy link

I think this would help a lot.

@gamma
Copy link
Member

gamma commented Dec 14, 2021

Sidebar is just once thing. E.g. were using "toc" files heavily - so I'd exclude them too, but that is not a thing for many other users. I'm think a global option filled with default excludes would fit the cases better. "sidebar" could be a default one.

@schniepp
Copy link

@gamma: sure that sounds like an amazing solution!

@rgleason
Copy link

To confirm, we use Sidebar TOC and indexmenu extensively.

@gamma
Copy link
Member

gamma commented Dec 14, 2021

To confirm, we use Sidebar TOC and indexmenu extensively.

You're referring plugins? I meant page names. Anyway, it can be customised with a good default.

@rgleason
Copy link

Yes we use the sidebar and a TOC, along with the indexmenu plugin.

@gamma
Copy link
Member

gamma commented Dec 27, 2021

BTW: There is an exclude pattern in the multiorphan page already.

@rgleason
Copy link

Good point

@schniepp
Copy link

BTW: There is an exclude pattern in the multiorphan page already.

I saw that... but unfortunately, I could not find any documentation how that works. It wasn't even clear to me whether this was an exclude or include pattern. But thanks for pointing that out! Perhaps, I should just play with it.

@rgleason
Copy link

rgleason commented Dec 29, 2021

@schiepp Did you figure out what to enter? If so, please share.

@schniepp
Copy link

@rgleason : as far as I can tell, the field RegEx to filter full ID: is a positive list (include pattern). When I insert simply sidebar, it only queries my sidebar pages. As far as I know, there is no NOT operator in regular expressions, so I don't see an obvious way of turning this into a negative list (exclusions), which is what would be needed here. (To exclude all sidebar pages, etc.)

@asheenlevrai
Copy link

Hi :)

Can anyone explain how RegEx to filter full ID works and how it can be used to filter results?

Thanks a lot

-a-

@rgleason
Copy link

rgleason commented May 3, 2024

For OpenCPN Wiki
we use blank pages to control how sub namespaces appear. These get in the way sometimes and I want to exclude them.
So using the RegEx line.

RegEx: This excludes/eliminates all the *:blank pages under opencpn:manual_basic

^(?!.opencpn:manual_basic:.:blank).*$

See this Editor Manual page https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:edit_user_manual:administrator:multiorphan_checker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants