Docs - product feedback: How to render html page located in a subdirectory?

Hi,

I am sorry, I am new to Gitlab. I have created a private repo that contains python code as well as auto-generated documentation using pdoc3.

Let say the name of my project is 'my_project'. Generated documentation is located in subdirectory:

./docs/my_project

(this is plain HTML)

I adapted provided .gitlab-ci.yml example to my case (or so I think).

pages:
 script:
 — mkdir .public
 — cp -r .docs/my_project/* .public
 — mv .public public
 artifacts:
    paths:
    — public
 only:
 — master

When pushed, I can see in 'pipelines' page that

latest yaml invalid
error 

Please, is it possible to manage plain html from a sub-directory?

I thank you in advance for your help. Have a good day, Bests,

Edited by Pierrot