docker-compose exec cms pip install -e /openedx/requirements/eol_img_annotation
docker-compose exec lms pip install -e /openedx/requirements/eol_img_annotation
docker-compose exec lms python manage.py lms --settings=prod.production makemigrations
docker-compose exec lms python manage.py lms --settings=prod.production migrate
Prepare tests:
- Install act following the instructions in https://nektosact.com/installation/index.html
Run tests:
- In a terminal at the root of the project
act -W .github/workflows/pythonapp.yml
Add the following code here ../themes/your_theme/cms/templates/container.html
<% have_img_annotation = False %>
%for child in xblock.children:
%if child.block_type == 'img_annotation':
<% have_img_annotation = True %>
% endif
% endfor
% if have_img_annotation:
<script id='openseadragon-scripts' type="text/javascript" src="${static.url('js/src/openseadragon.5.0.1.min.js')}"></script>
<script type="text/javascript" src="${static.url('js/src/openseadragon-annotorious.min.js')}"></script>
<script type="text/javascript" src="${static.url('js/src/annotorious-toolbar.min.js')}"></script>
% endif