Problem/Motivation

The GitLab pages for Coding standards is broken. They are 404s.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Command icon Show commands

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

quietone created an issue. See original summary.

quietone’s picture

Issue summary: View changes
quietone’s picture

Title: Fix display of GitLab pages » GitLab pages are 404
jonathan1055’s picture

I can work on this, by making the 'pages' job run temporarily in an MR so we can debug and see what is going on.

jonathan1055’s picture

This 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.md and see if that fixes it.

jonathan1055’s picture

Status: Active » Needs review

That 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:

nav:
  - Home: 'index.md'
  - PHP: 'php/php.md'
      - Introduction: 'docs/php/php-coding-standards.md'
      - Namespaces: 'docs/php/namespaces.md'

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.

quietone’s picture

@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.

quietone’s picture

Title: GitLab pages are 404 » Add navigation
quietone’s picture

I possibly went a bit out of scope adding the navigation. I wanted to see how it all fit together.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

I think the new navigation is looking a lot better, to me this looks good to commit.

jonathan1055’s picture

Status: Reviewed & tested by the community » Needs work

@jonathan1055, thanks for setting this up to temporarily deploy the pages. That is great!

You'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)

I possibly went a bit out of scope adding the navigation. I wanted to see how it all fit together.

Not at all, that's exactly what we need to get the live site usable.

jonathan1055’s picture

Status: Needs work » Reviewed & tested by the community

I've removed the temporary 'pages' override, and the unwanted SKIP variables. 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.

  • quietone committed 926091a3 on main
    Issue #3527422 by jonathan1055, quietone, borisson_: Add navigation
    

quietone’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.