GithubHelp home page GithubHelp logo

Comments (2)

zcbenz avatar zcbenz commented on May 19, 2024

@jlord I prefer to update the documents via web hooks, but I think neither way would work well for how we update the website now, because writing a script to push commits to repo is hard to get right and from my experience such script always tends to encounter unexpected errors after a long run.

I think we should not put electron's documents into this repo, a possible better way is to download the documents when the website is running, in following workflow:

When the website is started

  1. Pull the list of Electron's releases.
  2. Check what we have in _docs.
  3. Download missing documents into _docs by unzipping each release's source tarball. If it is started for the first time we will download the documents of all releases.
  4. Start serving.

When there is a new release of Electron

  1. The website get notified via web hook.
  2. Check if we already have this release in _docs, it could happen if I accidentally unpublished a release and then republished it.
  3. Download the documents of new release into _docs.

The atom.io seems to work in this way, I don't know much about RoR but it might be possible to reuse code there.

from electronjs.org-old.

zeke avatar zeke commented on May 19, 2024

This is a thing now! We set up a Heroku app that runs every ten minutes.

See the release script here: https://github.com/electron/electron.atom.io/blob/cbe46dd421e91d2eddbee0d46d670d8afface771/script/release

from electronjs.org-old.

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.