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

Unable to set Base Directory #187

Open
jirpok opened this issue Aug 20, 2024 · 6 comments · May be fixed by #429
Open

Unable to set Base Directory #187

jirpok opened this issue Aug 20, 2024 · 6 comments · May be fixed by #429

Comments

@jirpok
Copy link

jirpok commented Aug 20, 2024

Hey,

Setting a base dir does not seem to work (recent Firefox, macOS and Linux). I don't see any errors.

@matsko
Copy link

matsko commented Aug 20, 2024

Can this be configured as a flag when running srcbook? That way this can be integrated into monorepos.

@nichochar
Copy link
Contributor

I think it might be working, but not doing what you're expecting. The baseDirectory is the directory we default to when importing srcbooks (clicking "open" on the home page) and is the default relative page when you click "export".

Others have thought that the baseDir is the ~/.srcbook dir we use for the internal application, but that currently cannot be changed.

What @matsko is asking for is something we want to build, "open srcbook within this directory", but isn't done yet. It might deserve its own GitHub issue.

@matsko
Copy link

matsko commented Sep 8, 2024

Anything new here by chance?

@Lokendra-sinh
Copy link

@matsko i'd really appreciate if you could elaborate more on the issue...probably current behaviour, expected behaviour, and what you finally want to achieve?

@matsko
Copy link

matsko commented Oct 2, 2024

Hello.

What I have in mind is to have a directory that is part of a project or package where you can do:

npm run srcbook -p 5555 -d ./books

Then it will load all the books within the books directory which can then import files from the same project and run them. All the books are then persisted in the books/ directory.

The usecase here is for projects to have notebooks that show how their code runs.

@matsko
Copy link

matsko commented Oct 21, 2024

Hey. Any progress? I'd very much like to use srcbook in my monorepo project with all the book files persisted within.

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 a pull request may close this issue.

4 participants