mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
feature-search: add command
This commit is contained in:
parent
2eb4f73c5e
commit
269ba583fd
3 changed files with 8 additions and 3 deletions
|
@ -1,10 +1,11 @@
|
|||
<?php
|
||||
register_module([
|
||||
"name" => "Search",
|
||||
"version" => "0.11",
|
||||
"version" => "0.12",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Adds proper search functionality to Pepperminty Wiki using an inverted index to provide a full text search engine. If pages don't show up, then you might have hit a stop word. If not, try requesting the `invindex-rebuild` action to rebuild the inverted index from scratch.",
|
||||
"id" => "feature-search",
|
||||
// After refactoring, we'll need to specify dependencies like this
|
||||
// "depends" => [ "search-engine" ],
|
||||
"code" => function() {
|
||||
global $settings, $paths;
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
<?php
|
||||
register_module([
|
||||
"name" => "Page viewer",
|
||||
"version" => "0.16.7",
|
||||
"version" => "0.16.8",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Allows you to view pages. You really should include this one.",
|
||||
"id" => "page-view",
|
||||
// Another random protection to ensure the credits are included
|
||||
// The aim is to make it as annoying as possible to disentangle the credits from the rest of Pepperminty Wiki
|
||||
// If you're reading this, you should know that credits are really important - lots of people have put in a huge amount of time and effort to make Pepperminty Wiki what it is today!
|
||||
"depends" => [ "page-credits" ],
|
||||
"code" => function() {
|
||||
/**
|
||||
* @api {get} ?action=view[&page={pageName}][&revision=rid][&printable=yes][&mode={mode}] View a page
|
||||
|
|
2
pack.php
2
pack.php
|
@ -115,7 +115,7 @@ log_str("Scanning for dependencies...\n");
|
|||
$module_count = count($module_list);
|
||||
for($i = 0; $i < $module_count; $i++) {
|
||||
foreach($module_list[$i]->depends as $dependency) {
|
||||
echo("scanning {$module_list[$i]->id}: $dependency\n");
|
||||
// echo("scanning {$module_list[$i]->id}: $dependency\n");
|
||||
if(!module_list_search($module_list, $dependency)) {
|
||||
log_str("Adding missing dependency $dependency for {$module_list[$i]->id}\n");
|
||||
$missing_dependency = module_list_find($module_index, $dependency);
|
||||
|
|
Loading…
Reference in a new issue