Skip to content

Commit

Permalink
Deploying to gh-pages from @ fc1f375 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Apr 12, 2024
1 parent b579b14 commit 6f5ee64
Show file tree
Hide file tree
Showing 17 changed files with 422 additions and 9 deletions.
1 change: 1 addition & 0 deletions _sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Welcome to Care's documentation!
pycharm/configuration
working-components/configuration
django-configuration/configuration
pluggable-apps/configuration
django-commands/configuration
github-repo/configuration
others/configuration
Expand Down
57 changes: 57 additions & 0 deletions _sources/pluggable-apps/configuration.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Pluggable Apps


## Overview

Care supports plugins that can be used to extend its functionality. Plugins are basically django apps that are defined in the `plug_config.py`.
These plugins can be automatically loaded during docker image build or run time, however its recommended to include them during docker image build time.
The default care image does not include any plugins, but you can create your own plugin config by overriding the `plug_config.py` file.


example `plug_config.py` file:

```python

from plugs.manager import PlugManager
from plugs.plug import Plug

my_plugin = Plug(
name="my_plugin",
package_name="git+https://github.com/octo/my_plugin.git",
version="@v1.0.0",
configs={
"SERVICE_API_KEY": "my_api_key",
"SERVICE_SECRET_KEY": "my_secret_key",
"VALUE_1_MAX": 10,
},
)

plugs = [my_plugin]

manager = PlugManager(plugs)
```

## Plugin config variables

Each plugin will define their own config variables with some defaults, they can also pick the values from the environment variables if required.
The order of precedence is as follows:

- Environment variables
- Configs defined in the `plug_config.py`
- Default values defined in the plugin


## Development

