Skip to content

Commit

Permalink
Create the Data Liberation handbook importer.
Browse files Browse the repository at this point in the history
This requires that the site be running the 'Handbook' and 'Wporg Markdown' plugins.
  • Loading branch information
dd32 authored Dec 20, 2023
1 parent 1398527 commit 05fadc6
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace WordPressdotorg\Theme\Main_2022;

defined( 'WPINC' ) || die();

add_filter( 'handbooks_config', __NAMESPACE__ . '\add_data_liberation_handbook' );

/**
* Configures the Data liberation "handbook" (guides).
*
* Requires the site to be running the Handbook & WPORG Markdown plugins.
*/
function add_data_liberation_handbook( $handbooks ) {
$handbooks['and'] = [
'label' => 'Data Liberation Guides',
'manifest' => 'https://raw.githubusercontent.com/WordPress/data-liberation/add/manifest/assets/manifest.json', // TODO: See https://github.com/WordPress/data-liberation/pull/46
'slug' => 'and',
];

return $handbooks;
} );

0 comments on commit 05fadc6

Please sign in to comment.