Giter Site home page Giter Site logo

Comments (12)

karawoo avatar karawoo commented on May 22, 2024

Doesn't it need to be on gh-pages in order to show up at http://swcarpentry.github.io/r-novice-gapminder/? If so, maybe delete master to reduce confusion, making gh-pages the main branch.

from r-novice-gapminder.

hdashnow avatar hdashnow commented on May 22, 2024

+1 @karawoo

from r-novice-gapminder.

naupaka avatar naupaka commented on May 22, 2024

I don't have permissions to delete master or to switch gh-pages to default; we might have to ask @gvwilson to do it. I am +1 for this as well. Is there any reason to keep master around for anything else? What is standard SWC practice these days?

from r-novice-gapminder.

karawoo avatar karawoo commented on May 22, 2024

Looks like r-novice-inflammation just has gh-pages, no master. I don't see any reason to keep it around.

from r-novice-gapminder.

tomwright01 avatar tomwright01 commented on May 22, 2024

I'm not supportive of this. Using gh-pages as the 'main' development branch means that all the generated *.html pages need to be included. As all these pages are often touched by make preview this leads to cluttered logfiles.

As I understand it the current process for r-novice-inflammation is for PR's to only include .Rmd files, the maintainer is then responsible for merging the PR's and generating the *.md and *.html files. Perhaps @jdblischak could comment how this workflow is working out, with particular reference to how many contributors manage to follow the instructions correctly (I know I didn't).

I would prefer that a master branch is used for development, only *.md pages need be included in this. The package maintainers task would then be to merge PR's with master, create and checkout a new gh-pages branch, make preview, push the new gh-pages branch. This has the advantage of keeping source files and auto-generated files separate.

from r-novice-gapminder.

jdblischak avatar jdblischak commented on May 22, 2024

You can see the previous discussion on committing html files here. It comes down to a tradeoff between keeping the source code clean and making it easy for people to contribute.

Currently for r-novice-inflammation, contributors are instructed to send PRs to the gh-pages branch with only the Rmd file edited (though they are encouraged to build the html locally to view their changes). Then after a substantial number of changes have been made, I build the html pages. Thus all development happens on the gh-pages branch.

The alternative is to have all PRs sent to the master branch and only include generated files in the gh-pages branch. This works well when all contributors are comfortable with Git. r-novice-inflammation receives many PRs that are created by direct editing in GitHub, and having a more complicated development workflow is going to discourage these instructors from contributing.

from r-novice-gapminder.

fmichonneau avatar fmichonneau commented on May 22, 2024

+1 for having a single gh-pages branch. It's important that all repositories in SWC follow the same organization to facilitate their management (e.g., CSS styling)

from r-novice-gapminder.

hdashnow avatar hdashnow commented on May 22, 2024

In our workshops, the only html page that we've ever actually needed was index.html. All others were rendered directly from markdown by GitHub. So committing html at all was actually unnecessary in many cases. We only committed html because they were already present in the repo.

from r-novice-gapminder.

tomwright01 avatar tomwright01 commented on May 22, 2024

Seems like gh-pages is the way to go.
I created a PR #6 to add this information.

I agree with @naupaka we need someone with admin rights to change the default branch and delete the master branch.

from r-novice-gapminder.

naupaka avatar naupaka commented on May 22, 2024

Paging @gvwilson - when you get a chance can you remove the master branch from this repo? I believe we have come to a consensus on that decision.

from r-novice-gapminder.

gvwilson avatar gvwilson commented on May 22, 2024

from r-novice-gapminder.

naupaka avatar naupaka commented on May 22, 2024

Thanks!

from r-novice-gapminder.

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.