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

Manubot and privat repository #407

Open
sebastiansukstorf opened this issue Jan 17, 2021 · 13 comments
Open

Manubot and privat repository #407

sebastiansukstorf opened this issue Jan 17, 2021 · 13 comments

Comments

@sebastiansukstorf
Copy link

Hello, can I use Manubot with my lector in a privat repository?

@agitter
Copy link
Member

agitter commented Jan 17, 2021

Yes, we have a few examples of users running Manubot in a private GitHub repository. There is some recent discussion in #405.

Two modes include:

  • Keep the repository source private and do not enable GitHub Pages. Access the generated manuscript.pdf from the output branch of the repository.
  • Keep the repository source private but enable GitHub Pages to make the generated manuscript public.

@sebastiansukstorf
Copy link
Author

Hello Anthony, thank you for your answer. I am not quite sure how to use the setup description, correctly. Do I follow all steps for using manubot? Is it possible to get some help from any community member? Thank you very much. Sebastian

@agitter
Copy link
Member

agitter commented Jan 18, 2021

I can try to help if you get stuck on some of the setup steps. How far were you able to make it? With a private manuscript you will follow almost all of the typical setup steps listed at https://github.com/manubot/rootstock/blob/main/SETUP.md#creating-a-new-manuscript:

  • Configuration: follow standard instructions
  • Create repository: follow standard instructions
  • Continuous integration: here you can follow the steps for GitHub Actions, which is the recommended continuous integration service. After you complete the setup steps, visit the settings in your new GitHub repository. In the GitHub Pages section there is a Source option. Set this to None to disable GitHub Pages for your private repository. Then, your manuscript source files and the generated HTML and PDF outputs will be private.
  • README updates: follow standard instructions
  • Finalize: follow standard instructions

@sebastiansukstorf
Copy link
Author

sebastiansukstorf commented Jan 18, 2021 via email

@agitter
Copy link
Member

agitter commented Jan 19, 2021

Does the error message look like this one? https://github.com/fmsabatini/sPlotOpen_Manuscript/actions/runs/354512839 Or is there more printed along with the error message?

That error is caused by using an older version of Manubot rootstock, which did not pin a required package (#387). However, if you just performed all of the setup steps now, it would be surprising if you do not have the latest version of Manubot rootstock.

@sebastiansukstorf
Copy link
Author

sebastiansukstorf commented Jan 24, 2021 via email

@dhimmel
Copy link
Member

dhimmel commented Jan 24, 2021

From your screenshot, this part catches my attention:

error: src refspec master does not match any.  

In the current rootstock setup, the following command is given:

git push --set-upstream origin main

Notice main instead of master. Perhaps your setup instructions are for an older version of rootstock?

@sebastiansukstorf
Copy link
Author

sebastiansukstorf commented Jan 24, 2021 via email

@dhimmel
Copy link
Member

dhimmel commented Jan 24, 2021

I willow this instruction link https://github.com/manubot/rootstock/blob/master/SETUP.md from manubot.org

Ah our bad. We switched the default branch from master to main in #399, but we forgot to update the website. I just updated the website in manubot/manubot.org@9918b53.

I would suggest starting the setup over with the instructions from https://github.com/manubot/rootstock/blob/main/SETUP.md. Sorry about the outdated link.

@agitter one thing we can consider is deleting the master branch. This would cause all links to the master branch to redirect to the current default branch (i.e. main). But I'm not sure if that would cause other unintended consequences for repos still using master.

@agitter
Copy link
Member

agitter commented Feb 13, 2021

@sebastiansukstorf I wanted to check in and see whether you were able to get this working. If not, you could temporarily give me access to your private repository so I can help fix any setup issues.

@sebastiansukstorf
Copy link
Author

Hello Anthony, no it's still not working. I grant you Access to the repo. Thank you. Sebastian

@agitter
Copy link
Member

agitter commented Feb 13, 2021

Thanks @sebastiansukstorf I received access. I updated with the latest rootstock changes and pushed those so that you won't have to update again anytime soon. This included back end changes to how the plugins work. I also finished the setup steps but left content/02.delete-me.md for now. Everything is building correctly now.

The failed build (run 491938772 from 27 days ago) that gave "Process completed with exit code 83." is related to the spellcheck. The error that triggered this exit code was Error: No word lists can be found for the language "de_DE". When you set lang: en-EN in the metadata, that fixed the builds.

The spellcheck does not currently support any languages besides English. There were some barriers to general language support due how different tools that Manubot relies on use different language codes. However, if you're interested in spellcheck, I could try to set it up as a special case. If you're not going to use spellcheck, you can instead set SPELLCHECK: false in line 17 of .github/workflows/manubot.yaml.

Your manuscript should be ready for editing. If you are unable to pull the changes I made, we could help clean up your local git clone. Or the easier option could be to delete your local clone and clone a fresh copy of the repository from GitHub.

@sebastiansukstorf
Copy link
Author

Hello Anthony, thank you very much! I appreciate your effort very much. I will check in the next days.

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