Skip to content

Commit

Permalink
Fix build-doc github action failure (#3082)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabacon committed Jun 9, 2020
1 parent 8cc7d93 commit c69af97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ run experiments.
cirq.experiments.GRID_ALIGNED_PATTERN
cirq.experiments.GRID_STAGGERED_PATTERN
cirq.experiments.build_entangling_layers
cirq.experiments.cross_entropy_benchmarking
.. autofunction:: cirq.experiments.cross_entropy_benchmarking
cirq.experiments.get_state_tomography_data
cirq.experiments.rabi_oscillations
cirq.experiments.random_rotations_between_grid_interaction_layers_circuit
Expand Down Expand Up @@ -592,7 +592,7 @@ operation.
cirq.testing.asyncio_pending
cirq.testing.highlight_text_differences
cirq.testing.nonoptimal_toffoli_circuit
cirq.testing.random_circuit
.. autofunction:: cirq.testing.random_circuit
cirq.testing.random_density_matrix
cirq.testing.random_orthogonal
cirq.testing.random_special_orthogonal
Expand Down
4 changes: 3 additions & 1 deletion docs/docs_coverage_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def _api_rst_fullnames_per_section() -> List[List[str]]:
if section:
result.append(section)
section = []
elif ' cirq.' in line or ' .. autoclass:: cirq.' in line:
elif (' cirq.' in line or ' .. autoclass:: cirq.' in line or
' .. autofunction:: cirq.' in line):
fullname = line[line.find('cirq'):].strip()
if fullname in seen:
# coverage: ignore
Expand All @@ -62,6 +63,7 @@ def _api_rst_fullnames_per_section() -> List[List[str]]:
return result



def test_public_values_equals_documented_values():
in_actual_api = _all_public()
in_api_reference = {
Expand Down

0 comments on commit c69af97

Please sign in to comment.