docs: improved GitLab deployment docs#2966
Conversation
… improved the tutorial for gitlab deployment with pixi
|
|
Thanks for the PR! This looks great - hiding the I won't merge quite yet, in case either of the folks you tagged have comments. Oh - there's also some overlap with the recent PR from @sbonaretti: #2959 - We should probably make sure content and structural changes from both PRs are included. |
|
Will take a look later, also need to make a small change for the server instruction which changes due to higher nodejs |
|
Thank you for your feedback. I've just pushed a new commit where I added a section called deployment where the steps are as simple as possible without technical details to make it less confusing for people who are not familiar with programming and other tools such as I would like to hear your opinion about this section. |
|
Thanks @DobbiKov for your contributions! Great work! @maintainers (@fwkoch, @choldgraf, and all): @DobbiKov and I were in the same working group at #myst-education-2026, together with also @chavid and others. If that works for you, we can close the PR I created yesterday #2959 and work directly on this one! Please, let me know if you prefer to close the PR #2959 yourselves or want me to close it (same here!). Thanks! :) |
|
Oeh, I would prefer that... and then test it on our gitlab pages as well and add the things that I found on multibranch output with GL and --execute. |
Would be nice if you test the last pipeline that I've added (with uv) and you say if it works for your institutional gitlab. I would like to improve this one. |
|
@fwkoch @FreekPols @sbonaretti what do you think about making detailed tutorial for people who are not familiar with git or terminal about pushing must book to gitlab pages ? |
Ideally a myst init --gl-pages would do most of the work for you... I am a little hesitant about the amount of information to provide on either GL or GH, I would point to existing resources like TTW. Another option is to expand the jupyter workshop to include for GL. |
| --- | ||
|
|
||
| GitLab Pages allows you to host static HTML files online from GitLab repositories using [GitLab CI/CD](https://docs.gitlab.com/ci/). | ||
| This page has important information for how to do so. |
There was a problem hiding this comment.
For a bit more context about the whole page, line 8 could be removed and substituted with the following:
=====================
There are different ways to do so:
In this page, you will learn also find information on how to host your webpage on an external server through GitLab CI/CD
=====================
Also:
- How can we specify the first
Deploymentbetter? - Please, double-check that the links above with # work
There was a problem hiding this comment.
- How can we specify the first
Deploymentbetter?
This is a good question. I named it deployment to show that it happens independently from user's package manager, to be more precise, without technical details. Just paste a file with provided contents and it will work. However, the name should be changed.
On the other hand, we could make poetry and pixi subsections of a section choose your favourite package manager.
There was a problem hiding this comment.
What about Deployment the easy way?
I added a comment at line 13 with an admonition containing infos for new GitLab users. I tried the steps myself this morning as I had never used GitLab before. It took me quite a bit to find the links to the right official pages, so I hope this is going to be useful! |
@DobbiKov I have just tried this: And I get the following error:
|
I closed PR #2959 |
|
|
||
| To get setup with GitLab Pages, ensure that your repository is hosted in GitLab and you are in the root of the Git repository. | ||
| Create a file called `.gitlab-ci.yml` with the following content: | ||
|
|
There was a problem hiding this comment.
We could add something like this people who have never used GitLab before:
=====================
:::{tip}New to GitLab
If this is your first time using GitLab, complete these one-time setup steps:
Once set up, you have two options to connect your project to GitLab:
- Start from GitLab: Create a repository on GitLab, clone it to your computer, add your files, and push them
- Start from your computer: Initialize your local folder as a Git repository and push it to GitLab using the following commands:
cd your-project-folder # go to your local folder git init # initialize git git add . # stage all files git commit -m "first commit" git remote add origin git@gitlab.com:username/project.git git push -u origin main
:::
=====================
We can also make the admonition collapsible by adding :class: dropdown below :::{tip}New to GitLab
There was a problem hiding this comment.
This is a very good idea, I will work on that this evening :)
There was a problem hiding this comment.
I suggest do it in the next way: in Instructions section add :::{warning} that says if you are new to gitlab please proceed to the section Instructions for beginners` (of course it will be a link that will point to the section). In that section we will describe detailed process.
On the other hand, people who are not familiar with git, usually are not familiar with terminal neither. Thus, we have a question, should we describe the whole process as for complete beginners who never touched terminal. With explanations about how to install code editor, create myst project, and push to gitlab.
There was a problem hiding this comment.
For the first part, as you want
For the second part, I think we can assume a minimum of knowledge of the terminal commands, as they use it also to create the book itself...
|
I have finally added information about where to find GitLab Pages. However, it does not work for everyone and it depends on the configuration of each gitlab, i.e. sometimes, someone should manually pass trough the windows of setting up GitLab because GitLab thinks that pages are not enabled, for someone just @fwkoch @FreekPols We tested the setup with @sbonaretti and it works. Do you think we are ready to merge? |
|
I run your script and needed to add a -y (question in CLI). After that fix it works, nice. After this, I think it is ready to merge |
small edits to script and description
Done! |

divided gitlab deployment into two sections (pixi + poetry) and improved the tutorial for gitlab deployment with pixi
Changes:
pixirequires lots of steps, I divided them into two separate sections (deployment with pixi and poetry).Things to consider:
lockfile should be obligatory, it is a file that should be created on CI part@FreekPols @sbonaretti
#myst-education-2026
Closes jupyter-book/jupyter-book#2648