forked from tildeverse/tilde.chat
update tildeteam/wiki to 1.0
This commit is contained in:
parent
33c32438cb
commit
0cf52cf4b0
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"tildeteam/wiki": "^0.1.0"
|
"tildeteam/wiki": "^1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
36
composer.lock
generated
36
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "3779848aa146daecd3839d2d90aab35b",
|
"content-hash": "21b797601a3035a039996278b8e9b035",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "erusev/parsedown",
|
"name": "erusev/parsedown",
|
||||||
|
@ -50,10 +50,6 @@
|
||||||
"markdown",
|
"markdown",
|
||||||
"parser"
|
"parser"
|
||||||
],
|
],
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/erusev/parsedown/issues",
|
|
||||||
"source": "https://github.com/erusev/parsedown/tree/1.7.x"
|
|
||||||
},
|
|
||||||
"time": "2019-12-30T22:54:17+00:00"
|
"time": "2019-12-30T22:54:17+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -101,10 +97,6 @@
|
||||||
"parsedown",
|
"parsedown",
|
||||||
"parser"
|
"parser"
|
||||||
],
|
],
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/erusev/parsedown-extra/issues",
|
|
||||||
"source": "https://github.com/erusev/parsedown-extra/tree/0.8.x"
|
|
||||||
},
|
|
||||||
"time": "2019-12-30T23:20:37+00:00"
|
"time": "2019-12-30T23:20:37+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -140,10 +132,6 @@
|
||||||
"license": [
|
"license": [
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/mnapoli/FrontYAML/issues",
|
|
||||||
"source": "https://github.com/mnapoli/FrontYAML/tree/1.8.0"
|
|
||||||
},
|
|
||||||
"time": "2020-12-04T10:52:19+00:00"
|
"time": "2020-12-04T10:52:19+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -194,9 +182,6 @@
|
||||||
],
|
],
|
||||||
"description": "A generic function and convention to trigger deprecation notices",
|
"description": "A generic function and convention to trigger deprecation notices",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/deprecation-contracts/tree/master"
|
|
||||||
},
|
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"url": "https://symfony.com/sponsor",
|
"url": "https://symfony.com/sponsor",
|
||||||
|
@ -273,9 +258,6 @@
|
||||||
"polyfill",
|
"polyfill",
|
||||||
"portable"
|
"portable"
|
||||||
],
|
],
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1"
|
|
||||||
},
|
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"url": "https://symfony.com/sponsor",
|
"url": "https://symfony.com/sponsor",
|
||||||
|
@ -348,9 +330,6 @@
|
||||||
],
|
],
|
||||||
"description": "Loads and dumps YAML files",
|
"description": "Loads and dumps YAML files",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/yaml/tree/v5.2.5"
|
|
||||||
},
|
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"url": "https://symfony.com/sponsor",
|
"url": "https://symfony.com/sponsor",
|
||||||
|
@ -369,20 +348,23 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tildeteam/wiki",
|
"name": "tildeteam/wiki",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://tildegit.org/team/tildewiki",
|
"url": "https://tildegit.org/team/tildewiki",
|
||||||
"reference": "accb34f9648c7137a605df77b66d2dab570d81ca"
|
"reference": "519497aa9ed64b5f614a544d98096e448b8860e2"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"erusev/parsedown-extra": "^0.8.1",
|
"erusev/parsedown-extra": "^0.8.1",
|
||||||
"mnapoli/front-yaml": "^1.8.0"
|
"mnapoli/front-yaml": "^1.8.0"
|
||||||
},
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^9.5"
|
||||||
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"tildeteam\\wiki\\": "src/"
|
"tildeteam\\": "src/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
@ -403,7 +385,7 @@
|
||||||
"markdown",
|
"markdown",
|
||||||
"wiki"
|
"wiki"
|
||||||
],
|
],
|
||||||
"time": "2021-03-17T04:21:38+00:00"
|
"time": "2021-03-17T16:29:47+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [],
|
"packages-dev": [],
|
||||||
|
@ -414,5 +396,5 @@
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": [],
|
"platform": [],
|
||||||
"platform-dev": [],
|
"platform-dev": [],
|
||||||
"plugin-api-version": "2.0.0"
|
"plugin-api-version": "1.1.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
require __DIR__.'/../vendor/autoload.php';
|
require __DIR__.'/../vendor/autoload.php';
|
||||||
|
use tildeteam\wiki;
|
||||||
use tildeteam\wiki\Parser;
|
|
||||||
|
|
||||||
$additional_head = "
|
$additional_head = "
|
||||||
<style>
|
<style>
|
||||||
|
@ -16,7 +15,8 @@ $additional_head = "
|
||||||
<meta property='og:site_name' content='tilde.chat wiki'>
|
<meta property='og:site_name' content='tilde.chat wiki'>
|
||||||
";
|
";
|
||||||
|
|
||||||
$parser = Parser::factory();
|
$parser = wiki::factory();
|
||||||
|
wiki::$bootstrap = wiki::$forkawesome = true;
|
||||||
|
|
||||||
if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
|
if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user