From 630d70c07e0263cfe83c706d40699c86aebdc904 Mon Sep 17 00:00:00 2001 From: CosmoX Date: Sun, 5 Jul 2026 19:19:39 -0700 Subject: [PATCH] Refresh GitHub Pages FAQ copy (#657) --- README.md | 6 +++--- docs/index.html | 19 ++----------------- wiki/faq.md | 22 ++++++++++++++++++++-- 3 files changed, 25 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 04e62506..7f1d7334 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ - Built-in themes - macOS/Win/Linux - Dashboard -- [Search snippets and downloaded content](wiki/faq.md#search) +- [Search snippets](wiki/faq.md#search) - [Proxy](wiki/faq.md#proxy) - Free @@ -35,7 +35,7 @@ | :-------------:| :-----:| :-----: | | ![Screenshot](./docs/img/portfolio/stay_organized.png) | ![Screenshot](./docs/img/portfolio/markdown.png) | ![Screenshot](./docs/img/portfolio/jupyterNotebook.png) | -| Search snippets and content (*⇧ + Space*) | Immersive Mode *(⌘/Ctrl + i)* | Dashboard *(⌘/Ctrl + d)* | +| Search snippets (*⇧ + Space*) | Immersive Mode *(⌘/Ctrl + i)* | Dashboard *(⌘/Ctrl + d)* | | :-------------:| :-----:| :-----: | | ![Screenshot](./docs/img/portfolio/search_bar.png) | ![Screenshot](./docs/img/portfolio/immersive.png) | ![Screenshot](./docs/img/portfolio/dashboard.png) @@ -51,7 +51,7 @@ | Immersive Mode | `Cmd/Ctrl + I` | Toggle the [Immersive mode](https://github.com/hackjutsu/Lepton/blob/master/docs/img/portfolio/immersive.png) | | Dashboard | `Cmd/Ctrl + D` | Toggle the [dashboard](https://github.com/hackjutsu/Lepton/blob/master/docs/img/portfolio/dashboard.png) | | About Page | `Cmd/Ctrl + ,` | Toggle the [About page](https://github.com/hackjutsu/Lepton/blob/dev/docs/img/portfolio/about.png) | -| Search | `Shift + Space`| Toggle [snippet and downloaded-content search](wiki/faq.md#search) | +| Search | `Shift + Space`| Toggle [snippet search](wiki/faq.md#search) | See the [Search FAQ](wiki/faq.md#search) for searchable fields and content-search behavior. diff --git a/docs/index.html b/docs/index.html index c6c5feef..666d0130 100755 --- a/docs/index.html +++ b/docs/index.html @@ -101,7 +101,7 @@
#macOS / #Win / #Linux

Tweet - Star + Star Issue @@ -181,7 +181,7 @@

Features

- Search snippets and content (⇧ + Space) + Search snippets (⇧ + Space)
@@ -260,15 +260,6 @@

FAQ

We recommend donating to Wikimedia Foundation, which helps sustain free knowledge through Wikipedia and its sister projects. -
  • -
    Why is the language of my snippet "Other"?
    -
    - Lepton relies on GitHub APIs to detect the language. To overwrite the result, put "// vim: syntax=<your_language>" at the beginning of the snippet. -
    - -
    -
    -
  • How to specify the title and tags?
    @@ -289,12 +280,6 @@

    FAQ

    Search matches snippet metadata and downloaded file content. Complete global content search requires the download-all snippets option (snippet.downloadAll) before sync. See the Search FAQ.
  • -
  • -
    Which release should I download?
    -
    - Choose Stable for the latest stable build. Choose Beta to try the prerelease which includes the latest fixes and experimental features. -
    -
  • How does Lepton store my GitHub access token?
    diff --git a/wiki/faq.md b/wiki/faq.md index 6eed2efb..90666ff7 100644 --- a/wiki/faq.md +++ b/wiki/faq.md @@ -1,6 +1,6 @@ # FAQ -## My Snippet's Language Is Classified As "Other" +## Why Is The Language Of My Snippet "Other"? Lepton depends on GitHub's API to detect snippet language. If GitHub cannot classify the language, Lepton marks it as `Other`. @@ -109,7 +109,25 @@ See [Configuration](configuration.md#options) for the full `enterprise` option l ## Scope For GitHub Access Token -Lepton requires the `gist` scope. +Lepton can use token login instead of GitHub OAuth credentials. Create a +GitHub personal access token with the `gist` scope, then paste that token into +Lepton's token login screen. + +The fastest path is GitHub's prefilled token page: +[Create a Lepton token with the `gist` scope](https://github.com/settings/tokens/new?description=Lepton&scopes=gist). + +If you create the token manually: + +1. Open GitHub, then go to Settings -> Developer settings -> Personal access + tokens -> Tokens (classic). +2. Select Generate new token -> Generate new token (classic). +3. Enter a descriptive note, such as `Lepton`, and choose an expiration. +4. Under Select scopes, enable only `gist`. +5. Click Generate token and copy the token immediately. GitHub only shows it + once. + +For GitHub Enterprise, create the token on your Enterprise host with the same +`gist` scope. ## About Data Collection