To get started with developing a plugin, use [care-plugin-cookiecutter](https://github.com/coronasafe/care-plugin-cookiecutter)
The plugin follows the structure of a typical django app where you can define your models, views, urls, etc. in the plugin folder.
The plugin manager will automatically load the required configurations and plugin urls under `/api/plugin-name/`.

To develop the plugins locally you can install the plugin in the editable mode using `pip install -e /path/to/plugin`.

If you need to inherit the components from the core app, you can install care in editable mode in the plugin using `pip install -e /path/to/care`.


## Available Plugins

- [Care Scribe](https://github.com/coronasafe/care_scribe): Care Scribe is a plugin that provides autofill functionality for the care consultation forms.
7 changes: 4 additions & 3 deletions django-commands/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head><meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="GitHub Repository" href="../github-repo/configuration.html" /><link rel="prev" title="Environment Variables" href="../django-configuration/configuration.html" />
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="GitHub Repository" href="../github-repo/configuration.html" /><link rel="prev" title="Pluggable Apps" href="../pluggable-apps/configuration.html" />

<!-- Generated with Sphinx 7.2.6 and Furo 2023.09.10 -->
<title>Django Commands - Care documentation</title>
Expand Down Expand Up @@ -160,6 +160,7 @@
<li class="toctree-l1"><a class="reference internal" href="../pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-configuration/configuration.html">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="../others/configuration.html">Other Details</a></li>
Expand Down Expand Up @@ -272,14 +273,14 @@ <h1>Django Commands<a class="headerlink" href="#django-commands" title="Link to
</div>
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
</a>
<a class="prev-page" href="../django-configuration/configuration.html">
<a class="prev-page" href="../pluggable-apps/configuration.html">
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
<div class="page-info">
<div class="context">
<span>Previous</span>
</div>

<div class="title">Environment Variables</div>
<div class="title">Pluggable Apps</div>

</div>
</a>
Expand Down
7 changes: 4 additions & 3 deletions django-configuration/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head><meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Django Commands" href="../django-commands/configuration.html" /><link rel="prev" title="Working Components" href="../working-components/configuration.html" />
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Pluggable Apps" href="../pluggable-apps/configuration.html" /><link rel="prev" title="Working Components" href="../working-components/configuration.html" />

<!-- Generated with Sphinx 7.2.6 and Furo 2023.09.10 -->
<title>Environment Variables - Care documentation</title>
Expand Down Expand Up @@ -160,6 +160,7 @@
<li class="toctree-l1"><a class="reference internal" href="../pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="../others/configuration.html">Other Details</a></li>
Expand Down Expand Up @@ -238,12 +239,12 @@ <h2><code class="docutils literal notranslate"><span class="pre">TASK_SUMMARIZE_
<footer>

<div class="related-pages">
<a class="next-page" href="../django-commands/configuration.html">
<a class="next-page" href="../pluggable-apps/configuration.html">
<div class="page-info">
<div class="context">
<span>Next</span>
</div>
<div class="title">Django Commands</div>
<div class="title">Pluggable Apps</div>
</div>
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
</a>
Expand Down
1 change: 1 addition & 0 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
<li class="toctree-l1"><a class="reference internal" href="pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1"><a class="reference internal" href="django-configuration/configuration.html">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="others/configuration.html">Other Details</a></li>
Expand Down
1 change: 1 addition & 0 deletions github-repo/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
<li class="toctree-l1"><a class="reference internal" href="../pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-configuration/configuration.html">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="../others/configuration.html">Other Details</a></li>
Expand Down
1 change: 1 addition & 0 deletions glossary/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
<li class="toctree-l1"><a class="reference internal" href="../pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-configuration/configuration.html">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="../others/configuration.html">Other Details</a></li>
Expand Down
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
<li class="toctree-l1"><a class="reference internal" href="pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1"><a class="reference internal" href="django-configuration/configuration.html">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="others/configuration.html">Other Details</a></li>
Expand Down Expand Up @@ -245,6 +246,13 @@ <h1>Welcome to Care’s documentation!<a class="headerlink" href="#welcome-to-ca
<li class="toctree-l2"><a class="reference internal" href="django-configuration/configuration.html#task-summarize-district-patient"><code class="docutils literal notranslate"><span class="pre">TASK_SUMMARIZE_DISTRICT_PATIENT</span></code></a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="pluggable-apps/configuration.html">Pluggable Apps</a><ul>
<li class="toctree-l2"><a class="reference internal" href="pluggable-apps/configuration.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="pluggable-apps/configuration.html#plugin-config-variables">Plugin config variables</a></li>
<li class="toctree-l2"><a class="reference internal" href="pluggable-apps/configuration.html#development">Development</a></li>
<li class="toctree-l2"><a class="reference internal" href="pluggable-apps/configuration.html#available-plugins">Available Plugins</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="others/configuration.html">Other Details</a><ul>
Expand Down
1 change: 1 addition & 0 deletions local-setup/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
<li class="toctree-l1"><a class="reference internal" href="../pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-configuration/configuration.html">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="../others/configuration.html">Other Details</a></li>
Expand Down
1 change: 1 addition & 0 deletions middleware/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
<li class="toctree-l1"><a class="reference internal" href="../pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-configuration/configuration.html">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1"><a class="reference internal" href="../others/configuration.html">Other Details</a></li>
Expand Down
6 changes: 4 additions & 2 deletions objects.inv
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
# Project: Care
# Version:
# The remainder of this file is compressed using zlib.
xڍ�MN�0��>�9@@lٶXTT �ډ���D�iɎkp=N��R���<߼7yc�OfVj� w7�)�e^����;��n)��[�]�]d�ZN���ro�Ң�`<}cV�Z�#�4�FE�jP���4u>�DH߆���ay�"��� 5}�e'=ڞ��1��HNY/���r����b�@}��Y���q4RaHbԺ"
�*>t�A�P�y�4t��vc�p��hɹ�]��Rb����f��Ũ��@�|b�]_� Ia�<(�;E߂���S�$�<T�<�ʑ� ��޷��l��oZfuy�I ����<։$�m��Y��~Yc}���M�h�&�i&�Kl�q�^t���"�j
xڍ��N� ��<>@5nݙ�.&6�蚖+E)��3cw����H �����k�����5�-��]ըߥ�y��:�o8ִ��| �l|��z@�*#d���G�Y:u��[iQ��=}eV�J�#���E�*P�渚v>��DH߄��`p��,���}�e'=ڎ��1�-HNY/��� yב�7P1}�>F�,�~�8��'1h]�5S�̼�Y(�y�4�a
�5b'��\�.���2Ǥ&+���.FM7{���'n�t�XH
�AA�S�؅ᝪ'���B���T����`�,�-qI� z rd�̹��7����LW7̶ ~���(��N�A��$���S/im���^2d��3
�oߠ����96�r��_E��Xݱ�
Expand Down
1 change: 1 addition & 0 deletions others/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
<li class="toctree-l1"><a class="reference internal" href="../pycharm/configuration.html">Debugging with Pycharm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../working-components/configuration.html">Working Components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-configuration/configuration.html">Environment Variables</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pluggable-apps/configuration.html">Pluggable Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../django-commands/configuration.html">Django Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../github-repo/configuration.html">GitHub Repository</a></li>
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Other Details</a></li>
Expand Down
Loading

0 comments on commit 6f5ee64

Please sign in to comment.