-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the dependencies (and sort out the resulting mess) #2246
base: master
Are you sure you want to change the base?
Conversation
History is required by revision date plugin
I suppose this should wait for Preview to support the new dependencies. |
Also, take the opportunity to move them into Allas
E.g. when building locally with Podman or Docker
Dockerfile
Outdated
RUN if [ ! -d ".git" ]; then \ | ||
git clone --no-checkout https://github.com/$repo_org/$repo_name git_folder && \ | ||
mv git_folder/.git . && \ | ||
rm -r git_folder && \ | ||
git reset HEAD --hard && \ | ||
git checkout -f $repo_branch | ||
git checkout -f $repo_branch; fi | ||
|
||
RUN pip3 install --no-cache-dir -r requirements.txt && \ | ||
bash scripts/generate_alpha.sh && \ | ||
RUN bash scripts/generate_alpha.sh && \ | ||
bash scripts/generate_by_system.sh && \ | ||
bash scripts/generate_new.sh && \ | ||
bash scripts/generate_glossary.sh && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not join these two RUN
s?
If they are joined and the .git
directory is deleted as a last step, there will be only one layer and it will be smaller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now joined them. For getting the missing .git
directory, I was thinking
RUN if [ ! -d ".git" ]; then \
git clone --bare https://github.com/$repo_org/$repo_name .git && \
git init && \
git switch --force $repo_branch; fi && \
bash scripts/generate_alpha.sh && \
bash scripts/generate_by_system.sh && \
bash scripts/generate_new.sh && \
bash scripts/generate_glossary.sh && \
mkdocs build -d /usr/share/nginx/html
I don't know if it's any quicker, but it is more readable.
I checked the changes but not the CSS, because I do not know enough. Maybe @jemaltahir can comment on those changes. Looks good to me, only the small comment about the |
I am reviewing the CSS part. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed changes
Title.
Deployed at https://demo-sidebars-docs-csc-development.2.rahtiapp.fi/ (fork)
TODO: