Skip to content

Commit 0fc4e5b

Browse files
committed
properly configure overrides
1 parent 27a8a9e commit 0fc4e5b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mkdocs.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ site_name: Lite XL
22

33
site_url: !ENV [SITE_URL, "https://lite-xl.com/"]
44
repo_url: !ENV [REPO_URL, "https://github.com/lite-xl/lite-xl.github.io"]
5-
source_repo_url: "https://github.com/lite-xl/lite-xl"
65

76
site_description: "Lightweight and powerful code editor, available for Windows, Linux and macOS."
87
site_author: "takase1121 <[email protected]>"
98

109
theme:
1110
name: material
11+
custom_dir: overrides
12+
1213
palette:
1314
# Palette toggle for light mode
1415
- media: "(prefers-color-scheme: light)"
@@ -56,6 +57,7 @@ extra_javascript:
5657
- javascripts/search.js
5758

5859
extra:
60+
source_repo_url: "https://github.com/lite-xl/lite-xl"
5961
lite_xl_version: !ENV [LITE_XL_VERSION, "v2.1.7"]
6062
version:
6163
provider: mike

overrides/partials/source.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<!-- Repository information -->
2424
<a
25-
href="{{ config.source_repo_url }}"
25+
href="{{ config.extra.source_repo_url }}"
2626
title="{{ lang.t('source') }}"
2727
class="md-source"
2828
data-md-component="source"

0 commit comments

Comments
 (0)