Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 25, 2025

Change FalkorDB logo link to www.falkordb.com:

  • Researched just-the-docs theme - confirmed logo_link configuration does not exist
  • Added logo_link configuration to _config.yml
  • Created _includes/components/sidebar.html override to customize logo link
  • Updated sidebar template to use site.logo_link variable from config
  • Simplified template logic to just check if logo_link exists
  • Replied to review comments

Summary

This PR adds support for a logo_link configuration option by:

  1. Adding logo_link: "https://www.falkordb.com" to _config.yml
  2. Overriding the theme's sidebar.html component to use the site.logo_link variable
  3. Implementing simple conditional logic: if logo_link is defined, use it; otherwise, use the relative home URL

Changes Made

  • Added logo_link configuration to _config.yml
  • Created _includes/components/sidebar.html - a local override of the theme's sidebar component
  • Implemented simple logic: if site.logo_link exists, use it directly; otherwise, use {{ '/' | relative_url }}

The template now uses a straightforward approach: when logo_link is defined, it's used as-is (expected to be an absolute URL); when not defined, it falls back to the relative home URL.

Original prompt

This section details on the original issue you should resolve

<issue_title>Change the FalkorDB logo to point to www.falkordb.com</issue_title>
<issue_description>The FalkorDB logo on the top left of the site should point to https://www.falkordb.com

Image</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Summary by CodeRabbit

  • New Features
    • Added configurable logo link setting for custom branding
    • Introduced sidebar layout with site header, navigation menu, and customizable footer options

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 25, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

Added a configuration key logo_link pointing to https://www.falkordb.com and introduced a new sidebar component structure that renders the site header with logo link, navigation menu toggle, and custom footer fallback logic.

Changes

Cohort / File(s) Summary
Configuration Update
_config.yml
Added logo_link property with value "https://www.falkordb.com" for logo destination
Sidebar Component
_includes/components/sidebar.html
New sidebar template structure including site header with logo/title link, menu toggle button (SVG), cached navigation include, and conditional custom footer rendering with default fallback

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

  • Config change is trivial (single key addition)
  • Sidebar component introduces standard template patterns (includes, caching, conditional rendering) with minimal custom logic
  • No complex interdependencies or business logic density

Poem

🐰 A logo now hops to the FalkorDB home,
With sidebar companions guiding you through the tome,
The footer falls back when the custom won't show,
Links dance and menus flow—what a delightful tableau! 🌟

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title "Add logo_link configuration support to link logo to www.falkordb.com" accurately and specifically describes the primary change in the changeset. It clearly summarizes what was accomplished: adding a new configuration option and implementing its use to direct the logo to www.falkordb.com. The title is concise, avoids vague terminology, and provides sufficient clarity for a teammate scanning commit history to understand the core objective.
Linked Issues Check ✅ Passed The PR implementation satisfies the requirement from linked issue #251. The changes add a logo_link configuration to _config.yml set to https://www.falkordb.com and override the sidebar component to use this configuration, thereby redirecting the top-left logo to point to the main FalkorDB website as requested. The implementation includes a fallback to / if the configuration is not defined, providing robustness to the solution. The PR description correctly explains that this override was necessary because the just-the-docs theme does not natively support the logo_link configuration option.
Out of Scope Changes Check ✅ Passed All code changes in the PR are directly aligned with the scope of linked issue #251. The modifications to _config.yml and the creation of _includes/components/sidebar.html are both necessary and complementary changes required to implement the logo link redirection. Since the just-the-docs theme does not natively support a logo_link configuration, overriding the sidebar component is the appropriate approach to implement this feature. No extraneous changes unrelated to the logo link objective are apparent in the changeset.

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com>
Copilot AI changed the title [WIP] Change FalkorDB logo link to www.falkordb.com Configure logo to link to www.falkordb.com Oct 25, 2025
Copilot AI requested a review from gkorland October 25, 2025 23:23
@gkorland
Copy link
Contributor

@copilot are you sure just-the-docs is using logo_link?
https://github.com/just-the-docs/just-the-docs

Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 25, 2025

@copilot are you sure just-the-docs is using logo_link?
https://github.com/just-the-docs/just-the-docs

You're correct - logo_link is not a supported configuration option in just-the-docs. I've fixed this by creating a local override of the theme's sidebar.html component instead. The logo now correctly links to https://www.falkordb.com (commit 132e1c7)

Copilot AI changed the title Configure logo to link to www.falkordb.com Override sidebar component to link logo to www.falkordb.com Oct 25, 2025
@gkorland
Copy link
Contributor

@copilot if you define logo_link why don't you use it in the template?

Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 25, 2025

@copilot if you define logo_link why don't you use it in the template?

Good catch! I've updated the template to use {{ site.logo_link | default: '/' | relative_url }} instead of hardcoding the URL. The sidebar now properly references the configuration variable. (commit 96d7ba0)

Copilot AI changed the title Override sidebar component to link logo to www.falkordb.com Add logo_link configuration support to link logo to www.falkordb.com Oct 25, 2025
@gkorland
Copy link
Contributor

@CodeRabbit review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 25, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@gkorland gkorland marked this pull request as ready for review October 25, 2025 23:46
@gkorland
Copy link
Contributor

