-
Notifications
You must be signed in to change notification settings - Fork 1
Configure GitHub pages with docsify #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a447775
docs: add some comments
snipsnipsnip 88a9dd3
refactor: add a check when enabling the alarm utility
snipsnipsnip 337e36e
docs: update the PR template
snipsnipsnip 73b45ab
docs: fix links in README
snipsnipsnip e08e75c
ci: define components in the codecov config
snipsnipsnip 3c5ef0b
ci: don't build branches created for automation
snipsnipsnip 7bb1fbf
ci: configure website with docsify
snipsnipsnip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,18 @@ | ||
| coverage: | ||
| status: | ||
| project: | ||
| src: | ||
| comment: | ||
| layout: "header, components" | ||
|
|
||
| component_management: | ||
| default_rules: | ||
| statuses: | ||
| - type: project | ||
| informational: true | ||
| paths: ["src/**/*", "!src/test/**/*"] | ||
| patch: | ||
| src: | ||
| - type: patch | ||
| informational: true | ||
| paths: ["src/**/*", "!src/test/**/*"] | ||
|
|
||
| individual_components: | ||
| - component_id: app | ||
| paths: ["src/app**"] | ||
| - component_id: ghosttext | ||
| paths: ["src/ghosttext**"] | ||
| - component_id: infra | ||
| paths: ["src/**", "!src/app**", "!src/ghosttext**", "!src/test/**", "!src/util/**"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
|
|
||
|  | ||
|
|
||
| # Ghostbird | ||
|
|
||
| > Compose email in your favorite text editor | ||
| > | ||
| > <video alt="logo" src="https://github.com/user-attachments/assets/150ef991-10b8-45e2-bb2c-690f1b45a7ea" controls muted style="max-width: min(30rem, 90vw)"> | ||
|
|
||
| [GitHub](https://github.com/exteditor/ghostbird/#readme) | ||
| [Codeberg](https://codeberg.org/exteditor/ghostbird#readme) | ||
| [GitLab](https://gitlab.com/exteditor/ghostbird#readme) | ||
| [Installation](#installation) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,151 @@ | ||
| # Ghostbird: GhostText for Thunderbird | ||
|
|
||
| [][tb] | ||
| [][rels] | ||
|
|
||
| [](#installation) | ||
|
|
||
| Ghostbird is an Thunderbird add-on that lets you compose your emails in your favorite text editor - Vim, Neovim, VS Code, Sublime Text, Emacs, or any other editor with a GhostText add-on installed. | ||
|
|
||
| ## Requirements | ||
|
|
||
| * [Thunderbird 140][tb] (We will mainly support the latest ESR) | ||
| * A text editor that has a GhostText server add-on installed and running: | ||
|
|
||
| [![Sublime Text][sublimetext-svg]](https://sublime.wbond.net/packages/GhostText) | ||
| [<img width="48" height="48" alt="VSCodium" title="VSCodium" src="https://raw.githubusercontent.com/VSCodium/vscodium.github.io/refs/heads/master/img/codium_cnl.svg" >](https://open-vsx.org/extension/fregante/ghost-text) | ||
| [![Visual Studio Code][vscode-svg]](https://marketplace.visualstudio.com/items?itemName=fregante.ghost-text) | ||
| [![GNU Emacs][emacs-svg]](https://melpa.org/#/atomic-chrome) | ||
| [![Vim][vim-svg]][vimghost] | ||
| [![Neovim][nvim-svg]](https://github.com/subnut/nvim-ghost.nvim) | ||
| [<img src="https://9fans.github.io/plan9port/dist/spaceglenda100.png" width="48" height="48" alt="Acme" title="Acme">](https://github.com/fhs/Ghost) | ||
| [<img src="https://github.com/user-attachments/assets/b0ca34ed-5508-458f-b7af-2642824bf7f7" width="48" height="48" alt="Helix" title="Helix">][helix] | ||
| [`$ANY_EDITOR`](https://github.com/newsch/GhostText-Any/) | ||
|
|
||
| The last two implementations can wrap any editor that blocks while editing. | ||
|
|
||
| ## Installation | ||
|
|
||
| [<img src="./ext/blue.svg" width="48" height="48" border="1" align="right" alt="logo" title="Grey-headed bushshrike (Malaconotus blanchoti) is sometimes called 'ghostbird'">][bird] | ||
|
|
||
| * See [the help page in the Mozilla Support Center](https://support.mozilla.org/kb/installing-addon-thunderbird) for details. | ||
|
|
||
| You can install Ghostbird in several ways: | ||
|
|
||
| ### Install within Thunderbird (Recommended) | ||
|
|
||
| 1. In Thunderbird, open `Add-ons Manager`. | ||
| 2. Search for "Ghostbird". | ||
| 3. Click the <kbd>+ Add to Thunderbird</kbd> button. | ||
|
|
||
| ### Download and install manually | ||
|
|
||
| 1. Download the latest release from the [Thunderbird add-on website][amo] or [GitHub Releases][rels]. | ||
| 2. In Thunderbird, go to `Add-ons Manager`. | ||
| 3. Drag and drop the downloaded `.xpi` file into the `Add-ons Manager` window. | ||
|
|
||
| Alternatively, you can: | ||
|
|
||
| 3. Press :gear: button at the top-right. | ||
| 4. Select `Install Add-on From File...` from the menu. | ||
| 5. Select downloaded `.xpi` file. | ||
|
|
||
| ### Build from source | ||
|
|
||
| * Basically, running `make` will do, which is roughly equivalent to `yarn install && yarn build`. | ||
| * See [CONTRIBUTING.md](./CONTRIBUTING.md) to get started. | ||
|
|
||
| ## Usage | ||
|
|
||
| 1. Launch your favorite text editor. | ||
| 2. Start the GhostText server in your text editor (e.g., with `:GhostTextStart` in Vim). | ||
| 3. Press the gray Ghostbird button <img alt="Gray button" src="./ext/gray.svg" width="24" height="24" border="1"> in the Thunderbird mail compose window. (The default shortcut is <kbd>^Ctrl</kbd>+<kbd>⇧Shift</kbd>+<kbd>H</kbd>) | ||
| * If the connection is successful, the button will turn blue <img alt="Blue button" src="./ext/blue.svg" width="24" height="24" border="1">. | ||
| * If the connection fails, the button will turn red <img alt="Red button" src="./ext/red.svg" width="24" height="24" border="1">. Make sure that the GhostText server is listening. See [Troubleshooting page of original GhostText](https://ghosttext.fregante.com/troubleshooting/#unable-to-connect). | ||
| 4. Write your email in the text editor. | ||
| 5. Close your text editor to stop Ghostbird. | ||
|
|
||
| * Example using [Vim-Ghost][vimghost] | ||
|
|
||
| [vimghost.webm](https://github.com/user-attachments/assets/150ef991-10b8-45e2-bb2c-690f1b45a7ea) | ||
|
|
||
| * Example using Notepad++ via GhostText-Any | ||
|
|
||
| <img width="600" height="302" alt="Screenshot using Notepad++ with GhostText-Any" src="https://github.com/user-attachments/assets/a4f92beb-a6f2-4a67-ae94-aa02af64539e" /> | ||
|
|
||
| ## How it works | ||
|
|
||
| * See [design.md](./doc/design.md) for details. | ||
|
|
||
| ## Roadmap | ||
|
|
||
| * See [README.md](./README.md). | ||
| * See also [a list of milestones][milestones]. | ||
|
|
||
| ## Contributing | ||
|
|
||
| If you like the idea, please: | ||
|
|
||
| * [Star the repo](https://github.com/exteditor/ghostbird/#repository-container-header). | ||
| * [Rate the add-on][review]. | ||
| * Feel free to open issues and submit pull requests. See [CONTRIBUTING.md](./CONTRIBUTING.md) to get started. | ||
| * See our [milestones page][milestones] or [issues](https://github.com/exteditor/ghostbird/issues) for tasks you can contribute to, and use the [Discussions](https://github.com/exteditor/ghostbird/discussions) page for general discussions. | ||
|
|
||
| ## FAQ | ||
|
|
||
| ### Is it safe to use? | ||
|
|
||
| * I'd say yes, but save your work frequently since it may contain bugs and eat your email. | ||
| * This add-on does not collect any personal data and can only connect to localhost. Attempts to send any data to external servers are blocked by Thunderbird's security model. | ||
| * You can look inside the released `.xpi` files (which are just zip files) to verify that they match the build from the source code. | ||
| * As for trustworthiness, the safest option is to wait until it reaches 1.0.0, as that indicates it has passed Mozilla's manual review. | ||
|
|
||
| ### Why not just fork the original GhostText add-on, or contribute to it? | ||
|
|
||
| * See [faq.md](./doc/faq.md#why). | ||
|
|
||
| ### How do I set up a development environment? | ||
|
|
||
| * See [CONTRIBUTING.md](./CONTRIBUTING.md) for details on the development workflow. | ||
|
|
||
| ### How do I troubleshoot connection issues? | ||
|
|
||
| * Make sure that the GhostText server is listening. See the [Troubleshooting page of original GhostText](https://ghosttext.fregante.com/troubleshooting/#unable-to-connect). | ||
|
|
||
| ### How do I switch between HTML mode and Plain Text mode? | ||
|
|
||
| * See [doc/faq.md](./doc/faq.md#mode). | ||
|
|
||
| ### How can I support the project? | ||
|
|
||
| Please consider the following options: | ||
|
|
||
| * [Star the repo](https://github.com/exteditor/ghostbird/#repository-container-header) | ||
| * [Rate the add-on][review] | ||
| * [Donate to Thunderbird](https://www.thunderbird.net/en-US/donate/) (It's financially separate from Firefox) | ||
| * [Donate to @fregante, the author of the original GhostText](https://github.com/sponsors/fregante) | ||
| * [Contribute to the development](./CONTRIBUTING.md) | ||
|
|
||
| If you've looked at the options above and still want to motivate the maintainer [@snipsnipsnip](https://github.com/snipsnipsnip) specifically, you can tip some [ETH](https://gist.githubusercontent.com/snipsnipsnip/d0b0bd12045060c8f71fbc9ea936d886/raw/a840747caa6cac61d0bd3b59145e6ed7e9daf14f/eth.json). | ||
|
|
||
| ## Credits | ||
|
|
||
| * [Federico Brigante](https://fregante.com/), the author of [GhostText][gt]. | ||
| * [Alexandre Feblot](https://github.com/afeblot), the original author of [External Editor](https://github.com/exteditor/exteditor/), which I took over maintaining; it is now in a stale state. I intend to incorporate some of its features into Ghostbird. | ||
| * The button image is based on a [photo](https://commons.wikimedia.org/wiki/File:Grey-headed_Bushshrike_(Malaconotus_blanchoti)_in_tree,_crop.jpg) of a [Grey-headed Bushshrike][bird] by [Patty McGann](https://www.flickr.com/photos/10374910@N08/3093177192/) (CC-BY-2.0). | ||
|
|
||
| [proj]: https://github.com/exteditor/ghostbird/projects | ||
| [milestones]: https://github.com/exteditor/ghostbird/milestones | ||
| [tb]: https://www.thunderbird.net/download/esr/ | ||
| [gt]: https://ghosttext.fregante.com/ | ||
| [helix]: https://github.com/rahji/helix-ghost | ||
| [rels]: https://github.com/exteditor/ghostbird/releases | ||
| [sublimetext-svg]: ./doc/res/sublimetext.svg | ||
| [vscode-svg]: ./doc/res/vscode.svg | ||
| [emacs-svg]: ./doc/res/emacs.svg | ||
| [vim-svg]: ./doc/res/vim.svg | ||
| [nvim-svg]: ./doc/res/nvim.svg | ||
| [bird]: https://en.wikipedia.org/wiki/Grey-headed_bushshrike | ||
| [amo]: https://addons.thunderbird.net/addon/ghostbird/ | ||
| [vimghost]: https://github.com/raghur/vim-ghost | ||
| [review]: https://addons.thunderbird.net/en-US/thunderbird/addon/ghostbird/reviews/add |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <title>Ghostbird: GhostText for Thunderbird</title> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
| <meta name="description" content="Ghostbird is a Thunderbird add-on that connects your text editor with Thunderbird's email compose window, allowing you to edit the message in the text editor."> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> | ||
| <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4.13.1/lib/themes/vue.min.css"> | ||
| <link rel="icon" href="ext/blue.svg" /> | ||
| <script type="module" src="index.mjs"></script> | ||
| </head> | ||
| <body> | ||
| <div id="app"></div> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@11.12.0/+esm"; | ||
| import "https://cdn.jsdelivr.net/npm/docsify@4.13.1/+esm"; | ||
|
|
||
| mermaid.initialize({ startOnLoad: false }); | ||
|
|
||
| // see https://docsify.js.org/#/configuration | ||
|
|
||
| window.$docsify = { | ||
| name: 'Ghostbird \u{1faba}\u{1f4eb}\u{1f47b}', | ||
| repo: 'exteditor/ghostbird', | ||
| logo: 'ext/blue.svg', | ||
| relativePath: true, | ||
| executeScript: true, | ||
| homepage: "homepage.md", | ||
| coverpage: "coverpage.md", | ||
| auto2top: true, | ||
| maxLevel: 2, | ||
| themeColor: '#0b9dd6', | ||
| routes: { | ||
| '/[-._/a-zA-Z]*[.][a-zA-Z]+': (route) => { | ||
| let url = `https://github.com/exteditor/ghostbird/blob/main/${encodeURIComponent(route.slice(1))}` | ||
| return `Redirecting to ${url}...\n\n<script>\nlocation.href = "${url}"${'</'}script>` | ||
| } | ||
| }, | ||
| search: [ | ||
| '/', | ||
| '/BUILDING', | ||
| '/CONTRIBUTING', | ||
| '/doc/faq', | ||
| '/doc/faq-architectural', | ||
| '/doc/building', | ||
| '/doc/testing', | ||
| ], | ||
| markdown: { | ||
| renderer: { | ||
| code(code, lang) { | ||
| if (lang === "mermaid") { | ||
| return `<pre class="mermaid">${code}</pre>`; | ||
| } | ||
| return this.origin.code.apply(this, arguments); | ||
| } | ||
| } | ||
| }, | ||
| plugins: [ | ||
| (hook, _vm) => { | ||
| hook.doneEach(() => mermaid.run()); | ||
| }, | ||
| ], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.