Skip to content

Commit

Permalink
Merge pull request #27 from unicef/develop
Browse files Browse the repository at this point in the history
dev 2 main
  • Loading branch information
domdinicola authored Nov 27, 2024
2 parents fb1bcaa + 868d468 commit 3e14723
Show file tree
Hide file tree
Showing 27 changed files with 1,396 additions and 1,641 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ jobs:
- name: Install mkDocs
run: |
sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
pip install pdm
pdm install
pdm run mkdocs build -d ./docs-output
pip install uv
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH"
export DYLD_LIBRARY_PATH="/usr/local/lib:/opt/homebrew/lib:$DYLD_LIBRARY_PATH"
uv sync
uv run mkdocs build -d ./docs-output
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
__pycache__

!.github

dist/
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ This Repo is used to manage the official HOPE documentation

## Install

$ pdm install
$ pdm venv activate in-project
$ uv sync
$ uv build

#### Using .envrc

add in your .envrc

eval $(pdm venv activate in-project)
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH"
export DYLD_LIBRARY_PATH="/usr/local/lib:/opt/homebrew/lib:$DYLD_LIBRARY_PATH"
source .venv/bin/activate


#### Start
$ mkdocs build
Expand Down
4 changes: 2 additions & 2 deletions docs/components/.pages
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ nav:

- Aurora: aurora
- Kobo: kobo
- Payment Gateway: pg
- Payment Gateway: pg.md
- Country Report: reporting
- Deduplication: hde
- RapidPro: rapidpro
# - workspace.md
- Workspace: workspace.md
2 changes: 1 addition & 1 deletion docs/components/hde/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tags:

## Prerequisites

This project utilizes [PDM](https://pdm-project.org/) as the package manager for managing Python dependencies and environments.
This project utilizes [UV](https://docs.astral.sh/uv/) as the package manager for managing Python dependencies and environments.

To successfully set up and run this project, ensure that you have the following components in place:

Expand Down
7 changes: 4 additions & 3 deletions docs/components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ systems and platforms, ensuring smooth workflows and easy expansion as your need

- [Country Report](reporting/index.md)

- [Payment Gateway](pg/index.md)
- [Payment Gateway](pg.md)

- [Country Workspace](workspace/index.md)
- [Country Workspace](workspace.md)

- [RapidPro](rapidpro/index.md)

- User Management Module _(not yet released)_

- [RapidPro](rapidpro/index.md)


## Hope supporting libraries
Expand Down
8 changes: 8 additions & 0 deletions docs/components/pg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Payment Gateway

The Integration between HOPE and any FSP is performed through a middleware service called Payment Gateway (PG).
HOPE sends to the PG information regarding Payments through web API.
Each FSP can have a different way to interact with the payment gateway with though strategy pattern.

<https://unicef.github.io/hope-payment-gateway/>{:target="_blank"}

4 changes: 0 additions & 4 deletions docs/components/pg/.pages

This file was deleted.

49 changes: 0 additions & 49 deletions docs/components/pg/index.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/components/pg/setup/.pages

This file was deleted.

1 change: 0 additions & 1 deletion docs/components/pg/setup/docker.md

This file was deleted.

Empty file removed docs/components/pg/setup/index.md
Empty file.
37 changes: 0 additions & 37 deletions docs/components/pg/setup/virtualenv.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/components/pg/wu/.pages

This file was deleted.

29 changes: 0 additions & 29 deletions docs/components/pg/wu/actions.md

This file was deleted.

46 changes: 0 additions & 46 deletions docs/components/pg/wu/index.md

This file was deleted.

42 changes: 0 additions & 42 deletions docs/components/pg/wu/statuses.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/components/workspace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Country Workspace

<https://unicef.github.io/hope-country-workspace/>{:target="_blank"}
3 changes: 0 additions & 3 deletions docs/components/workspace/.pages

This file was deleted.

3 changes: 0 additions & 3 deletions docs/components/workspace/index.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/components/workspace/setup.md

This file was deleted.

Loading

0 comments on commit 3e14723

Please sign in to comment.