Open jirpok opened 1 month ago
Can this be configured as a flag when running srcbook? That way this can be integrated into monorepos.
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.
Anything new here by chance?
@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?
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.
Hey,
Setting a base dir does not seem to work (recent Firefox, macOS and Linux). I don't see any errors.