Skip to content

Commit bf85c62

Browse files
nit: invert README github icons when in dark mode
1 parent 62d4e8e commit bf85c62

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed
1.33 KB
Loading

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,13 @@ Sourcebot also supports indexing GitLab & BitBucket. Checkout the [index.json](.
5151

5252
<div>
5353
<details open>
54-
<summary><img src="https://github.com/favicon.ico" width="16" height="16" /> GitHub</summary>
55-
54+
<summary>
55+
<picture>
56+
<source media="(prefers-color-scheme: dark)" srcset=".github/images/github-favicon-inverted.png">
57+
<img src="https://github.com/favicon.ico" width="16" height="16" alt="GitHub icon">
58+
</picture>
59+
GitHub
60+
</summary>
5661
Generate a GitHub Personal Access Token (PAT) [here](https://github.com/settings/tokens/new). If you're only indexing public repositories select the `public_repo` scope; otherwise, select the `repo` scope.
5762

5863
You'll need to pass this PAT each time you run Sourcebot, so we recommend adding it as an environment variable. In this guide, we'll add the Github PAT as an environment variable called `GITHUB_TOKEN`:
@@ -84,7 +89,13 @@ Sourcebot also supports indexing GitLab & BitBucket. Checkout the [index.json](.
8489

8590
<div>
8691
<details open>
87-
<summary><img src="https://github.com/favicon.ico" width="16" height="16" /> GitHub</summary>
92+
<summary>
93+
<picture>
94+
<source media="(prefers-color-scheme: dark)" srcset=".github/images/github-favicon-inverted.png">
95+
<img src="https://github.com/favicon.ico" width="16" height="16" alt="GitHub icon">
96+
</picture>
97+
GitHub
98+
</summary>
8899

89100
Run the `sourcebot` docker image, passing in the Github PAT you generated in the previous step as an environment variable called `GITHUB_TOKEN`:
90101
```sh
@@ -166,8 +177,13 @@ The zoekt binaries and web dependencies are placed into `bin` and `node_modules`
166177

167178
<div>
168179
<details open>
169-
<summary><img src="https://github.com/favicon.ico" width="16" height="16" /> GitHub</summary>
170-
180+
<summary>
181+
<picture>
182+
<source media="(prefers-color-scheme: dark)" srcset=".github/images/github-favicon-inverted.png">
183+
<img src="https://github.com/favicon.ico" width="16" height="16" alt="GitHub icon">
184+
</picture>
185+
GitHub
186+
</summary>
171187
Generate a GitHub Personal Access Token (PAT) [here](https://github.com/settings/tokens/new). If you are indexing public repositories only, you can select the `public_repo` scope, otherwise you will need the `repo` scope.
172188

173189
Create a text file named `.github-token` **in your home directory** and paste the token in it. The file should look like:

0 commit comments

Comments
 (0)