Skip to content

Commit 58e9f36

Browse files
pages update
1 parent e603b17 commit 58e9f36

File tree

6 files changed

+937
-171
lines changed

6 files changed

+937
-171
lines changed

docs/_layouts/default.html

Lines changed: 56 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,63 @@
11
<!DOCTYPE html>
2-
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3-
4-
{% include head.html %}
5-
6-
<body>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>{{ page.title }} - Trading Pal Documentation</title>
7+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
8+
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/themes/prism-tomorrow.min.css" rel="stylesheet">
9+
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
10+
</head>
11+
<body class="bg-dark text-light">
12+
<nav class="navbar navbar-expand-lg navbar-dark bg-dark border-bottom border-secondary">
13+
<div class="container">
14+
<a class="navbar-brand" href="{{ '/' | relative_url }}">Trading Pal</a>
15+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
16+
<span class="navbar-toggler-icon"></span>
17+
</button>
18+
<div class="collapse navbar-collapse" id="navbarNav">
19+
<ul class="navbar-nav">
20+
<li class="nav-item">
21+
<a class="nav-link" href="{{ '/data_server.html' | relative_url }}">Data Server</a>
22+
</li>
23+
<li class="nav-item">
24+
<a class="nav-link" href="{{ '/charts_display.html' | relative_url }}">Charts</a>
25+
</li>
26+
<li class="nav-item">
27+
<a class="nav-link" href="{{ '/backtesting.html' | relative_url }}">Backtesting</a>
28+
</li>
29+
</ul>
30+
</div>
31+
</div>
32+
</nav>
733

8-
{% include topnav.html %}
34+
<main class="container py-5">
35+
<div class="row">
36+
<div class="col-md-3">
37+
<div class="sidebar sticky-top">
38+
<div class="list-group">
39+
<a href="{{ '/data_server.html' | relative_url }}" class="list-group-item list-group-item-action bg-dark text-light border-secondary">Data Server</a>
40+
<a href="{{ '/charts_display.html' | relative_url }}" class="list-group-item list-group-item-action bg-dark text-light border-secondary">Charts Display</a>
41+
<a href="{{ '/backtesting.html' | relative_url }}" class="list-group-item list-group-item-action bg-dark text-light border-secondary">Backtesting</a>
42+
</div>
43+
</div>
44+
</div>
45+
<div class="col-md-9">
46+
<div class="content">
47+
{{ content }}
48+
</div>
49+
</div>
50+
</div>
51+
</main>
952

10-
<div class="page-content">
11-
<div class="wrapper">
12-
{{ content }}
53+
<footer class="footer mt-auto py-3 bg-dark border-top border-secondary">
54+
<div class="container text-center">
55+
<span class="text-muted">Trading Pal Documentation</span>
1356
</div>
14-
</div>
57+
</footer>
1558

16-
{% include footer.html %}
17-
{% include js_files.html %}
59+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
60+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/prism.min.js"></script>
61+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/components/prism-json.min.js"></script>
1862
</body>
19-
2063
</html>

docs/assets/css/main.scss

Lines changed: 106 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,109 @@
11
---
22
---
3-
@import "minima";
43

5-
// Add any custom styles below this line
4+
// Custom styles
5+
.content {
6+
pre {
7+
background: #1a1a1a;
8+
padding: 1rem;
9+
border-radius: 0.5rem;
10+
margin: 1.5rem 0;
11+
}
12+
13+
code {
14+
color: #e83e8c;
15+
}
16+
17+
h1, h2, h3, h4, h5, h6 {
18+
margin-top: 2rem;
19+
margin-bottom: 1rem;
20+
color: #fff;
21+
}
22+
23+
p {
24+
line-height: 1.7;
25+
margin-bottom: 1.5rem;
26+
}
27+
}
28+
29+
.sidebar {
30+
position: sticky;
31+
top: 2rem;
32+
33+
.list-group-item {
34+
&:hover {
35+
background-color: #2d2d2d !important;
36+
}
37+
38+
&.active {
39+
background-color: #0d6efd !important;
40+
}
41+
}
42+
}
43+
44+
.navbar {
45+
box-shadow: 0 2px 4px rgba(0,0,0,.2);
46+
}
47+
48+
// API endpoint styling
49+
.api-endpoint {
50+
background: #2d2d2d;
51+
padding: 1rem;
52+
border-radius: 0.5rem;
53+
margin: 1rem 0;
54+
55+
.method {
56+
color: #0d6efd;
57+
font-weight: bold;
58+
}
59+
60+
.path {
61+
color: #28a745;
62+
}
63+
}
64+
65+
// Documentation sections
66+
.doc-section {
67+
margin-bottom: 3rem;
68+
69+
.section-title {
70+
border-bottom: 2px solid #0d6efd;
71+
padding-bottom: 0.5rem;
72+
margin-bottom: 1.5rem;
73+
}
74+
}
75+
76+
// Table styling
77+
table {
78+
width: 100%;
79+
margin-bottom: 1rem;
80+
background-color: #2d2d2d;
81+
border-radius: 0.5rem;
82+
overflow: hidden;
83+
84+
th, td {
85+
padding: 1rem;
86+
border-bottom: 1px solid #1a1a1a;
87+
}
88+
89+
th {
90+
background-color: #1a1a1a;
91+
color: #fff;
92+
}
93+
}
94+
95+
// Code block improvements
96+
.language-json {
97+
.token.property {
98+
color: #9cdcfe;
99+
}
100+
.token.string {
101+
color: #ce9178;
102+
}
103+
.token.number {
104+
color: #b5cea8;
105+
}
106+
.token.boolean {
107+
color: #569cd6;
108+
}
109+
}

0 commit comments

Comments
 (0)