sindresorhus/refined-github

Wiki: Show number of pages. #4246

jtagcat posted onGitHub

There are many repos that have wiki enabled, yet they don't have anything in there.

Ideally, I'd prefer the wiki index below everything else, in the main repo page.
image


Though, here I'm proposing a number counter for the wiki.
ex URL: https://github.com/koalaman/shellcheck

Before:
image

After:
image

<!-- 1. Make sure your requested feature makes sense for Refined GitHub: https://github.com/sindresorhus/refined-github/issues/2960 2. Include a REAL URL where the feature should appear. e.g. Do you want a feature to appear on the main page of a repo? Paste a link to a repo -->


I don't think this is useful on its own, but perhaps we can add the number or hide the Wiki Tab if it's empty, just like hide-zero-packages.

posted by kidonng almost 4 years ago

I wrote a nice detailed thing and the tab crashed with oom. :^)

The number is useful on it's own, showing whether you should bother with the wiki (is the project likely to have a 4-question FAQ or full documentation in the wiki).

Ideally, I'd prefer the wiki index below everything else, in the main repo page.

I did a mockup.

image

The problem is that the wiki is likely to break the scroll-along of the other content. Giving up on aesthetics, it could be placed on the left side:

image

On screens wide enough, it could be an additional column:

image

The wiki on the left works quite well on varying sizes of screens. If the device is tablet-sized, the scroll-along stops working, and the bar could be added below (as on the first).

posted by jtagcat almost 4 years ago

FYI this is only possible via fetchDom there is no API for it

posted by yakov116 almost 4 years ago

Ideally, I'd prefer the wiki index below everything else, in the main repo page.

That's a bit much, we can't add that

posted by fregante almost 4 years ago

Fund this Issue

$0.00
Funded

Pull requests