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

Removed need for copy_build_artifacts in the doc build process. #1100

Merged
merged 9 commits into from
Aug 15, 2024

Conversation

robfalck
Copy link
Contributor

Summary

copy_build_artifacts.py was used to copy over html files, images, and other files for the documentation. This functionality was mostly needed with older versions of jupyterbook and when IFrame was used for the display of content.

Using ipython.display.HTML instead causes the displayed files to be included in the _build directory without copying over everything.

This should have a significant impact on the size of the documentation generated.

Note that when using ipython.display.HTML, the output should be wrapped in a div with the height included so that jupterbook doesn't make the output cell too short to be useful.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@robfalck robfalck requested a review from swryan August 14, 2024 14:48
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@coveralls
Copy link

coveralls commented Aug 14, 2024

Coverage Status

coverage: 92.528% (-0.2%) from 92.733%
when pulling 2a56af7 on robfalck:build_artifacts_refactor
into be40d14 on OpenMDAO:master.

" saved_coloring_dir = f'coloring_files{stfd}{stpc}'\n",
" if os.path.exists(saved_coloring_dir):\n",
" shutil.rmtree(saved_coloring_dir)\n",
" shutil.move(p.get_coloring_dir(mode='output'), saved_coloring_dir)\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per CI failure.. this requires OpenMDAO 3.34.3-dev

@robfalck robfalck force-pushed the build_artifacts_refactor branch from 92b21bf to 2a56af7 Compare August 15, 2024 12:37
@robfalck robfalck merged commit de55c1e into OpenMDAO:master Aug 15, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

Avoid use of copy_build_artifacts.py to copy over all outputs during doc build process.
3 participants