Git Product home page Git Product logo

Comments (4)

ganevdev avatar ganevdev commented on June 3, 2024 1

I tried various options, first of all, I tried to do this:

Create the components.js file here (in the existing gatsby-plugin-theme-ui folder)

src/gatsby-plugin-theme-ui/components.js

And import there import 'prismjs/components/prism-r'

But nothing came of this (I tried adding prism.r.js to different places), then I tried different other options. But, I'm afraid this is not something that can be implemented "out of the box", I think that in order to implement this, we need to add new Chronoblog functionality.

But I'm not so sure! Perhaps there is a way about which I do not know.

from gatsby-theme-chronoblog.

17-09 avatar 17-09 commented on June 3, 2024 1

we only need do shadow gatsby-plugin-theme-ui/components.js like this
image
image

Then update styles.code at gatsby-plugin-theme-ui/index.js like this
image

I think we should add this customize to the readme file
@ganevru

from gatsby-theme-chronoblog.

17-09 avatar 17-09 commented on June 3, 2024

Thanks for your efforts. I'm new to gatsby, I'll try to find another way!

from gatsby-theme-chronoblog.

ganevdev avatar ganevdev commented on June 3, 2024

Great job 👍! Yes, it is definitely worth adding to the readme. I think it will be better if you do it (since this is your contribution).

I already added information about Prism in the readme, I think it should be posted somewhere here: https://github.com/Chronoblog/gatsby-theme-chronoblog#adding-support-for-additional-programming-languages

Only, I think it will be better if instead of screenshots, you place the code there.

from gatsby-theme-chronoblog.

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.