Remove Documentation Panels

Each GB block has a Documentation panel that acts as a shortcut to the documentation for that block.

If you wish to remove these, you can use this snippet:

add_action( 'admin_footer', function() {
	if ( ! function_exists( 'get_current_screen' ) ) {
		return;
	}

	$screen = get_current_screen();

	if ( ! $screen->is_block_editor ) {
		return;
	}
	?>
	<script>
		wp.hooks.addFilter(
			'generateblocks.editor.showPanel',
			'removeDocumentationPanels',
			function( showPanel, id ) {
				var panels = [ 'buttonContainerDocumentation', 'buttonDocumentation', 'containerDocumentation', 'gridDocumentation', 'headlineDocumentation' ];

				if ( panels.includes( id ) ) {
					showPanel = false;
				}

				return showPanel;
			}
		);
	</script>
	<?php
} );