Skip to content

Commit 9d38222

Browse files
Color-Theme update to match main site for consistency (#613)
* Updated theme-colors to match main site for consistency * fixed search results color in dark mode * fix copy button css in dark mode * search bar background udpdate * removed current default footer and added custom one * Add custom footer and update styles to match TuringLang/turinglang.github.io#119 * Update styles to match original site * cleanup code * Added SCSS styles to match main site * Add all icons in navbar + match few tweaks with main PR * Enable Open Graph and Twitter Cards for SEO * fix corrupted png * remove old styles --------- Co-authored-by: Penelope Yong <[email protected]>
1 parent a78f48a commit 9d38222

19 files changed

+593
-223
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ venv
2727
404.html
2828
site_libs
2929
.DS_Store
30+
index_files
31+
digest.txt

_quarto.yml

Lines changed: 87 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,38 @@ project:
55
port: 4200
66
browser: true
77

8-
98
# These cannot be used as variables. They are reserved for the project configuration.
109
website:
1110
title: "Turing.jl"
1211
site-url: "https://turinglang.org/docs/"
12+
description: "Turing.jl is a probabilistic programming language and Bayesian modelling framework for the Julia programming language."
13+
image: assets/images/turing-text-logo.jpg
1314
favicon: "assets/favicon.ico"
15+
open-graph:
16+
title: "The Turing Language"
17+
locale: en_GB
18+
twitter-card:
19+
creator: "@Hong_Ge2"
20+
site: "@TuringLang"
21+
image-width: 4214
22+
image-height: 1032
1423
search:
1524
location: navbar
1625
type: overlay
1726
navbar:
1827
logo: "assets/images/turing-logo.svg"
1928
logo-href: https://turinglang.org/
20-
background: "#073c44"
21-
foreground: "#ffffff"
2229
left:
23-
- href: getting-started/
24-
text: Get Started
25-
- href: tutorials/coin-flipping/
26-
text: Tutorials
27-
- href: https://turinglang.org/library/
28-
text: Libraries
29-
- href: https://turinglang.org/news/
30-
text: News
31-
- href: https://turinglang.org/team/
32-
text: Team
30+
- text: Get Started
31+
href: getting-started/
32+
- text: Tutorials
33+
href: tutorials/
34+
- text: Libraries
35+
href: https://turinglang.org/library/
36+
- text: News
37+
href: https://turinglang.org/news/
38+
- text: Team
39+
href: https://turinglang.org/team/
3340
right:
3441
# Current version
3542
- text: "v0.39"
@@ -40,11 +47,17 @@ website:
4047
href: https://turinglang.org/docs/versions.html
4148
tools:
4249
- icon: twitter
43-
href: https://x.com/TuringLang
4450
text: Turing Twitter
51+
href: https://x.com/TuringLang
52+
- icon: chat-dots
53+
text: Turing Discourse
54+
href: https://discourse.julialang.org/c/domain/probprog/48
55+
- icon: slack
56+
text: Turing Slack
57+
href: https://julialang.slack.com/archives/CCYDC34A0
4558
- icon: github
46-
href: https://github.com/TuringLang/Turing.jl
4759
text: Turing GitHub
60+
href: https://github.com/TuringLang
4861

4962
sidebar:
5063
- text: documentation
@@ -117,20 +130,6 @@ website:
117130
- developers/inference/variational-inference/index.qmd
118131
- developers/inference/implementing-samplers/index.qmd
119132

120-
page-footer:
121-
background: "#073c44"
122-
left: |
123-
Turing is created by <a href="http://mlg.eng.cam.ac.uk/hong/" target="_blank">Hong Ge</a>, and lovingly maintained by the <a href="https://github.com/TuringLang/Turing.jl/graphs/contributors" target="_blank">core team</a> of volunteers. <br>
124-
The contents of this website are © 2018–2025 under the terms of the <a href="https://github.com/TuringLang/docs/blob/main/LICENCE" target="_blank">MIT License</a>.
125-
126-
right:
127-
- icon: twitter
128-
href: https://x.com/TuringLang
129-
aria-label: Turing Twitter
130-
- icon: github
131-
href: https://github.com/TuringLang/Turing.jl
132-
aria-label: Turing GitHub
133-
134133
back-to-top-navigation: true
135134
repo-url: https://github.com/TuringLang/docs
136135
repo-actions: [edit, issue]
@@ -141,29 +140,76 @@ website:
141140
format:
142141
html:
143142
theme:
144-
light: cosmo
143+
light: [cosmo, theming/theme-light.scss]
145144
dark: [cosmo, theming/theme-dark.scss]
146-
css: theming/styles.css
145+
highlight-style: github
147146
smooth-scroll: true
148147
output-block-background: true
149148
toc: true
150149
toc-title: "Table of Contents"
151150
code-fold: false
152151
code-overflow: scroll
152+
include-in-header:
153+
- text: |
154+
<style>
155+
a {
156+
text-decoration: none;
157+
}
158+
a:hover {
159+
text-decoration: underline;
160+
}
161+
</style>
162+
include-after-body:
163+
- text: |
164+
<footer class="custom-footer">
165+
<div class="footer-container">
166+
<div class="footer-grid">
167+
<div class="footer-links-wrapper">
168+
<div class="footer-column footer-explore">
169+
<h5>Explore</h5>
170+
<a href="https://turinglang.org/docs/getting-started/">Get Started</a>
171+
<a href="https://turinglang.org/docs/tutorials/">Tutorials</a>
172+
<a href="https://turinglang.org/library/">Libraries</a>
173+
<a href="https://turinglang.org/news/">News</a>
174+
<a href="https://turinglang.org/team/">Team</a>
175+
</div>
176+
177+
<div class="footer-column footer-connect">
178+
<h5>Connect</h5>
179+
<a href="https://github.com/TuringLang" target="_blank" rel="noopener"><i class="bi bi-github"></i> GitHub</a>
180+
<a href="https://x.com/TuringLang" target="_blank" rel="noopener"><i class="bi bi-twitter"></i> Twitter</a>
181+
<a href="https://julialang.slack.com/archives/CCYDC34A0" target="_blank" rel="noopener"><i class="bi bi-slack"></i> Slack</a>
182+
<a href="https://discourse.julialang.org/c/domain/probprog/48" target="_blank" rel="noopener"><i class="bi bi-chat-dots"></i> Discourse</a>
183+
</div>
184+
</div>
185+
186+
<div class="footer-column footer-brands">
187+
<h5>Supported by leading researchers</h5>
188+
<p>Turing.jl is developed by researchers and engineers at the following research institutions.</p>
189+
<div class="logo-grid">
190+
<a href="https://mlg.eng.cam.ac.uk/" class="partner-logo" target="_blank" rel="noopener">
191+
<img src="/assets/images/brands/university-cambridge-logo-black-example-640x132.png" alt="University of Cambridge Logo" class="brands-light-mode-logo">
192+
<img src="/assets/images/brands/university-cambridge-logo-white-example-640x133.png" alt="University of Cambridge Logo Dark" class="brands-dark-mode-logo">
193+
</a>
194+
<a href="https://www.turing.ac.uk/" class="partner-logo" target="_blank" rel="noopener">
195+
<img src="/assets/images/brands/Turing_Logo_1000x400px_Black.webp" alt="The Alan Turing Institute Logo" class="brands-light-mode-logo">
196+
<img src="/assets/images/brands/Turing_Logo_1000x400px_White.webp" alt="The Alan Turing Institute Logo Dark" class="brands-dark-mode-logo">
197+
</a>
198+
</div>
199+
</div>
200+
201+
</div>
202+
<div class="footer-bottom">
203+
<p>Turing is created by <a href="https://mlg.eng.cam.ac.uk/hong/" target="_blank" rel="noopener">Hong Ge</a>, and maintained by the core <a href="https://turinglang.org/team/" target="_blank" rel="noopener">team</a> of developers and <a href="https://github.com/TuringLang/Turing.jl/graphs/contributors" target="_blank" rel="noopener">contributors</a>.<br>© 2025 The Turing Project Contributors. <a href="https://github.com/TuringLang/Turing.jl/blob/master/LICENCE" target="_blank" rel="noopener">MIT License</a>.</p>
204+
<a href="https://github.com/TuringLang/docs/" target="_blank" rel="noopener" class="footer-source-link"><i class="bi bi-github"></i> Website Source</a>
205+
</div>
206+
</div>
207+
</footer>
208+
153209
execute:
154210
echo: true
155211
output: true
156212
freeze: auto
157-
include-in-header:
158-
- text: |
159-
<style>
160-
a {
161-
text-decoration: none;
162-
}
163-
a:hover {
164-
text-decoration: underline;
165-
}
166-
</style>
167213

168214
# These variables can be used in any qmd files, e.g. for links:
169215
# the [Getting Started page]({{< meta get-started >}})
Binary file not shown.
Binary file not shown.
45.4 KB
Loading
28.4 KB
Loading

assets/images/turing-text-logo.jpg

54.2 KB
Loading
377 KB
Loading

theming/rules/_dropdowns.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.dropdown-menu {
2+
background-color: $navbar-bg;
3+
border-color: $btn-border-color;
4+
border-radius: $border-radius-sm;
5+
scrollbar-width: none;
6+
}
7+
8+
.dropdown-item {
9+
color: $text-muted;
10+
padding: 0.5rem 1.5rem;
11+
transition: all 0.2s ease;
12+
13+
&:hover,
14+
&:focus {
15+
color: $links-hover;
16+
background-color: if(lightness($navbar-bg) > 50, darken($navbar-bg, 4%), lighten($navbar-bg, 4%));
17+
}
18+
}

0 commit comments

Comments
 (0)