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

Configure private metanorma repositories #110

Open
ronaldtse opened this issue Aug 13, 2019 · 2 comments
Open

Configure private metanorma repositories #110

ronaldtse opened this issue Aug 13, 2019 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@ronaldtse
Copy link
Contributor

From @abunashir:

I've added a temporary fix, for now, it will silently ignore loading issue for this private gems. in the future, we also consider having those as configuration block.

Originally posted by @abunashir in #104 (comment)

What did you mean by "configuration block"? I think we need a good way of loading private gems. Right now, we load them by inferring on the document flavor in the command line / file attribute:

e.g.

  • Command line metanorma -t {private-type} document.adoc

  • In document: :mn-document-type: {private-type}

Then metanorma-cli will automatically load the gem metanorma-{private-type}.

@ronaldtse ronaldtse added the question Further information is requested label Aug 13, 2019
@abunashir
Copy link
Member

I was thinking to have some interface that will allow a user to add their custom backend, more likely metanorma backends add [backend name]. That way we can only focus on the public backends and if anyone wants to add their own backend / private backend then they can do so.

@ronaldtse
Copy link
Contributor Author

Good idea. This goes back to our previous discussion of adding template repositories, needing a global metanorma config. This is also necessary for document repositories.

However the word “backend” may be a bit confusing. “Processor” sounds better.

That said “metanorma -t my-private-type blah.adoc” works equally well.

@ronaldtse ronaldtse changed the title Private gems in a configuration block? Configure private metanorma repositories Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants