running jekyll locally on a github pages site project

David Portabella

I want to create a project site documentation (not a blog). I create a "project site" github page, as explained in https://pages.github.com, and select the theme 'jekyll-theme-cayman'.

However, when I edit the index.md file in github editor, the preview looks different from the output in my github page (produced by jekyll). I have only two files: _config.yml with the content:

theme: jekyll-theme-cayman

and index.md with the content:

# test
this url is not automatically auto-linked: http://example.com

I installed jekyll in my computer, but it fails as follows when trying to generate the output for my project site:

$ gem install jekyll bundler
$ bundle exec jekyll serve
Configuration file: /private/tmp/test/_config.yml
jekyll 3.6.2 | Error:  The jekyll-theme-cayman theme could not be found.

How can I solve this?

Also, the text http://example.com is auto-linked by default in the github editor, but not in the jekyll output. I read this documentation, and I tried with this _config.yml but it does not work:

theme: jekyll-theme-cayman
markdown: kramdown
kramdown:
  autolink: true

How can I auto-link?

also, the 'jekyll-theme-cayman' theme has a very tall header. how can I configure the theme? does this theme allow to change the header? where can I find the code of the theme and make changes?

marcanuy

Use the github-pages theme (it will prevent other problems and already contains the cayman theme), Gemfile should look like this:

source "https://rubygems.org"

gem "github-pages"

Then: bundle install and bunle exec jekyll s.

To customize the theme follow theme suggestion:

If you'd like to change the theme's HTML layout:

Copy the original template from the theme's repository
(Pro-tip: click "raw" to make copying easier)
Create a file called /_layouts/default.html in your site
Paste the default layout content copied in the first step
Customize the layout as you'd like

autolinks

Autolinks in kramdown are meant to be surrounded by < and > like:

<http://example.com>

<https://example.com>

That would produce the HTML anchor link.

Este artigo é coletado da Internet.

Se houver alguma infração, entre em [email protected] Delete.

editar em
0

deixe-me dizer algumas palavras

0comentários
loginDepois de participar da revisão

Artigos relacionados

Github Jekyll site builds locally but ignores header tags online

Is the gemfile.lock file needed in a Jekyll site hosted with Github Pages?

Receiving 404 error for assets in Github Pages Jekyll site

Get a blank page after pushing a site using Github pages with Jekyll

As barras finais no site Jekyll + GitHub Pages causam 404

Can I access metadata from a third-party GitHub repo from a Jekyll site on github-pages?

Jekyll/github pages issue: URL without trailing slash is loading an old/ out-of-date version of github site

Existe alguma maneira de rolar dois blogs paginados em um site Jekyll, hospedado em um único repositório GitHub Pages?

Existe alguma maneira de rolar dois blogs paginados em um site Jekyll, hospedado em um único repositório GitHub Pages?

Sub-pages on a GitHub pages site

GitHub Pages not applying CSS but it is working locally

Unable to set favicon using Jekyll and github pages

GitHub Pages (jekyll blog) showed 404

layout errors building github personal site with jekyll

Subdomain of website for Github pages project

Como obter "_pages" referenciado na raiz do site em Jekyll?

Github Pages e Jekyll permalinks indo para caminhos diferentes

GitHub pages serving from docs and jekyll source folder config

GitHub Pages que Jekyll não constrói

Jekyll Now GitHub Pages, Tables Não Show

Jekyll Now GitHub Pages, Tables don't show up

Como separar os posts por páginas no Jekyll GitHub Pages?

O site Jekyll falha apenas quando colocado no GitHub

É possível compilar um site Jekyll rodando no github?

Site público Github com Jekyll não atualiza mais

How to detect if ASP.NET site is running locally, in azure web role, or azure web site?

No Github Pages, meu site não mostra fotos

site do github da filial do gh-pages

can I create a subdomain for my github pages site?

TOP lista

  1. 1

    R Shiny: use HTML em funções (como textInput, checkboxGroupInput)

  2. 2

    UITextView não está exibindo texto longo

  3. 3

    Dependência circular de diálogo personalizado

  4. 4

    Acessando relatório de campanhas na AdMob usando a API do Adsense

  5. 5

    Como assinar digitalmente um documento PDF com assinatura e texto visíveis usando Java

  6. 6

    R Folheto. Dados de pontos de grupo em células para resumir muitos pontos de dados

  7. 7

    Setas rotuladas horizontais apontando para uma linha vertical

  8. 8

    O Chromium e o Firefox exibem as cores de maneira diferente e não sei qual deles está fazendo certo

  9. 9

    Definir um clipe em uma trama nascida no mar

  10. 10

    Por que meus intervalos de confiança de 95% da minha regressão multivariada estão sendo plotados como uma linha de loess?

  11. 11

    Como dinamizar um Dataframe do pandas em Python?

  12. 12

    regex para destacar novos caracteres de linha no início e no fim

  13. 13

    Why isn't my C# .Net Core Rest API route finding my method?

  14. 14

    Como obter a entrada de trás de diálogo em treeview pyqt5 python 3

  15. 15

    Tabela CSS: barra de rolagem para a primeira coluna e largura automática para a coluna restante

  16. 16

    How to create dynamic navigation menu select from database using Codeigniter?

  17. 17

    Como recuperar parâmetros de entrada usando C #?

  18. 18

    Changing long, lat values of Polygon coordinates in python

  19. 19

    Livros sobre criptografia do muito básico ao muito avançado

  20. 20

    Método \ "POST \" não permitido no framework Django rest com ações extras & ModelViewset

  21. 21

    Pesquisa classificada, conte números abaixo do valor desejado

quentelabel

Arquivo