Skip to content

Commit 4270413

Browse files
jxi24claude
andcommitted
fix: Move home icon inline as first header button and restore GitHub link
Override article-header-buttons template to include the landing page link inside the flex container as the first icon. Add repository_url and use_repository_button to restore the GitHub source link. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 28d6ba3 commit 4270413

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% from "../macros/buttons.html" import render_funcs with context %}
2+
3+
<div class="article-header-buttons">
4+
{#- Landing page link (first) #}
5+
{% include "landing-link.html" %}
6+
7+
{%- for button in header_buttons -%}
8+
{% set btype = button.get("type") %}
9+
{% set bopts = button.copy() %}
10+
{% set _ = bopts.pop("type") %}
11+
{{ render_funcs[btype](**bopts) }}
12+
{%- endfor -%}
13+
14+
{#- Extra theme buttons #}
15+
{% include "theme-switcher.html" %}
16+
{% include "search-button.html" %}
17+
{% include "toggle-secondary-sidebar.html" %}
18+
</div>

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@
4646
"image_dark": '../assets/logo.svg',
4747
"link": "https://achillesgen.github.io/Achilles/",
4848
},
49+
"repository_url": "https://github.com/AchillesGen/Achilles",
50+
"use_repository_button": True,
4951
"article_header_end": [
50-
"landing-link.html",
5152
"article-header-buttons.html",
5253
],
5354
}

0 commit comments

Comments
 (0)