jdoiro3 / mkdocs-multirepo-plugin

Build documentation in multiple repos into one site.
MIT License
135 stars 47 forks source link

Gitlab - CICD - repo based works, nav based not #31

Open JensPeter92 opened 2 years ago

JensPeter92 commented 2 years ago

Hi jdoiro3,

I am currently facing the issue that the nav based import does not work for my Gitlab CICD runner. However, when I change it to a repo base import, it works.

I cannot reconstruct the bug, when working on my PC. There both ways are working.

The error message I am facing is 'ImportDocsException(f"{self.name} doesn't have {yml_file} at {str(config_file)}")'. The repo I attach to my mkdocs: https://gitlab.com/pages/mkdocs - It has a mkdocs.yml file. It is a public repository, so the AccessToken should not influence the result.

Nav based import works with github repos via Gitlab CICD runners without problems.

Did you try the CICD approach once for gitlab pages?

jdoiro3 commented 2 years ago

I did not try it with gitlab pages. I've been busy but might be able to look into it some point in the near future. Hopefully we can resolve this sooner rather than later.

miked98 commented 2 years ago

You could have a look to my comment here: https://github.com/jdoiro3/mkdocs-multirepo-plugin/issues/33#issuecomment-1180649139

It works fine for me.