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

It would be nice to read, by default, a config.json in the same directory as the documentation #61

Closed
JJ opened this issue Nov 17, 2019 · 3 comments
Assignees

Comments

@JJ
Copy link
Contributor

JJ commented Nov 17, 2019

config.json is either read by default from the installation of this module, or needs to be configured via command line.
It would be nice to have another reasonable default; for instance, to read also from the root directory.

Suggestion

To change the zef-path function so that it returns a file by that name in the current directory too.

@JJ JJ added the enhancement New feature or request label Nov 17, 2019
@antoniogamiz
Copy link
Collaborator

zef-path does exactly that. If the file is present in the directory returns that path, if not, returns the "zef path".

@antoniogamiz
Copy link
Collaborator

By the way, sorry for not solving any issues, I'm very busy with University stuff.

@JJ
Copy link
Contributor Author

JJ commented Nov 17, 2019

It does not seem to:
https://github.com/perl6/Documentable/blob/d66dfcfbe75a7c353cd9ce73bdb5a51da4cfbbb5/lib/Documentable/Utils/IO.pm6#L62-L66
It either reads from "resources" or from the installed resources file. It does not read from the same directory, you would need to create a "resources" directory and put it there.

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

2 participants