Skip to content
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

Use custom theme from a super folder #1211

Open
signedav opened this issue Jan 25, 2023 · 2 comments
Open

Use custom theme from a super folder #1211

signedav opened this issue Jan 25, 2023 · 2 comments

Comments

@signedav
Copy link

When I have multiple directories with presentations:

── static_assets
│   └── theme
│       ├── base-theme.css
│       ├── base-white-theme.css
│       ├── logo_white.png
│       ├── pitch-theme.css
│       ├── softteaching-theme.css
│       └── teaching-theme.css
├── talk_presentation
│   └── slides
│       ├── assets
│       │   └──cloud.png
│       └── mypresentation.md
└── teaching_workshop
    └── slides
        ├── assets
        │   ├── baskets_datasets_baskets.png
        │   └── title.png
        └── workshop_de.md

And I reference the custom theme in the md files:

---
title: Workshop
theme: theme/softteaching-theme.css
customTheme: ../../theme/softteaching-theme
---

In the CI I can map my static_assets/theme folder to the teaching_workshop/slides/_assets/theme folder. No problem here with the value of theme.

But in the VS Code Plugin, it seems to not work to reference to relative paths that point outside the slides folder at customTheme.

Is there any trick for this. Or could this be an enhancement of this plugin?

@evilz
Copy link
Owner

evilz commented Jan 25, 2023

I see.
Actually it's not working cause the webserver is started from the markdown file. And then parents folder are not available.

The chance for this can be tricky and not really simple.

@ganeshgore
Copy link

you can make relative symbolic link of static_assets is each presentation directory, that will work.

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

No branches or pull requests

3 participants