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

Add manuscript to existing code repo #307

Open
2 tasks
kescobo opened this issue Feb 12, 2020 · 6 comments
Open
2 tasks

Add manuscript to existing code repo #307

kescobo opened this issue Feb 12, 2020 · 6 comments

Comments

@kescobo
Copy link

kescobo commented Feb 12, 2020

At the moment, it seems like the setup workflow is only suitable for starting a manuscript in a brand new repository, where the only thing in the repository is the manuscript. It would be nice if the manuscript could live alongside code and other content in a single repository.

From what I can tell, this may require:

  • decoupling folder structure to avoid clashes (perhaps things that are critical could go in a manuscript/ or ./manuscript subfolder)
  • tools for running manuscript CI along with CI for code tests etc

Alternatively, perhaps git submodules could be effective here, and all that would be required is some documentation.

@agitter
Copy link
Member

agitter commented Feb 13, 2020

@kescobo you're correct that the current setup assumes your repository will only contain the manuscript. We agree that having the manuscript be more self-contained is desirable. manubot/template#1 discusses some of that roadmap and how a refactored Manubot could greatly simplify the manuscript repository.

Currently, many projects have a code/analysis repository and a separate manuscript repository. A recent example:

We have also used submodules in the past as you suggested:

@kescobo
Copy link
Author

kescobo commented Feb 13, 2020

Thanks for the links - I'll take a look. The new template does look like a good approach. I'll dig some more and chime in if anything occurs to me 👍

@dhimmel
Copy link
Member

dhimmel commented Feb 18, 2020

Yeah. I think the @kescobo touches on an important limitation. Currently, SETUP does not allow adding a manuscript to a pre-existing code repo.

Our plan in the future with manubot/template is to reduce Manubot setup to just having the .github/workflows/manubot.yaml file in the repo. This would run the GitHub action, which would detect the manuscript location or perhaps read a manubot config file that would tell it where to look and what to do.

This would allow @kescobo to create a manuscript alongside project code. There would be a few restriction like reserving the gh-pages branch for Manubot.

For now, I think the best solution would be to create separate repos, since manubot/template could still be some ways off.

@kescobo
Copy link
Author

kescobo commented Feb 18, 2020

Thanks @dhimmel. For now, that's what I'm doing, and I'll probably end up going the submodule route. Not done, but https://github.com/Klepac-Ceraj-Lab/resonance1_manuscript

I didn't quite get this set up in time for preprint and submission, but here's the preprint

@dhimmel
Copy link
Member

dhimmel commented Feb 18, 2020

Not done, but https://github.com/Klepac-Ceraj-Lab/resonance1_manuscript

Ah cool! Feel free to add your manuscript to the catalog source at any point if you'd like it to show up at https://manubot.org/catalog/.

@agitter
Copy link
Member

agitter commented May 22, 2020

I'm cross-referencing manubot/manubot#229 (comment) where there are links to a custom manuscript build process for a repository configured as @kescobo described. That could be a short term workaround until manubot/template is ready.

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