Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Latest commit

 

History

History
53 lines (37 loc) · 1.48 KB

banner.md

File metadata and controls

53 lines (37 loc) · 1.48 KB

Hacktoberfest Banner

Hacktoberfest Banner

  • This banner is dynamically generated
  • It updates every hour

How to use

You can use this banner from the given link

https://api.codinasion.org/hacktoberfest/banner

or use directly in README.md

![Hacktoberfest Banner](https://api.codinasion.org/hacktoberfest/banner)
<img src="https://api.codinasion.org/hacktoberfest/banner" alt="Hacktoberfest Banner">

How to generate

  1. Provide a static banner
  2. Calculate the number of days and hours left for Hacktoberfest
  3. Add the number of days and hours left to the static banner
  4. Save the generated banner
  5. Push to different branch ( optional )
    • to avoid unnecessary commits
  6. Use the generated banner from the raw link or by an API ( optional )

Code

You can find the code for generating the banner in generate-banner.py

For generating the banner every hour and push to different branch, you can use banner.yml workflow

Basic Flow Chart

flowchart TD;
    A[Static image] -- Every Hour --> B{Generate Function};
    B -- Get Remaining Days and Hours --> C[Add text on static image];
    C --> D[Push to banner branch];
    D -- Fetch dynamic image --> E[API];
    E --> F[Client];
Loading

Learn more about creating this type of flow chart in this github blog