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

Document how to use with GitLab Pages #47

Closed
mojavelinux opened this issue Apr 1, 2016 · 9 comments
Closed

Document how to use with GitLab Pages #47

mojavelinux opened this issue Apr 1, 2016 · 9 comments
Assignees
Milestone

Comments

@mojavelinux
Copy link
Member

Unlike GitHub Pages, GitLab Pages gives you control over the pages build (a custom CI task). That means you can run Jekyll with the jekyll-asciidoc plugin, but get all the conveniences of automatic publishing that you get on GitHub Pages. We should promote this because it can save people a lot of time.

What we need to document is:

  • A link to how to setup GitLab Pages
  • A sample CI configuration that includes Jekyll and the jekyll-asciidoc plugin

Here's a start:

https://gitlab.com/pages/jekyll

@mojavelinux
Copy link
Member Author

Here's a detailed blog post that goes a long way towards explained how to do this.

https://about.gitlab.com/2016/04/07/gitlab-pages-setup/

@mojavelinux mojavelinux added this to the v2.0.0 milestone Jun 28, 2016
@mojavelinux mojavelinux self-assigned this Jun 28, 2016
mojavelinux added a commit to mojavelinux/jekyll-asciidoc that referenced this issue Jun 28, 2016
- document how to setup GitLab Pages to build and deploy a Jekyll site
- update and reorganize documentation on GitHub Pages
mojavelinux added a commit to mojavelinux/jekyll-asciidoc that referenced this issue Jun 28, 2016
- document how to setup GitLab Pages to build and deploy a Jekyll site
- update and reorganize documentation on GitHub Pages
- add conum-guard to put conums behind comment on GitHub
mojavelinux added a commit to mojavelinux/jekyll-asciidoc that referenced this issue Jun 28, 2016
- document how to setup GitLab Pages to build and deploy a Jekyll site
- update and reorganize documentation on GitHub Pages
- add conum-guard to put conums behind comment on GitHub
mojavelinux added a commit to mojavelinux/jekyll-asciidoc that referenced this issue Jun 28, 2016
- document how to setup GitLab Pages to build and deploy a Jekyll site
- update and reorganize documentation on GitHub Pages
- tuck conums behind line comment in source listings on GitHub
@mojavelinux
Copy link
Member Author

Very nice! We should definitely mention this in the README.

Technically, the gem install asciidoctor line is not required since the jekyll-asciidoc gem depends on the asciidoctor gem. I recommend adding pygments.rb (or coderay) to the container too so that a syntax highlighter is available. Pygments is preferred, if possible.

@mojavelinux
Copy link
Member Author

Can I assume your instructions are for deploying a custom runner for use on GitLab.com?

sboekhoff added a commit to sboekhoff/jekyll-asciidoc-docker that referenced this issue Jul 4, 2016
Source: asciidoctor/jekyll-asciidoc#47

* Removed the installation of asciidoctor, since it is a dependency of jekyll-asciidoc
* Added pygments.rb syntax highlighter to the Docker image
* Clarified that the example is for a runner using the CI of GitLab.com
@sboekhoff
Copy link
Contributor

Thanks for your suggestions.

Yes, the runner is for using the CI of GitLab.com. I removed gem install asciidoctor. Unfortunately I had some problems installing pygments.rb - but I'll get it running the next days.

@mojavelinux
Copy link
Member Author

I'm pretty sure you need the development tools to install the pygments.rb. That's basically stuff like the C headers and such. It depends on a few native gems. On Alpine Linux, I think that's build-base.

@sboekhoff
Copy link
Contributor

Thanks for the hint with build-base (adding gcc and some other packages named in the error messages was actually not enough 😉 )

Pygments should work in the latest images https://hub.docker.com/r/boekhoff/jekyll-asciidoc/

(Unfortunately DockerHub does not support AsciiDoc -> reading the README of automated builds on DuckerHub sucks: docker/hub-feedback#709 )

@mojavelinux
Copy link
Member Author

Nice work!

Unfortunately DockerHub does not support AsciiDoc

Agreed, this is a major annoyance. You can work around this slightly by using the Markdown-compatibility syntax supported by Asciidoctor. We do this for the Asciidoctor.js README. See https://www.npmjs.com/package/asciidoctor.js (not perfect, but better...and still future proof).

@sboekhoff
Copy link
Contributor

I try to avoid doing 'workarounds' and 'half things'. That won't improve the products (here DockerHub.com or nmpjs.com). I (vote for) open tickets - if there is enough voters they might implement the feature. I made good experience with it in the past (especially GitLab is noteworthy).

Do you know if there is a ticket for 'Add support for AsciiDoc ...' for npmjs.com?

@mojavelinux
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants