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.
Looks like there is an endpoint - https://docs.gitlab.com/ee/api/wikis.html
Best bet is probably to put under /wikis (so that we can route to it easily), and then cross-link from project pages.
/wikis
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
mentioned in commit e374a80148aa4b485f1e0317db28a21e1f0ba8cc
Commit: e374a80148aa4b485f1e0317db28a21e1f0ba8cc Author: B Tasker Date: 2021-10-11T21:16:15.000+01:00
Add wiki listing for websites/Gitlab-Issue-Listing-Script#4
This is implemented, at least at a basic level.
There are a few bits still need doing:
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
Just tried attaching an image to a wiki page in Gitlab and it wouldn't let me (just said Server responded with 0 code ).
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.
external_url
https
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.
Activity
11-Oct-21 19:43
Looks like there is an endpoint - https://docs.gitlab.com/ee/api/wikis.html
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.
11-Oct-21 20:29
mentioned in commit 41f3e3f801eccff409bd33cb73e6ee34d644b854
Message
Add wiki page rendering for websites/Gitlab-Issue-Listing-Script#4
11-Oct-21 20:29
mentioned in commit e374a80148aa4b485f1e0317db28a21e1f0ba8cc
Message
Add wiki listing for websites/Gitlab-Issue-Listing-Script#4
11-Oct-21 21:37
This is implemented, at least at a basic level.
There are a few bits still need doing:
12-Oct-21 10:13
mentioned in commit f88f7bb1401b44cbd81d27b45a9af1bce4de45f7
Message
Add "View in gitlab" to wiki pages for websites/Gitlab-Issue-Listing-Script#4
12-Oct-21 10:17
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.
17-Apr-22 08:51
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 washttps
nothttp
.I also had to change the downstream Nginx to use https when connecting back - Gitlab will no longer accept a plaintext connection.
17-Apr-22 08:51
Attaching images now works, but as expected the Wiki rendering in GILS doesn't handle them
18-Apr-22 09:46
marked this issue as related to #20
18-Apr-22 09:51
I've implemented support for images in wikis under #20
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.