Skip to content

Images and Demonstration Content in Non-Content Repository #39

@ahaim5357

Description

@ahaim5357

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)

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions