Giter VIP home page Giter VIP logo

Comments (4)

veggiemonk avatar veggiemonk commented on May 22, 2024

Hi @JensPiegsa
Yes the site generator is triggered regularly but not automatically yet (unfortunately)
Especially since Github changed the theming to Jekyll, I had to make sure of a few things before switching to new format.

I haven't research the topic further because all automatic solution relies on build passing tests.
It's fine for software but for this kind of repo, a "generate on merge" would be preferable.
If you know any way to automatically do this, I'll be thankful. I can give you access to the repo if you know how to set this up!

Thanks for opening an issue, it really give the incentive to fix this once and for all because it has been bothering me for a while.

Cheers,

Julien

from awesome-docker.

gesellix avatar gesellix commented on May 22, 2024

Not sure if that's an option for you @veggiemonk , but I use Netlify for my generated static content.

from awesome-docker.

veggiemonk avatar veggiemonk commented on May 22, 2024

@gesellix Thanks a lot, it looks super interesting for front-end projects...

I will have to research this a little bit further, I don't know how the other awesome projects keep the github pages in sync after a merge!
The other solution would be a weekend hack with a backend on heroku or something!
it has been added to my to do list, if anyone is interested in tackling the problem, I can offer access to the repo.

from awesome-docker.

veggiemonk avatar veggiemonk commented on May 22, 2024

@JensPiegsa @gesellix @vegasbrianc

Hi follows,

Just FYI, now the website is automatically and instantly updated.

It was really simple actually. Don't know why didn't think of it before.

Here is the solution for those interested. Just convert markdown to html (showdown.js works great!) on the fly and the CSS will do the rest.

<script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.1/fetch.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.5.4/showdown.min.js"></script>
<script>
      const converter = new showdown.Converter();
      const text      = fetch('https://raw.githubusercontent.com/veggiemonk/awesome-docker/master/README.md')
                        .then(res => res.text())
                        .catch(err => console.error(err))
                        .then( text => {
                          document.getElementById('md').innerHTML = converter.makeHtml(text);
                        });
</script>

If you have any suggestion, open an issue.

Thank to you all for your contribution 😄 It is really appreciated.

Julien

from awesome-docker.

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.