-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
75 lines (68 loc) · 2.9 KB
/
index.php
File metadata and controls
75 lines (68 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Isaac George</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="catppuccin.css"/>
<link rel="stylesheet" href="styles.css"/>
<link rel="stylesheet" href="modules/render.css"/>
<link rel="stylesheet" href="https://prismjs.catppuccin.com/mocha.css"/>
</head>
<body class="mocha">
<div id="throbber" class="throbber"></div>
<?php
require_once 'modules/header.php';
renderHeader("docs");
?>
<div class="content">
<?php
if (isset($_GET['section'])) {
echo '<div id="collapsible">';
require_once 'modules/sidebar.php';
renderSidebar($_GET['section']);
echo '<div class="tab">';
echo '<div id="sidebar-tab"></div>';
echo '<div class="negative"></div>';
echo '</div>';
echo '</div>';
}
?>
<main>
<?php
// Check if the 'file' query parameter is set
if (isset($_GET['file'])) {
// Get the file path from the query parameter
$file = $_GET['file'];
require_once 'modules/render.php';
} else {
// Fallback if no file is specified, show an index or default content
require_once 'modules/get_index_file.php';
echo getIndexFileContents($_GET);
}
?>
</main>
</div>
<!-- Theme Switcher -->
<div class="theme-switcher">
<label class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider">
<span class="symbol light-symbol">☀️</span>
<span class="symbol dark-symbol">🌙</span>
</span>
</label>
</div>
<script src="scripts.js"></script>
<!-- Highlighting -->
<link rel="stylesheet" href="//unpkg.com/@catppuccin/highlightjs@1.0.0/css/catppuccin-mocha.css">
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/gh/s9e/hljs-loader@1.0.36/loader.min.js"
crossorigin="anonymous"
integrity="sha384-ENgSnUL5UgeHebIZiuTpRAT4+a3licJ29eIcCndVuHFJvncvtdJoQL0XIBStbgl9"></script>
</body>
</html>