Skip to content

Conversation

@pietrushnic
Copy link
Member

Populate titles in the generated template, allow selecting host ports, and expose NODE_OPTIONS to bump the Playwright container heap. Also ignore crash dumps and temporary vite config files created while rendering.

Populate titles in the generated template, allow selecting host ports,
and expose NODE_OPTIONS to bump the Playwright container heap. Also
ignore crash dumps and temporary vite config files created while
rendering.

Signed-off-by: Piotr Król <[email protected]>
@pietrushnic pietrushnic force-pushed the scripts-improve-docker-helpers branch from b823bf1 to 8f1ba71 Compare October 2, 2025 23:14
Copy link
Contributor

@m-iwanicki m-iwanicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested your changes on zarhus/presentations and images don't render

tmp.*
slides
core
vite.config.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can see this might ignore:

./theme/vite.config.ts
./vite.config.ts

in the future. Currently git is tracking those files and it keeps doing it even if you add this file to .gitignore. Is this how you want it to behave?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, I have experience this file keeps showing, maybe it is created or copied by something.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then use only file you want to exclude, this pattern will exclude them all which might result in confusion in the future. I'm pretty sure we want ./vite.config.ts (you even edit it in: https://github.com/3mdeb/slidev-template/pull/23/files#diff-6a3b01ba97829c9566ef2d8dc466ffcffb4bdac08706d3d6319e42e0aa6890dd)

@m-iwanicki
Copy link
Contributor

@pietrushnic The problem is with:

@@ -20,3 +20,3 @@
 ---
-src: slides/pages/zdm_2/04_dts_status.md
+src: ../pages/zdm_2/04_dts_status.md
 ---

It breaks when src is ../pages instead of slides/pages. slidev-template requires that relative paths to presentation files/repository is below root not above (..), and symlink solves that

- Replace complex awk title extraction with SLIDES_TITLE env variable
- Add comprehensive documentation for all environment variables in help text
- Restore symlink creation to fix image rendering and plugin compatibility

This addresses all issues raised in PR #22 review.

Signed-off-by: Piotr Król <[email protected]>
@pietrushnic
Copy link
Member Author

@pietrushnic The problem is with:

@@ -20,3 +20,3 @@
 ---
-src: slides/pages/zdm_2/04_dts_status.md
+src: ../pages/zdm_2/04_dts_status.md
 ---

It breaks when src is ../pages instead of slides/pages. slidev-template requires that relative paths to presentation files/repository is below root not above (..), and symlink solves that

We should not use relative paths but absolute. I tried to demo that modifying the presentation from ZDM2: zarhus/presentations#22

@m-iwanicki
Copy link
Contributor

We should not use relative paths but absolute.

/slides/ also works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants