-
Notifications
You must be signed in to change notification settings - Fork 126
Description
OATutor separates its content into a separate repository OATutor-Content. However, while the text based data is stored in the content repository, the images are stored directly in the tutor repository in public/static/images/figures/oatutor. Additionally, #37 renames the images to the tutor repository while #29 adds demo content directly to the repository once again.
Images should be with the rest of the content while the demo content should be in its own repository to be merged in. Images can be directly within the src folder and not references within the public. However, this requires changes to the figures path at
| const staticFiguresPath = path.join(__dirname, '..', '..', 'public', 'static', 'images', 'figures', CONTENT_SOURCE) |
OATutor/src/components/RenderMedia.js
Line 36 in c7eb025
| return <ZoomImage src={`${process.env.PUBLIC_URL}/static/images/figures/${contentSource}/${problemID}/${url}`} |
In general, it should work similarly to the content submodule where each individual folder can contain the content to add to the platform.