Skip to content

Commit ca1da38

Browse files
committed
make the stars and fork count on nav refer to lite-xl/lite-xl
1 parent fa6e3d0 commit ca1da38

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ 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"
56

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

overrides/partials/source.html

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!--
2+
Copyright (c) 2016-2024 Martin Donath <[email protected]>
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to
6+
deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8+
sell copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20+
IN THE SOFTWARE.
21+
-->
22+
23+
<!-- Repository information -->
24+
<a
25+
href="{{ config.source_repo_url }}"
26+
title="{{ lang.t('source') }}"
27+
class="md-source"
28+
data-md-component="source"
29+
>
30+
<div class="md-source__icon md-icon">
31+
{% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %}
32+
{% include ".icons/" ~ icon ~ ".svg" %}
33+
</div>
34+
<div class="md-source__repository">
35+
{{ config.repo_name }}
36+
</div>
37+
</a>

0 commit comments

Comments
 (0)