GithubHelp home page GithubHelp logo

rendering of C code samples about design HOT 14 CLOSED

codebot avatar codebot commented on August 25, 2024
rendering of C code samples

from design.

Comments (14)

dirk-thomas avatar dirk-thomas commented on August 25, 2024

I am not sure why but maybe #78 helps?

from design.

jacquelinekay avatar jacquelinekay commented on August 25, 2024

Yep, I think it's because the code is overindented

from design.

dirk-thomas avatar dirk-thomas commented on August 25, 2024

Doesn't fix it though...

from design.

codebot avatar codebot commented on August 25, 2024

triple-tilde before and after the code segment causes Jekyll to make a nice
code block, but it doesn't have syntax highlighting

On Thu, Jan 28, 2016 at 3:16 PM, Dirk Thomas [email protected]
wrote:

Doesn't fix it though...


Reply to this email directly or view it on GitHub
#77 (comment).

from design.

codebot avatar codebot commented on August 25, 2024

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
without spaces after them.

On Thu, Jan 28, 2016 at 3:20 PM, Morgan Quigley [email protected]
wrote:

triple-tilde before and after the code segment causes Jekyll to make a
nice code block, but it doesn't have syntax highlighting

On Thu, Jan 28, 2016 at 3:16 PM, Dirk Thomas [email protected]
wrote:

Doesn't fix it though...


Reply to this email directly or view it on GitHub
#77 (comment).

from design.

jacquelinekay avatar jacquelinekay commented on August 25, 2024

Apparently you can suppress line numbers by editing a syntax.css file

https://demisx.github.io/jekyll/2014/01/13/improve-code-highlighting-in-jekyll.html

from design.

jacquelinekay avatar jacquelinekay commented on August 25, 2024

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

from design.

codebot avatar codebot commented on August 25, 2024

i got it working by apt-get install jekyll then cloning the repo,
checking out the branch you want, and then running this from the checkout
root:

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 [email protected]
wrote:

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


Reply to this email directly or view it on GitHub
#77 (comment).

from design.

tfoote avatar tfoote commented on August 25, 2024

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.

from design.

jacquelinekay avatar jacquelinekay commented on August 25, 2024

@tfoote, where do I get the ros_tutorials image? That script is failing because docker doesn't know where to find it.

from design.

jacquelinekay avatar jacquelinekay commented on August 25, 2024

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.

from design.

tfoote avatar tfoote commented on August 25, 2024

Suggest just giving up on syntax highlighting for now.

from design.

codebot avatar codebot commented on August 25, 2024

#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.

from design.

dirk-thomas avatar dirk-thomas commented on August 25, 2024

No need to validate #80 - generic code blocks do work.

from design.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.