Skip to content

Conversation

@munechika-koyo
Copy link
Contributor

@munechika-koyo munechika-koyo commented Aug 7, 2025

Issues

TODO list

Preview demo site

The modified documentation site preview is available here:
https://munechika-koyo.github.io/source/

@munechika-koyo
Copy link
Contributor Author

Displaying version at the top of the sidebar seems deprecated since v3: https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html#confval-display_version

@munechika-koyo
Copy link
Contributor Author

munechika-koyo commented Aug 7, 2025

BSDF-related codes were deleted (#349), but some documents still remain:

* - :ref:`Polar BRDF plots <demo_polar_brdf_plots>`
- Producing polar plots of material BRDFs.
- .. image:: materials/brdf_polar_plots.png
:height: 150px
:width: 150px
* - :ref:`3D surface BRDF plots <demo_surface3d_brdf_plots>`
- Producing 3D surface plots of material BRDFs.
- .. image:: materials/brdf_surface3d_plots.png
:height: 150px
:width: 150px

The missing demo scripts trigger warnings during a document build like this:

WARNING: Include file '.../source/demos/reflectivity/plotting_brdfs.py' not found or reading it failed [docutils]
WARNING: Include file '.../source/demos/reflectivity/plotting_brdfs_3d.py' not found or reading it failed [docutils]

How should we handle this?

@munechika-koyo
Copy link
Contributor Author

Additionally, there are many outdated RST files visible:

source/docs/source/api_reference/core/raysect_core_kdtree.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/architecture.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/core/energy_conservation.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/core/multiple_importance_sampling.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/core/ray_intersection_points.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/core/world_contains_point.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/anisotropic_emitters.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/diamond.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/diffuse_colours.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/emissive_colours.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/glass_bunny.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/metal_materials.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/polar_brdf_plots.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/surface3d_brdf_plots.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/surface_roughness.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/tetrahedra_mesh_emitter.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/materials/volume_inhomogeneous.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/observers/animations.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/observers/cornell_box.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/observers/cornell_box_with_camera.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/observers/mesh_observers.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/observers/metal_balls_with_lens.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/observers/optical_fibre.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/observers/orthographic_camera.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/optics/etendue_of_pinhole.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/demonstrations/optics/prism.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/quickstart_more.rst: WARNING: document isn't included in any toctree [toc.not_included]
source/docs/source/sampling.rst: WARNING: document isn't included in any toctree [toc.not_included]

@munechika-koyo munechika-koyo marked this pull request as ready for review August 9, 2025 15:01
@munechika-koyo munechika-koyo marked this pull request as draft August 9, 2025 21:24
@munechika-koyo munechika-koyo marked this pull request as ready for review August 14, 2025 09:36
@CnlPepper
Copy link
Member

Thanks for working to update the docs. I didn't have time to go through them. Feel free to clean up any stale files, they will be in the repository history. Happy to merge this when you are ready.

@munechika-koyo
Copy link
Contributor Author

I got it! @CnlPepper
I would try to delete all obsolete files.

Regarding BRDF plotting demo issue, I would also try to figure out how to reproduce demo scripts.

@munechika-koyo munechika-koyo marked this pull request as draft August 31, 2025 13:58
Apply correct types, Fix error strings and Fix error indent
demo docs are referenced with the internal hyperlink, so add `:orphan:` to remove not-included into toctree warning.
@munechika-koyo
Copy link
Contributor Author

There are still warnings about cross-referencing classes, as shown below.
Their classes are located in different modules under raysect.core or raysect.optical.
Removing these warnings requires a precise specification like ~raysect.core.ray.Ray, not just Ray, for each type declaration in the docstring.
Because it is tedious and loses simplicity, we should keep them as warnings.

WARNING: more than one target found for cross-reference 'Ray': raysect.core.ray.Ray, raysect.optical.ray.Ray [ref.python]
WARNING: more than one target found for cross-reference 'World': raysect.core.scenegraph.world.World, raysect.optical.scenegraph.world.World [ref.python]
WARNING: more than one target found for cross-reference 'Function1D': raysect.core.math.function.float.function1d.base.Function1D, raysect.core.math.function.vector3d.function1d.base.Function1D [ref.python]
WARNING: more than one target found for cross-reference 'Function2D': raysect.core.math.function.float.function2d.base.Function2D, raysect.core.math.function.vector3d.function2d.base.Function2D [ref.python]
WARNING: more than one target found for cross-reference 'Function3D': raysect.core.math.function.float.function3d.base.Function3D, raysect.core.math.function.vector3d.function3d.base.Function3D [ref.python]

Note that it might be necessary if we need to guide users to correct API definitions.

@munechika-koyo
Copy link
Contributor Author

munechika-koyo commented Sep 1, 2025

There are still some warnings, except for those mentioned above (build log). However, this PR should be ready for review @CnlPepper .

The other warning:

WARNING: duplicate object description of raysect.primitive.Sphere, other instance in api_reference/primitives/geometric_primitives, use :no-index: for one of them
...

seems to be related to the fact that the Sphere class API docs are generated not only for API pages but also for the primitive page.

@munechika-koyo munechika-koyo marked this pull request as ready for review September 1, 2025 14:05
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.

2 participants