From 94465c2535684deb206a94383e2a12d9def3958e Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 16 Aug 2018 00:27:46 -0400 Subject: [PATCH] refactor a bit and add some services to the list --- footer.php | 1 - wiki/README.md | 8 +++++-- wiki/index.php | 32 ++++++++++++++-------------- wiki/pages/administration.md | 2 -- wiki/pages/email.md | 10 +++++---- wiki/pages/gopher.md | 2 +- wiki/pages/irc-bots.md | 18 ++++++++++------ wiki/pages/learning-opportunities.md | 12 +++++------ wiki/pages/services.md | 12 +++++++---- 9 files changed, 54 insertions(+), 43 deletions(-) diff --git a/footer.php b/footer.php index cb4410a..e1a7c22 100644 --- a/footer.php +++ b/footer.php @@ -1,6 +1,5 @@
-

diff --git a/wiki/README.md b/wiki/README.md index 362138a..a4e94ab 100644 --- a/wiki/README.md +++ b/wiki/README.md @@ -4,9 +4,11 @@ hi there, welcome to our wiki! to contribute to the wiki: +* [fork the repo](https://git.tildeverse.org/repo/fork/1) + * clone the repo to your local machine (or your public_html folder on the tilde.team box for live testing) ```sh -git clone git@tilde.team:team/site +git clone git@tilde.team:yourusername/site ``` * create a new branch for your page @@ -21,7 +23,7 @@ cp template.md my-new-page.md * edit as needed! -* commit your changes and create a pull request :) +* commit your changes and [create a pull request](https://git.tildeverse.org/team/site/pulls) :) ```sh git add --all git commit -m "added my-new-page" @@ -31,3 +33,5 @@ git push origin my-new-page # this should match the branch name you created earl * create a pull request on the [site](https://git.tilde.team/team/site) repo thanks!~ + +ps. if you have any questions, ask on irc! (preferably in #team) diff --git a/wiki/index.php b/wiki/index.php index 28f801d..20ee8d5 100644 --- a/wiki/index.php +++ b/wiki/index.php @@ -1,16 +1,19 @@ -:target:before { - content:""; - display:block; - height:90px; /* fixed header height*/ - margin:-90px 0 0; /* negative fixed header height */ -} - -'; +$additional_head = " + + + + +"; class MDParser implements Mni\FrontYAML\Markdown\MarkdownParser { public function __construct() { @@ -29,14 +32,12 @@ $parser = new Mni\FrontYAML\Parser(null, new MDParser()); if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) { + $title = "tilde.team~wiki"; $additional_head .= " - - - "; include __DIR__.'/../header.php'; // render wiki index ?> @@ -60,17 +61,15 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) { parse(file_get_contents("pages/{$_GET["page"]}.md")); $yml = $pg->getYAML(); $title = $yml['title'] . " | tilde.team~wiki"; $description = $yml['description'] ?? "tilde.team wiki article {$yml['title']}"; $additional_head .= " - - - "; include __DIR__.'/../header.php'; // show a single page ?> @@ -83,6 +82,7 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) { .md"> source +