Closed (fixed)
Project:
Coding Standards
Component:
Documentation
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2025 at 10:30 UTC
Updated:
16 Jun 2025 at 22:54 UTC
Jump to comment: Most recent
The GitLab pages for Coding standards is broken. They are 404s.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
quietone commentedComment #3
quietone commentedComment #4
jonathan1055 commentedI can work on this, by making the 'pages' job run temporarily in an MR so we can debug and see what is going on.
Comment #6
jonathan1055 commentedThis may or may not be a help, but the pages have (mostly) been built OK within this issue fork. Here's an example
https://coding-standards-3527422-de7e89.pages.drupalcode.org/composer/pa...
There only problem with the very top level page - it is still 404
https://coding-standards-3527422-de7e89.pages.drupalcode.org/
I am guessing this is because the default file is not set correctly - I will add a
docs/index.mdand see if that fixes it.Comment #7
jonathan1055 commentedThat worked, I added a index.md and now the top page is also shown, with no 404
https://coding-standards-3527422-de7e89.pages.drupalcode.org/
Currently, the navigation is being generated on-the-fly by file discovery in the /docs folders. This means that the menu is purely alphabetical, and every menu link is the same as page title, in title case. For exampe we get 'Php' and 'Api documentation examples'. It may be better to add a
nav:section in the mkdocs.yml so we can determine the best order of pages and give proper titles. For example:etc.
I think @quieteone mentioned earlier about navigation, so this change may already be in hand on a local branch.
We can't tell if this MR will fix the real problem, but it looks like it might. When ready to merge, the temporary changes need to be undone, but this is ready for review and feedback.
Comment #8
quietone commented@jonathan1055, thanks for setting this up to temporarily deploy the pages. That is great!
I added navigation to match the existing d.o pages and it looks correct to me. And searching is so much nicer now.
Comment #9
quietone commentedComment #10
quietone commentedI possibly went a bit out of scope adding the navigation. I wanted to see how it all fit together.
Comment #11
borisson_I think the new navigation is looking a lot better, to me this looks good to commit.
Comment #12
jonathan1055 commentedYou're welcome. I note that when I run the pipeline the documentation site is built in the issue fork, which is good
https://coding-standards-3527422-de7e89.pages.drupalcode.org/
But when you run it, as a maintainer, the site is built in the "real" location, thus updating the live pages with each MR push.
https://project.pages.drupalcode.org/coding_standards/
This is the (main) reason why the 'pages' job is set to only run on commit to the main branch. It would be nicer if all MR pipeline built the documents in the issue fork, then we could always try out changes without altering the live site. I will revert that change before you merge the MR. (NW for that)
Not at all, that's exactly what we need to get the live site usable.
Comment #13
jonathan1055 commentedI've removed the temporary 'pages' override, and the unwanted
SKIPvariables. When this MR is merged (maybe using the 'merge' button this time?) then I can rebase MR2 spelling to remove the conflict.Back to RTBC.
Comment #16
quietone commentedThanks!