-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/sh | ||
# ============================================================================== | ||
# | ||
# FILE: build-badges.sh | ||
# | ||
# USAGE: ./scripts/build-badges.sh | ||
# | ||
# DESCRIPTION: Script used to generate img/badges/*.svg used to serve | ||
# the README.md files and on the website. | ||
# This is not related to data manipulation. | ||
# | ||
# OPTIONS: --- | ||
# | ||
# REQUIREMENTS: - POSIX Shell or better | ||
# - pybadges | ||
# - See <https://github.com/google/pybadges> | ||
# BUGS: --- | ||
# NOTES: --- | ||
# AUTHORS: Emerson Rocha <rocha[at]ieee.org> | ||
# COLLABORATORS: <@TODO: put additional non-anonymous names here> | ||
# COMPANY: EticaAI | ||
# LICENSE: Public Domain dedication OR Zero-Clause BSD | ||
# SPDX-License-Identifier: Unlicense OR 0BSD | ||
# VERSION: v1.0 | ||
# CREATED: 2021-11-12 16:59 UTC started, based on EticaAI | ||
# /inclusao-digital/imagens/badges | ||
# /build-badges.sh | ||
# ============================================================================== | ||
|
||
# Requeriment: pybadges (see https://github.com/google/pybadges) | ||
# `pip install pybadges` | ||
|
||
# Hint: to do a fast preview, replace '> filename.svg' with '--browser', example: | ||
## python -m pybadges --left-text='Label here' --right-text='Value here' --right-color='#26A65B' --browser | ||
|
||
# python -m pybadges --left-text='Idioma' --right-text='Português' --right-color='#1E90FF' > language-portuguese.svg | ||
# python -m pybadges --left-text='Idioma' --right-text='Traduções são bem vindas!' --right-color='#1E90FF' > language-new.svg | ||
# python -m pybadges --left-text='Versão' --right-text='1.0.0-beta' --right-color='#808080' > version.svg | ||
|
||
# python -m pybadges --left-text='Situação' --right-text='Trabalho em progresso' --right-color='#FF773D' > status-work-in-progress.svg | ||
python3 -m pybadges --left-text='Downloads' --right-text='Releases' --right-color='#1E90FF' > img/badges/download-releases.svg | ||
|
||
python3 -m pybadges --left-text='GitHub' --right-text='EticaAI/tico-19-hxltm' --right-color='#237c02' > img/badges/github.svg | ||
python3 -m pybadges --left-text='Website' --right-text='tico-19-hxltm.etica.ai' --right-color='#237c02' > img/badges/website.svg | ||
|
||
#python -m pybadges --left-text='Comunidades' --right-text='2' --right-color='#26A65B' > grupos-total.svg | ||
#python -m pybadges --left-text='Gratuidades' --right-text='3' --right-color='#1E90FF' > gratuidades-total.svg | ||
#python -m pybadges --left-text='Desenvolvimento em smartphone' --right-text='5' --right-color='#FF773D' > smartphone-total.svg | ||
#python -m pybadges --left-text='Serviços Online' --right-text='2' --right-color='#9400D3' > servicos-online-total.svg | ||
#python -m pybadges --left-text='Africa' --right-text='1' --right-color='#1E90FF' > orgs-africa.svg | ||
#python -m pybadges --left-text='Asia' --right-text='2' --right-color='#1E90FF' > orgs-asia.svg | ||
#python -m pybadges --left-text='Europe' --right-text='4' --right-color='#1E90FF' > orgs-europe.svg | ||
#python -m pybadges --left-text='North America' --right-text='6' --right-color='#1E90FF' > orgs-north-america.svg | ||
|
||
# There have other color: | ||
#python -m pybadges --left-text='Oceania' --right-text='Need your help!' --right-color='#FF773D' > orgs-oceania.svg | ||
#python -m pybadges --left-text='South America' --right-text='Need your help!' --right-color='#FF773D' > orgs-south-america.svg | ||
|
||
# Other badges | ||
# Other | ||
#python -m pybadges --left-text='Strategies to find A/IS ethics organizations' --right-text='3' --right-color='#9400D3' > other-strategies.svg | ||
|
||
# Extra badges | ||
# python -m pybadges --left-text='Status' --right-text='Work in progress' --right-color='#FF773D' > status-work-in-progress.svg |