Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
bb09627
Update Hugo and Docsy to latest versions
stumbo Feb 15, 2026
ccb195d
Update config to disable dark mode.
stumbo Feb 15, 2026
fb2f168
Upgrade to docsy 12.0.
stumbo Feb 15, 2026
fbe08c5
Update UI feedback yaml to correspond to Hugo updates in 0.152.
stumbo Feb 15, 2026
26fc726
Update to Hugo 0.155.3 -- docsy 0.13 requires 0.152.2 or greater
stumbo Feb 16, 2026
5a49766
Push docsy to 0.14.2
stumbo Feb 17, 2026
026d823
Start process of removing custom navbar.
stumbo Feb 17, 2026
17f3cc6
Cleanup home page, moving to markdown, fixing issues with darkmode
stumbo Feb 18, 2026
3ad4716
Enable dark mode for testing, cleanup of index.md
stumbo Feb 18, 2026
682c5c5
Fix darkmode enabled for experimenting
stumbo Feb 18, 2026
698f660
Move files from static to assets to align with Docsy conventions.
stumbo Feb 19, 2026
eee422a
Move timeline photos from assets to timeline and treat as page assets.
stumbo Feb 20, 2026
47a752f
Fix navbar colors, move navbar icon to assets. Fix button colors.
stumbo Feb 20, 2026
63741df
Move custom.css information into _sytles_project.scss
stumbo Feb 20, 2026
e3a854f
Remove unused shortcodes, update cover.html shortcode
stumbo Feb 21, 2026
9be69b7
Remove references to custom.css. File is no longer used.
stumbo Feb 21, 2026
7b13424
Update the partial, favicon.html, and the associated favicon files.
stumbo Feb 21, 2026
8aa9813
First attempt using css to provide two line search functionality.
stumbo Feb 21, 2026
19ab6e9
Remove unused files
stumbo Feb 21, 2026
89b48b1
Bold Title and Subtitle on home page. Current behavior of site.
stumbo Feb 21, 2026
052122d
Fix logo in annual reports.
stumbo Feb 23, 2026
5e15bd0
Revised logo code to correct for site BaseURL
stumbo Feb 23, 2026
32fd6d1
Fix minor type, extra left brace in shortcode call.
stumbo Feb 23, 2026
d275681
Update params to remove feedback page and Git commit information
stumbo Feb 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ env:
# ----------------------------------------------------------------------------
# Specify the deployment environment: staging or production
HUGO_ENVIRONMENT: ${{ vars.HUGO_ENVIRONMENT || 'staging' }}
HUGO_VERSION: 0.144.2
HUGO_VERSION: 0.155.3

jobs:
# ----------------------------------------------------------------------------
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
81 changes: 81 additions & 0 deletions assets/js/search-text-fragment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/**
* Text Fragment Enhancement for Google Programmable Search Engine
*
* This script intercepts clicks on GCSE search result links and adds
* text fragment highlighting (#:~:text=...) to navigate users directly
* to the relevant content on the target page.
*
* Text fragments are supported in Chrome 80+, Edge 80+, and other
* Chromium-based browsers. Firefox and Safari have limited support.
*/

(function() {
'use strict';

// Get the search query from the URL
function getSearchQuery() {
const params = new URLSearchParams(window.location.search);
return params.get('q') || '';
}

// Create a text fragment from search terms
function createTextFragment(query) {
if (!query) return '';

// Clean and encode the query for use in text fragment
// Use the first few significant words (avoid very long fragments)
const words = query.trim().split(/\s+/).slice(0, 5);
const fragment = words.join(' ');

return '#:~:text=' + encodeURIComponent(fragment);
}

// Check if browser supports text fragments
function supportsTextFragments() {
return 'fragmentDirective' in document ||
// Chrome/Edge support detection
(navigator.userAgent.includes('Chrome') || navigator.userAgent.includes('Edg'));
}

// Intercept clicks on GCSE result links
function setupLinkInterception() {
const query = getSearchQuery();
if (!query || !supportsTextFragments()) return;

const textFragment = createTextFragment(query);

// Use event delegation since GCSE results are loaded dynamically
document.addEventListener('click', function(event) {
// Find if click was on a GCSE result link
const link = event.target.closest('.gs-title a, a.gs-title');
if (!link) return;

const href = link.getAttribute('href');
if (!href) return;

// Only modify links to our own site
const currentHost = window.location.hostname;
try {
const linkUrl = new URL(href, window.location.origin);
if (linkUrl.hostname !== currentHost) return;

// Don't add fragment if one already exists
if (linkUrl.hash && !linkUrl.hash.startsWith('#:~:text=')) return;

// Modify the link to include text fragment
event.preventDefault();
const newUrl = href.split('#')[0] + textFragment;
window.location.href = newUrl;
} catch (e) {
// Invalid URL, let it proceed normally
}
}, true);
}

// Initialize when DOM is ready
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', setupLinkInterception);
} else {
setupLinkInterception();
}
})();
74 changes: 74 additions & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,77 @@
.td-page-meta {
display: none;
}

.td-navbar .navbar-brand__name {
display: none;
}

// Image gallery shortcode styles
.image-gallery {
overflow: auto;
margin-left: -1% !important;

li {
float: left;
display: block;
margin: 0 0 1% 1%;
width: 19%;

a {
text-align: center;
text-decoration: none !important;
color: #777;

span {
display: block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
padding: 3px 0;
}

img {
width: 100%;
display: block;
}
}
}
}

// Custom styles used by home page
.hero-content-column {
background-position: -2px 0;
background-repeat: no-repeat;
background-size: 26em 28em;

.text-center {
h1, p {
text-shadow: 2px 3px 0 #333;
}

.display-1,
.display-3 {
font-weight: 700;
}
}

.top-summary {
background: rgba(0, 0, 0, 0.3);
padding: 7px;
border-radius: 11px;
}
}

// Keep search visible on mobile, wrap to second row
@media (max-width: 991.98px) {
.td-navbar-container {
flex-wrap: wrap;
}
// Override Bootstrap d-none with higher specificity
nav.td-navbar .td-navbar__search.d-none.d-lg-block {
display: block !important;
width: 100%;
order: 99;
padding: 0.5rem 0;
}
}
12 changes: 9 additions & 3 deletions assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//$primary: #390040;
#$primary: #c80000;
$secondary: #A23B72;
$primary: #30638e; // rgb(48, 99, 142)
$secondary: #f08073;

$td-enable-google-fonts: true;

// Set the navbar background color to match the primary color
$td-navbar-bg-color: #30638e;

// $enable-dark-mode: false;
2 changes: 1 addition & 1 deletion config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ canonifyURLs: false
enableRobotsTXT: false

# assetDir: Location where Hugo looks for assets
assetDir: static
#assetDir: static

# Enable .GitInfo object for each page. This will give values to .Lastmod etc.
enableGitInfo: true
Expand Down
2 changes: 1 addition & 1 deletion config/_default/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# replacements = "github.com/google/docsy -> ../../docsy"
hugoVersion:
extended: true
min: "0.73.0"
min: "0.155.2"
imports:
- path: "github.com/google/docsy"
disable: false
Expand Down
36 changes: 12 additions & 24 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ copyright:
from_year: 2024
license: MIT

# github information
# github information - disabled, only needed if feedback is enabled.
# github_repo: url to repo of web site
# github_branch: main branch of repo
# github_subdir: unused by Interlisp.org
# github_project_repo: added by Interlisp.org points to repo used
# for issue reporting
#
github_repo: https://github.com/interlisp/Interlisp.github.io
github_branch: main
github_subdir:
github_project_repo: https://github.com/interlisp/medley
#github_repo: https://github.com/interlisp/Interlisp.github.io
#github_branch: main
#github_subdir:
#github_project_repo: https://github.com/interlisp/medley

# Google custom search engine configuration
# gcs_engine_id: search engine
Expand Down Expand Up @@ -136,24 +136,11 @@ taxonomy:

# User Interface Configuration options
#
# feedback:
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses
# are sent to Google Analytics as events. This feature depends
# on [services.googleAnalytics] and will be disabled if
# "services.googleAnalytics.id" is not set.
#
# If you want this feature, but occasionally need to remove the
# "Feedback" section from a single page,
# add "hide_feedback: true" to the page's front matter.
# enable: boolean Turn feedback
# yes: text to display with yes is selected
# no: text to display when no is selected

ui:
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses
# are sent to Google Analytics as events.
feedback:
enable: true
'yes': 'Glad to hear it! Please <a href="https://github.com/Interlisp/medley/issues/new?template=documentation.md&projects=Interlisp/medley/5">tell us how we can improve</a>.'
'no': 'Sorry to hear that. Please <a href="https://github.com/Interlisp/medley/issues/new?template=documentation.md&projects=Interlisp/medley/5">tell us how we can improve</a>.'
enable: false

# Adds a reading time to the top of each doc.
# If you want this feature, but occasionally need to remove the Reading time from a single page,
Expand Down Expand Up @@ -187,7 +174,8 @@ ui:

ul_show: 3

# Identify the custom css files
custom_css:
- "css/custom.css"
# Set the navbar to dark mode, This keeps the fonts white, which works better with the blue background.
navbar_theme: dark

# Set to false to disable dark mode menu
showLightDarkModeMenu: true
83 changes: 0 additions & 83 deletions content/en/_index.html

This file was deleted.

Loading