Skip to content

Commit

Permalink
test a
Browse files Browse the repository at this point in the history
  • Loading branch information
United-Visions committed Feb 19, 2025
1 parent 3d22557 commit 40c33fc
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 83 deletions.
7 changes: 2 additions & 5 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"

gem "jekyll", "~> 4.3.2"
gem "minima"
gem "github-pages", group: :jekyll_plugins
gem "webrick"

group :jekyll_plugins do
gem "jekyll-feed"
Expand All @@ -21,6 +21,3 @@ gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

# Required for Ruby 3 and Jekyll
gem "webrick"
29 changes: 22 additions & 7 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
<footer class="footer">
<div class="container">

<p class="text-center">
{{ site.title }} {{ site.time | date: '%Y' }} |
Powered by <a href="https://github.com/aksakalli/jekyll-doc-theme">Jekyll Doc Theme</a>
<footer class="site-footer h-card">
<div class="wrapper">
<div class="footer-col-wrapper">
<div class="footer-col">
<p class="feed-subscribe">
<a href="{{ site.baseurl }}/feed.xml">
<svg class="svg-icon orange">
<use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use>
</svg><span>Subscribe</span>
</a>
</p>
<!-- <p class="text-muted">Place sticky footer content here.</p> -->
{%- if site.description -%}
<p>{{ site.description }}</p>
{%- endif -%}
</div>
<div class="footer-col">
<p>Trading Pal © {{ 'now' | date: "%Y" }}</p>
<p>
<a href="{{ site.github.repository_url }}" target="_blank">View on GitHub</a>
</p>
</div>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
21 changes: 10 additions & 11 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/assets/css/font-awesome.min.css" | relative_url }}">

<link rel="shortcut icon" href="{{ "/favicon.ico?1" | relative_url }}">
{% seo %}

<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | absolute_url }}" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{%- seo -%}
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
{%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}
</head>
21 changes: 21 additions & 0 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<header class="site-header">
<div class="wrapper">
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
<nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
</svg>
</span>
</label>

<div class="trigger">
<a class="page-link" href="{{ '/data_server.html' | relative_url }}">Data Server</a>
<a class="page-link" href="{{ '/charts_display.html' | relative_url }}">Charts</a>
<a class="page-link" href="{{ '/backtesting.html' | relative_url }}">Backtesting</a>
</div>
</nav>
</div>
</header>
70 changes: 10 additions & 60 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,63 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }} - Trading Pal Documentation</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/themes/prism-tomorrow.min.css" rel="stylesheet">
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
</head>
<body class="bg-dark text-light">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark border-bottom border-secondary">
<div class="container">
<a class="navbar-brand" href="{{ '/' | relative_url }}">Trading Pal</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="{{ '/data_server.html' | relative_url }}">Data Server</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ '/charts_display.html' | relative_url }}">Charts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ '/backtesting.html' | relative_url }}">Backtesting</a>
</li>
</ul>
</div>
</div>
</nav>

<main class="container py-5">
<div class="row">
<div class="col-md-3">
<div class="sidebar sticky-top">
<div class="list-group">
<a href="{{ '/data_server.html' | relative_url }}" class="list-group-item list-group-item-action bg-dark text-light border-secondary">Data Server</a>
<a href="{{ '/charts_display.html' | relative_url }}" class="list-group-item list-group-item-action bg-dark text-light border-secondary">Charts Display</a>
<a href="{{ '/backtesting.html' | relative_url }}" class="list-group-item list-group-item-action bg-dark text-light border-secondary">Backtesting</a>
</div>
</div>
</div>
<div class="col-md-9">
<div class="content">
{{ content }}
</div>
</div>
</div>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
{%- include head.html -%}
<body>
{%- include header.html -%}
<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>

<footer class="footer mt-auto py-3 bg-dark border-top border-secondary">
<div class="container text-center">
<span class="text-muted">Trading Pal Documentation</span>
</div>
</footer>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/prism.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/components/prism-json.min.js"></script>
</body>
{%- include footer.html -%}
</body>
</html>

0 comments on commit 40c33fc

Please sign in to comment.