-
Notifications
You must be signed in to change notification settings - Fork 194
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
rendering of C code samples #77
Comments
I am not sure why but maybe #78 helps? |
Yep, I think it's because the code is overindented |
Doesn't fix it though... |
triple-tilde before and after the code segment causes Jekyll to make a nice On Thu, Jan 28, 2016 at 3:16 PM, Dirk Thomas notifications@github.com
|
triple-tilde with "c" after it, like this: printf("hello, world\n"); seems to turn on syntax highlighting, but also brings in wonky line numbers On Thu, Jan 28, 2016 at 3:20 PM, Morgan Quigley morgan@osrfoundation.org
|
Apparently you can suppress line numbers by editing a https://demisx.github.io/jekyll/2014/01/13/improve-code-highlighting-in-jekyll.html |
Trying to figure out how to preview a github/Jekyll markdown page based on a branch of the source repository; I think the best way is to set up a local instance of the page based on a branch: http://jekyllrb.com/docs/github-pages/#project-page-url-structure |
i got it working by jekyll --server --baseurl '' then you point firefox to http://localhost:4000 and it works On Thu, Jan 28, 2016 at 3:29 PM, Jackie Kay notifications@github.com
|
There's a script ./test_local_deploy.sh and it will run the test server inside docker and expose it on port 4000. It will live update when you change content in files. |
@tfoote, where do I get the ros_tutorials image? That script is failing because docker doesn't know where to find it. |
Tully helped me out with updating the Dockerfile, but I still can't view the instance hosted by docker on localhost:4000. I think there's something screwy happening with my iptables rules. |
Suggest just giving up on syntax highlighting for now. |
#80 will hopefully just render as non-highlighted text. But we'll have to run it through the correct version of the Jekyll pipeline first to make sure it looks OK. |
No need to validate #80 - generic code blocks do work. |
I'm not sure if this is just my browser, but the triple-backtick on this page (e.g., the "Memory Management" section) seems to not quite render the following C code correctly. Maybe it needs a triple-tilde instead? I don't know. (the content is awesome, btw... this is just about its rendering)
The text was updated successfully, but these errors were encountered: