Skip to content

Commit 4cded52

Browse files
shravanngoswamiipenelopeysm
authored andcommitted
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 3968c13 commit 4cded52

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
@@ -118,20 +131,6 @@ website:
118131
- developers/inference/variational-inference/index.qmd
119132
- developers/inference/implementing-samplers/index.qmd
120133

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

169215
# These variables can be used in any qmd files, e.g. for links:
170216
# 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)