project Websites / Gitlab Issue Listing Script avatar

websites/Gitlab-Issue-Listing-Script#4: Wiki support?

Issue Information

Issue Type: issue
Status: closed
Reported By: btasker

Milestone: v0.3
Created: 11-Oct-21 19:25


Do we want to add Wiki support (assuming there's an API endpoint)?

It probably makes sense to do so, those aren't getting indexed properly either when relying on direct to Gitlab.

Issue Links

Toggle State Changes


Looks like there is an endpoint -

Best bet is probably to put under /wikis (so that we can route to it easily), and then cross-link from project pages.

Not all projects have a wiki, so will need the ProjectAndIssues stuff to check for the existence of a wiki.

The Wiki index for a project can probably just be an unbounded list of pages - it'll be the page content we're interested in indexing anyway.


mentioned in commit 41f3e3f801eccff409bd33cb73e6ee34d644b854

Commit: 41f3e3f801eccff409bd33cb73e6ee34d644b854 
Author: B Tasker                            
Date: 2021-10-11T21:29:15.000+01:00 


Add wiki page rendering for websites/Gitlab-Issue-Listing-Script#4

+81 -8 (89 lines changed)

mentioned in commit e374a80148aa4b485f1e0317db28a21e1f0ba8cc

Commit: e374a80148aa4b485f1e0317db28a21e1f0ba8cc 
Author: B Tasker                            
Date: 2021-10-11T21:16:15.000+01:00 

Message +125 -0 (125 lines changed)

This is implemented, at least at a basic level.

There are a few bits still need doing:

  • Pages should link back to the Gitlab page
  • Check whether images are supported (suspect not)

mentioned in commit f88f7bb1401b44cbd81d27b45a9af1bce4de45f7

Commit: f88f7bb1401b44cbd81d27b45a9af1bce4de45f7 
Author: B Tasker                            
Date: 2021-10-12T11:13:00.000+01:00 


Add "View in gitlab" to wiki pages for websites/Gitlab-Issue-Listing-Script#4

+15 -3 (18 lines changed)

Just tried attaching an image to a wiki page in Gitlab and it wouldn't let me (just said Server responded with 0 code ).

It looks like it's a CORS thing - there's a config change needed in Gitlab. I'll fuck around with that later, so will leave this issue open for now.

Gitlab no longer returns Server responded with 0 code

I stopped the container, and changed the command so that when we defined the external_url config option the scheme used was https not http.

I also had to change the downstream Nginx to use https when connecting back - Gitlab will no longer accept a plaintext connection.

Attaching images now works, but as expected the Wiki rendering in GILS doesn't handle them

marked this issue as related to #20

I've implemented support for images in wikis under #20

Pages should link back to the Gitlab page

This is already in place.

I don't think there's anything else we really need to edit here - the intention was never to support editing, so we don't need to worry about that.