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

Highlighting code syntax, markdown tables, mistaken text, etc #25

Open
lazy-byte-42 opened this issue Oct 26, 2015 · 2 comments
Open

Highlighting code syntax, markdown tables, mistaken text, etc #25

lazy-byte-42 opened this issue Oct 26, 2015 · 2 comments
Labels

Comments

@lazy-byte-42
Copy link

Hi,

When I try to insert something like code snippets, tables, mistaken text, etc, it looks like that it is not fully generated to html. Maybe some plugins like pygments are missing? Maybe current GitLab-Pages doesn't have these features yet? Maybe I'm missing something very obvious?
text

Any suggestions for an easy way to add standard markdown syntax features like ones mentioned in the beginning of post?

Thanks

@Glavin001
Copy link
Owner

Jekyll is used to generate the web pages. See https://github.com/Glavin001/GitLab-Pages/blob/master/routes/webhooks.js#L104 for the applicable line of code.

// jekyll build --safe --source .tmp/Glavin001/gitlab-pages-example/ --destination pages/Glavin001/gitlab-pages-example
var cmd = "jekyll build --safe --source \""+repoPath+"\" --destination \""+finalRepoPath+"\"";

I'd recommend taking a look at the command are testing on your own manually in your Terminal and seeing what Jekyll options generate your desired result.

@lazy-byte-42
Copy link
Author

Thanks for the answer. It looks like that jekyll generates webpages (at least code snippet part) as it should, (another code example snippet generated in html below). Then I guess the problem is with the styling (scss) and paths probably. If you have any other thoughts - don't hesitate to let me know.

<div class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
  <span class="nb">puts</span> <span class="s2">&quot;Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="k">end</span>
<span class="n">print_hi</span><span class="p">(</span><span class="s1">&#39;Tom&#39;</span><span class="p">)</span>
<span class="c1">#=&gt; prints &#39;Hi, Tom&#39; to STDOUT.</span></code></pre></div>

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

No branches or pull requests

2 participants