Skip to content

Commit 0f9fb81

Browse files
committed
[feat]: Add Docsify web viewer and search functionality for PostgreSQL docs
- Added for Docsify web view - Added for sidebar navigation - Added for styling - Enabled search functionality - PDF download explored but not implemented - Prepared repo for GitHub Pages hosting
1 parent a775253 commit 0f9fb81

3 files changed

Lines changed: 71 additions & 0 deletions

File tree

_sidebar.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
* [Home](README.md)
2+
* [Declaration](declaration.md)
3+
* [Learning Path](LEARNING-PATH.md)
4+
* **Installation**
5+
* [Installation](psql/installation.md)
6+
* **Basics**
7+
* [Data Types](psql/data-types.md)
8+
* [Database](psql/database.md)
9+
* [Functions](psql/functions.md)
10+
* [Queries](psql/query.md)
11+
* [Table & Schema](psql/table-schema.md)
12+
* [Window Functions](psql/Window.md)
13+
* **Advanced**
14+
* [Clauses](psql/clauses.md)
15+
* [CTE](psql/CTE.md)
16+
* [Advance](psql/advance.md)
17+
* **JSON / APIs**
18+
* [JSON Guide](psql/json-jsonb-guide.md)
19+
* [psql in ExpressJS](psql/psql-in-expressJS-guide.md)
20+
* [my-sql-query](my-sql-query.md)
21+
* [psql-query](psql-query.md)
22+
* **Exercises**
23+
* [Beginner Exercises](exercises/beginner-exercises.md)

assets/custom.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Example styling for branding */
2+
body::before {
3+
content: "Learn PostgreSQL";
4+
display: block;
5+
text-align: center;
6+
font-size: 1.2rem;
7+
font-weight: bold;
8+
padding: 10px;
9+
background-color: #3F51B5;
10+
color: white;
11+
}
12+
13+
a[href$=".pdf"] {
14+
color: #ff5722;
15+
font-weight: bold;
16+
}

index.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<title>Learn PostgreSQL</title>
7+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css" />
8+
<link rel="stylesheet" href="assets/custom.css" />
9+
</head>
10+
<body>
11+
<!-- Docsify container -->
12+
<div id="app"></div>
13+
14+
<!-- Docsify Core -->
15+
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
16+
17+
<!-- Docsify Configuration -->
18+
<script>
19+
window.$docsify = {
20+
name: 'Learn PostgreSQL',
21+
repo: 'fahimahammed/learn-postgresql',
22+
loadSidebar: '_sidebar.md', // Ensure _sidebar.md exists in the repo root
23+
subMaxLevel: 2,
24+
search: 'auto',
25+
themeColor: '#3F51B5'
26+
}
27+
</script>
28+
29+
<!-- Docsify Plugins -->
30+
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
31+
</body>
32+
</html>

0 commit comments

Comments
 (0)