Giter Club home page Giter Club logo

Comments (7)

miekg avatar miekg commented on June 18, 2024

have the same problem for CoreDNS; I sync to the latest release (and update all examples and code so that it works with that release)

from metallb.

danderson avatar danderson commented on June 18, 2024

Hmm, so the documentation in master is always synced to the latest released version? You can't update the docs while you're hacking on master?

I have a vague idea of how I could actually do something really cool, using Netlify and Travis to generate a documentation website similar to k8s, where you can switch to the documentation for version X, or switch to the documentation for master, etc. Need to prototype it...

from metallb.

miekg avatar miekg commented on June 18, 2024

no the docs on the site (also in git [see coredns/coredns.io]) are synced from the release. The coredns master branch then diverges. It's suboptimal, but at least people viewing the site and using the latest release get something usuable.

from metallb.

danderson avatar danderson commented on June 18, 2024

Aah, I see. That kinda matches what I want to try and do. Right now I don't have a distinct website, so I guess that's the first thing to fix.

How did you get such a shiny website? Any tips? :P

from metallb.

miekg avatar miekg commented on June 18, 2024

from metallb.

danderson avatar danderson commented on June 18, 2024

Ok, I have a basic scaffolding set up. Hugo website is in website/, and netlify is configured to build+deploy all branches of this repository. Currently, the master branch goes live on http://metallb.universe.tf , and other branches get deployed to <branch-name>--metallb.netlify.com.

When I release 0.2, the plan is to mark the v0.2 branch as the "production" branch, so netlify will push that to the nice URL, and the dev version of the site will live at https://master--metallb.netlify.com/ .

Still TODO:

  • Add a banner that says "warning, you are viewing the master version of the site, it probably won't work with released versions" and links to the released version
  • Add a Fabric function to prepare a release, which does:
    • Create the vX.Y branch if it doesn't exist
    • On the branch, remove the warning banner
    • On all previous vX.Y branches, add another banner that says "this is for an old version of MetalLB" and a link to the new version
    • Tell netlify that the new branch is the production branch (this might have to be a manual step, I don't know yet)

This will make us do the same thing as CoreDNS: the main website is synced to the latest released version. However, there are also published websites for all versions, including master, so it's hopefully quite pleasant to hack on as well.

Bonus, in theory netlify should also build a preview site for all pull requests, so we can preview website changes safely.

from metallb.

danderson avatar danderson commented on June 18, 2024

The plan from above is implements. fab release:0.2.0 will create the right branches, update the documentation, and create a tag. From there Netlify will build a deployment for the v0.2 branch, and in the netlify console I can switch it over to be the "production" branch that is published at metallb.universe.tf . Meanwhile, the development version of the site continues to be accessible at master--metallb.netlify.com.

from metallb.

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.