-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (81 loc) · 3.92 KB
/
Copy pathindex.html
File metadata and controls
87 lines (81 loc) · 3.92 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
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/styles.css">
<title>readme.docs</title>
</head>
<body>
<!-- Home -->
<div id="home">
<div class="top-buttons">
<button class="icon-btn" onclick="toggleTheme()" aria-label="Toggle dark mode">
<svg id="theme-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79z"/></svg>
</button>
</div>
<h1>readme.docs</h1>
<p class="tagline">Turn any GitHub repo's README into a clean, browsable documentation site. No setup needed.</p>
<div class="input-row">
<input id="repo-input" type="text" placeholder="owner/repo or paste a GitHub URL" autofocus />
<button onclick="goToRepo()">Go →</button>
</div>
<div class="examples">
Try: <a href="/facebook/react" data-route>facebook/react</a>
· <a href="/expressjs/express" data-route>expressjs/express</a>
· <a href="/sindresorhus/awesome" data-route>sindresorhus/awesome</a>
</div>
</div>
<!-- Loading -->
<div id="loading">
<p id="loading-msg" style="color:#666;font-size:14px"></p>
</div>
<!-- Error -->
<div id="error">
<h2>Error</h2>
<p id="error-msg"></p>
<a href="/">← Home</a>
</div>
<!-- Docs view -->
<button id="menu-toggle" aria-label="Toggle menu" onclick="toggleSidebar()">☰</button>
<div id="sidebar-overlay" onclick="toggleSidebar()"></div>
<div id="docs">
<header id="topnav">
<div class="topnav-left">
<a href="/" class="topnav-brand">readme.docs</a>
<a id="topnav-home" href="#" class="topnav-link">Home</a>
<a id="topnav-docs" href="#" class="topnav-link" style="display:none">Documentation</a>
<a id="topnav-license" href="#" class="topnav-link" style="display:none">License</a>
</div>
<div class="topnav-right">
<a class="icon-btn" id="site-url-link" href="#" target="_blank" aria-label="Open docs page">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>
<polyline points="15 3 21 3 21 9"/>
<line x1="10" y1="14" x2="21" y2="3"/>
</svg>
</a>
<a id="sidebar-gh-link" href="#" target="_blank" aria-label="GitHub" class="icon-btn">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
</a>
<button class="icon-btn" onclick="toggleTheme()" aria-label="Toggle dark mode">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79z"/></svg>
</button>
</div>
</header>
<div id="sticky-title" class="sticky-title"></div>
<nav id="sidebar" aria-label="Table of contents">
<ul id="nav-tree"></ul>
</nav>
<main id="content">
<article id="article"></article>
</main>
<nav id="bottomnav">
<a id="bottomnav-home" href="#" class="bottomnav-link">Home</a>
<a id="bottomnav-docs" href="#" class="bottomnav-link" style="display:none">Docs</a>
<a id="bottomnav-license" href="#" class="bottomnav-link" style="display:none">License</a>
</nav>
</div>
<script src="/script.js"></script>
</body>
</html>