Skip to content

Conversation

osinjoku
Copy link
Contributor

@osinjoku osinjoku commented Sep 23, 2025

Description

Add more examples in docs (including PowerPoint generation) and allow deploying docs without trying to push to PyPI.

Fixes # N/A.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

Please delete options that are not relevant.

  • I have read the CONTRIBUTING document
  • My code follows the style guidelines of this project
  • I have updated the documentation accordingly

Testing

Tested new examples locally.

Additional Notes

Add any other context about the pull request here.

osinjoku and others added 4 commits September 12, 2025 23:49
* fix types and remove non-existing function

* fix tests

* fix color band range

* increment patch number

* fix range and tests

* changelog

* bring back function

* more tests

* missing include

* typo

* better docstrings

* correctness

* ws
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request enhances the documentation with comprehensive Moldflow API examples and adds flexibility to the publishing workflow. The changes provide practical code examples for advanced Moldflow operations while allowing documentation-only releases.

  • Added extensive advanced examples covering data transformation, diagnostics, boundary conditions, and PowerPoint report generation
  • Modified the GitHub Actions workflow to support documentation-only publishing
  • Enhanced the documentation with real-world use cases and complex API interactions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/source/readme.rst Added comprehensive advanced examples including derived results, vector operations, coolant endpoints, and PowerPoint report generation
.github/workflows/publish.yml Added docs_only input parameter and conditional logic to skip package publishing steps when only updating documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@osinjoku osinjoku changed the title Feature/better examples Improve examples in docs Sep 23, 2025
@osinjoku osinjoku marked this pull request as ready for review October 2, 2025 15:10
@osinjoku osinjoku requested a review from LiawChungYao October 2, 2025 15:10
@osinjoku osinjoku changed the base branch from release/26 to main October 7, 2025 14:40
@osinjoku osinjoku self-assigned this Oct 9, 2025
Comment on lines 1062 to 1065
# If capture produced an unexpectedly small file, fallback attempt with result=False
try:
if os.path.getsize(tmp.name) < 12000 and plot is not None:
# Fallback: capture without result overlay in case the plot layer isn't rendering
Copy link
Collaborator

@LiawChungYao LiawChungYao Oct 9, 2025

Choose a reason for hiding this comment

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

Are these comments verified because the people who are analyzing the sample will be carefully going through these

@osinjoku osinjoku merged commit 6fa7406 into main Oct 9, 2025
19 checks passed
@osinjoku osinjoku deleted the feature/better-examples branch October 9, 2025 01:59
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.

3 participants