Giter Club home page Giter Club logo

vrapeutic.github.io's Issues

Add link to GitHub on docs website

There are several helpful links in the header and footer of the website, but I could not quickly find a way to get to the VRapeutic GitHub repositories from the docs site. Since this is a huge plus and it is something people will want to see, it is definitely worth making sure your GitHub is present on the website. ๐Ÿ˜€

CI only runs on commits in main branch

Summary

CI checks will not run on Pull Requests, but instead only run on changes in the main branch.

Background

The current Circle CI config is a single-job workflow (build_and_deploy). There is a filter so the job only runs on commits in the main branch. This is good for deploying new changes to your documentation, but we lose the benefit of making sure the documentation site still builds OK on new changes not yet merged to master.

The solution is to split the single job, build_and_deploy, into two separate jobs: build and deploy.

Details

We need two jobs, one to build the Docusaurus site that runs on all changes, and another job to deploy the built site source only for changes added to main branch. The workflows part of the Circle CI config.yml might look like this:

workflows:
  main:
    jobs:
      - build
      - deploy:
          filters:
            branches:
              only: main
          requires:
            - build

Then you need to split it into two jobs. You will need to use persist_to_workspace and attach_workspace to pass the built HTML artifacts from one job to another.

See FOSSRIT/[email protected]/config.yml and FOSSRIT/[email protected]/deploy.sh for examples of this full workflow.

Outcome

All new changes are always confirmed to build successfully, instead of discovering a change doesn't work after getting it into main

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.