-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Aurélien Bompard <[email protected]>
- Loading branch information
Showing
12 changed files
with
329 additions
and
361 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
coverage.xml | ||
data | ||
docs/_build | ||
docs/_source | ||
htmlcov | ||
*.swo | ||
*.db | ||
|
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,28 @@ | ||
--- | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
formats: | ||
- htmlzip | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
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 |
---|---|---|
@@ -1,64 +1,18 @@ | ||
# Tahrir | ||
> fedora-badges https://badges.fedoraproject.org/ | ||
|
||
Tahrir is an application used by the Fedora Project for issuing [Open | ||
Badges][open-badges]. As per the [about][ob-about] page: | ||
Tahrir is a [Flask](https://flask.palletsprojects.com/) application used by the Fedora Project for | ||
issuing [Open Badges](https://openbadges.org). As per the [about](https://openbadges.org/about/) page: | ||
|
||
> The concept of Open Badges originated among those working at the Mozilla and | ||
> MacArthur foundations, and out of the research of Erin Knight, founding | ||
> director of the Open Badges project at Mozilla. | ||
Originally, information was hosted on the [Mozilla Wiki][moz-badges]. | ||
|
||
Tahrir is [Arabic for Liberation][wikipedia-tahrir] | ||
|
||
## Contributing | ||
|
||
Welcome! Thank you for taking the time to contribute. This project relies on an active and involved community, and we really appreciate your support. | ||
|
||
### Quickstart | ||
|
||
1. Look for an [existing issue](https://github.com/fedora-infra/tahrir/issues) | ||
about the bug or feature you're interested in. If you can't find an existing issue, create a [new one](https://github.com/fedora-infra/tahrir/issues/new). | ||
|
||
2. Fork the [repository on GitHub](https://github.com/fedora-infra/tahrir). | ||
|
||
3. Fix the bug or add the feature, and then write one or more tests which show the bug is fixed or the feature works. | ||
|
||
4. Submit a pull request and wait for a maintainer to review it. | ||
|
||
More detailed guidelines to help ensure your submission goes smoothly are below. | ||
|
||
### Guidelines | ||
|
||
#### Tests | ||
|
||
The test suites can be run using [tox](http://tox.readthedocs.io/) by simply | ||
running ``tox`` from the repository root. We aim for all code to have test coverage or be explicitly marked as not covered using the ``# no-qa`` comment. We encourage the [Test Driven Development Practice](http://www.extremeprogramming.org/rules/testfirst.html) | ||
|
||
Your pull request should contain tests for your new feature or bug fix. If you're not certain how to write tests, we will be happy to help you. | ||
|
||
#### Setup a local development environment | ||
|
||
To quickly start hacking on Tahrir, we provide a vagrant setup. | ||
|
||
1. Set up tinystage (if you haven't already) and ensure the base boxes are running. | ||
|
||
https://github.com/fedora-infra/tiny-stage | ||
|
||
This sets up the infrastructure to use things like authentication and Fedora Messaging when developing on Tahrir | ||
|
||
2. Clone the repository to your local storage and run | ||
|
||
``` | ||
vagrant up | ||
``` | ||
[moz-badges]: https://wiki.mozilla.org/index.php?title=Badges&oldid=1170927 | ||
|
||
3. Tahrir frontend should now be available on https://badges.tinystage.test. | ||
Tahrir is [Arabic for Liberation](http://en.wikipedia.org/wiki/Tahrir_Square). | ||
The name is total overkill. | ||
|
||
[open-badges]: https://openbadges.org | ||
[ob-about]: https://openbadges.org/about/ | ||
[moz-badges]: https://wiki.mozilla.org/index.php?title=Badges&oldid=1170927 | ||
[wikipedia-tahrir]: http://en.wikipedia.org/wiki/Tahrir_Square | ||
[contributing]: https://github.com/fedora-infra/tahrir/blob/develop/CONTRIBUTING.md | ||
[developing]: https://github.com/fedora-infra/tahrir/blob/develop/DEVELOPING.md | ||
You can see Tahrir deployed in [production](https://badges.fedoraproject.org/), or in | ||
the [staging instance](https://badges.stg.fedoraproject.org/). |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.