if this just-the-docs/just-the-docs#1719 will be merged no need for this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 26, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
_includes/components/sidebar.html (1)

1-32: Verify the title.html component integration and confirm maintenance implications.

The sidebar component includes title.html and wraps it in an anchor tag on Line 14. Ensure:

  1. The title.html file exists in _includes/ and properly renders the logo or site title
  2. Wrapping title.html's output in an anchor tag produces semantically correct HTML (e.g., no nested anchors)
  3. This full sidebar override will not receive future just-the-docs theme updates; confirm this aligns with the team's maintenance strategy

Per the PR's reference to just-the-docs PR #1719, this override may become unnecessary if/when just-the-docs adds native logo_link support.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 19daf25 and 96d7ba0.

📒 Files selected for processing (2)
  • _config.yml (1 hunks)
  • _includes/components/sidebar.html (1 hunks)
🔇 Additional comments (2)
_config.yml (1)

5-5: Configuration addition looks correct.

The logo_link key-value pair is properly formatted and logically placed alongside the logo configuration. Functionality depends on the sidebar component consuming this config correctly.

_includes/components/sidebar.html (1)

22-31: Footer fallback logic is well-structured.

The conditional footer rendering (Lines 22–31) provides a good pattern: it attempts to include a custom footer (nav_footer_custom.html) and falls back to a default Just the Docs attribution if the custom footer is empty. This balances customization with sensible defaults.


<div class="side-bar">
<div class="site-header" role="banner">
<a href="{{ site.logo_link | default: '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
Copy link
Contributor

@coderabbitai coderabbitai bot Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Apply relative_url filter only to relative paths, not absolute URLs.

Line 14 applies the relative_url filter to site.logo_link, which is an absolute external URL (https://www.falkordb.com). The relative_url filter in Jekyll is designed for relative paths and will prepend the site's baseurl if configured, potentially breaking external links or producing incorrect URLs.

Remove the relative_url filter for absolute URLs:

-    <a href="{{ site.logo_link | default: '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
+    <a href="{{ site.logo_link | default: '/' }}" class="site-title lh-tight">{% include title.html %}</a>

The default: '/' fallback will still receive the relative_url filter as intended for the root path.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<a href="{{ site.logo_link | default: '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
<a href="{% if site.logo_link %}{{ site.logo_link }}{% else %}{{ '/' | relative_url }}{% endif %}" class="site-title lh-tight">{% include title.html %}</a>
🤖 Prompt for AI Agents
_includes/components/sidebar.html lines 14: site.logo_link is being piped
through the relative_url filter even when it's an absolute external URL (e.g.
https://www.falkordb.com); change the template to apply relative_url only for
relative paths by first choosing the link value (site.logo_link | default: '/')
and then conditionally applying relative_url only when that value is not an
absolute URL (detect absolute via a scheme like "http://", "https://" or
protocol-relative "//"); render the raw link for absolute URLs and the
relative_url-processed link for relative ones.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CodeRabbit but we would like the relative to work if logo_link isn't defined

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gkorland, yes, that's exactly what the suggested solution does! The conditional logic I provided handles both cases:

{% if site.logo_link %}{{ site.logo_link }}{% else %}{{ '/' | relative_url }}{% endif %}

How it works:

  • When logo_link is defined (e.g., https://www.falkordb.com): outputs the absolute URL as-is, without applying relative_url
  • When logo_link is not defined: falls back to '/' and applies the relative_url filter to it

This way, the relative_url filter only processes the relative path fallback (/), not the external absolute URL, which is exactly what you need. 👍

@gkorland
Copy link
Contributor

@copilot

_includes/components/sidebar.html lines 14: site.logo_link is being piped
through the relative_url filter even when it's an absolute external URL (e.g.
https://www.falkordb.com); change the template to apply relative_url only for
relative paths by first choosing the link value (site.logo_link | default: '/')
and then conditionally applying relative_url only when that value is not an
absolute URL (detect absolute via a scheme like "http://", "https://" or
protocol-relative "//"); render the raw link for absolute URLs and the
relative_url-processed link for relative ones.

Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 26, 2025

@copilot

_includes/components/sidebar.html lines 14: site.logo_link is being piped
...

Fixed! The template now detects absolute URLs (http://, https://, //) and renders them directly without applying relative_url. Relative paths still get the relative_url filter applied. (commit e5c35bb)

@gkorland
Copy link
Contributor

@copilot don't you think it's much simpler to just have it like that?

    {% if site.logo_link %}
      <a href="{{ site.logo_link }}" class="site-title lh-tight">{% include title.html %}</a>
    {% else %}
      <a href="{{ '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
    {% endif %}

Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 26, 2025

@copilot don't you think it's much simpler to just have it like that?

...

You're absolutely right - much simpler! Updated to use the straightforward approach: if site.logo_link is defined, use it directly; otherwise, use the relative home URL. (commit 17da65c)

@gkorland gkorland merged commit 6366c62 into main Nov 8, 2025
4 checks passed
@gkorland gkorland deleted the copilot/change-falkordb-logo-url branch November 8, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change the FalkorDB logo to point to www.falkordb.com

2 participants