Coder Social home page Coder Social logo

Use Jekyll about validator.github.io HOT 4 CLOSED

validator avatar validator commented on May 30, 2024
Use Jekyll

from validator.github.io.

Comments (4)

sideshowbarker avatar sideshowbarker commented on May 30, 2024

Thanks for raising this. I'm open to making any changes but so far it's not clear to me how the specific changes in your example are an improvement.

The master branch is run through Jekyll when you push content to your repository.

OK. But I don't understand how that's relevant if I've already got the gh-pages branch set as the default and am publishing to http://validator.github.io from that.

Are you're saying that I should switch to just using the master branch? And I could publish to http://validator.github.io from there somehow? Or would I still need both branches?

And If you're proposing I switch to relying on Jekyll, I'm open to that. But at this point I don't yet understand what that would buy me. If I did that, could I continue to maintain my source in HTML, as I'm doing now?

I guess I should point out that I don't know much at all about Jekyll. I've heard about it of course, but I'm really not familiar with it and have never used.

With this in mind you could simplify the maintenance of documentation.

If the proposal is to rely on Jekyll, I agree it would simplify maintenance for somebody who's already familiar with Jekyll and already using it.

But right now I'm just editing the source in HTML and automatically generating markdown from that (locally before I push). Which is a fairly simple setup already.

So anyway, while I've not found they way I'm doing things now to be much of a maintenance headache, but I'd be willing to try something new

from validator.github.io.

doktorbro avatar doktorbro commented on May 30, 2024

@sideshowbarker Sorry for not linking to the description, how Jekyll works on Github.

Jekyll does already run on this repositorys master branch, every time you push. You don’t have to create another branch.

You don’t have to use markdown, if you don’t like it. Jekyll copies HTML files as is, that’s why you didn’t notice nothing yet.

The goal for you would be the usage of layouts. It’s an easy to use I’ve updated my example:

You could just write the content in HTML like before, while the recurring header and footer parts would live in layouts.

So it’s a really small change, if you don’t want to switch to markdown. Three steps:

  • create one extra file (_layouts/default.html)
  • outsource the header to it
  • reference the layout in pages

Done.


Out of curiosity: why do you duplicate the content of index.html in the README.md?

from validator.github.io.

sideshowbarker avatar sideshowbarker commented on May 30, 2024

Out of curiosity: why do you duplicate the content of index.html in the README.md?

I automatically generate the README.md file from the index.html file, using html2text; see:

https://github.com/validator/validator.github.io/blob/master/Makefile

I do it that way in order to have HTML content to display at http://validator.github.io that's styled and formatted the way I want it to be, while also having have a plain-text README.md for https://github.com/validator/validator.github.io display and while also having a plain-text README.md in the release distros.

from validator.github.io.

doktorbro avatar doktorbro commented on May 30, 2024

Thank you for the explanation.

from validator.github.io.

Related Issues (12)

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.