rstudio / bookdown

Authoring Books and Technical Documents with R Markdown
https://pkgs.rstudio.com/bookdown/
GNU General Public License v3.0
3.74k stars 1.26k forks source link

Publishing instructions for Gitlab #477

Closed jsta closed 6 years ago

jsta commented 6 years ago

I wonder if a PR to include publishing information for Gitlab would be welcome. Except for the fact that the Gitlab documentation is terrible (overly complex Gitlab admin instructions are mixed with user facing docs), I found the process to be easier than Github.

The process is Docker based and you don't have to deal with .nojekyll or tokens (build outputs are moved within Gitlab to Gitlab pages) as "artifacts".

I worked off of the example here by @ConorIA: https://github.com/ConorIA/dockerfiles/tree/master/alpine-r-bookdown

ConorIA commented 6 years ago

@jsta, thanks for the ping. Here is a live example if it is any help. To be honest, I stopped using my own Docker image because of locale issues with Alpine.

https://gitlab.com/ConorIA/r4cs/blob/master/.gitlab-ci.yml

jsta commented 6 years ago

In my case, any image that has pandoc + devtools prereqs will work.

yihui commented 6 years ago

I added a section on publishing from GitLab in the blogdown book, but I think you can easily replace blogdown with bookdown: https://bookdown.org/yihui/blogdown/gitlab-pages.html The idea is the same.

github-actions[bot] commented 3 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.