@@ -78,3 +78,32 @@ method or attribute on its own page.
7878 pyansys_sphinx_theme.samples.Complex.real
7979 pyansys_sphinx_theme.samples.Complex.imag
8080 pyansys_sphinx_theme.samples.Complex.abs
81+
82+
83+ Documenting Multiple Classes Together
84+ -------------------------------------
85+
86+ To document a set of small but highly cohesive classes, an option
87+ is to combine the two approaches described above. This is done by
88+ including multiple ``autoclass `` directives on the same page with
89+ headings and text blocks as necessary to describe the
90+ relationships between the classes.
91+
92+ For example, the Granta MI BoM Analytics
93+ :external+grantami-bomanalytics:doc: `Part Compliance page <api/compliance/parts >`
94+ first describes the
95+ :external+grantami-bomanalytics:class: `~ansys.grantami.bomanalytics.queries.PartComplianceQuery `
96+ class, and then describes the
97+ :external+grantami-bomanalytics:class: `~ansys.grantami.bomanalytics._query_results.PartComplianceQueryResult `,
98+ and
99+ :external+grantami-bomanalytics:class: `~ansys.grantami.bomanalytics._item_results.PartWithComplianceResult `
100+ classes returned by the query. The classes are only ever
101+ encountered together in this context, so they are documented on a
102+ single page.
103+
104+ In contrast, the
105+ :external+grantami-bomanalytics:class: `~ansys.grantami.bomanalytics.indicators.RoHSIndicator `
106+ and
107+ :external+grantami-bomanalytics:class: `~ansys.grantami.bomanalytics.indicators.WatchListIndicator `
108+ classes are shared across multiple queries, and so they are
109+ documented separately.
0 commit comments