Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images and Demonstration Content in Non-Content Repository #39

Open
ahaim5357 opened this issue Jul 22, 2023 · 0 comments
Open

Images and Demonstration Content in Non-Content Repository #39

ahaim5357 opened this issue Jul 22, 2023 · 0 comments
Assignees

Comments

@ahaim5357
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants