Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Oct 11, 2020
1 parent 0020e89 commit ef41a5a
Show file tree
Hide file tree
Showing 22 changed files with 6,462 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: noraj
issuehunt: noraj
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 12.19.0
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## [Unreleased]

## [1.0.0]

- Initial version
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Alexandre ZANNI
Copyright (c) 2020 noraj (Alexandre ZANNI)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# ArchLinux Search

A set of Web Extensions that adds ArchLinux (bug tracker, forum, packages, wiki, AUR) as
a search engine to the Firefox browser (using the [chrome_settings_overrides](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/chrome_settings_overrides) manifest key).
Submits the query via GET request for compatibility with [Multi-Account Containers](https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/).

Available search engines:

name | shortcut
---------------------------------------|---------
ArchLinux Packages Search | `alpkgs`
ArchLinux Wiki Search | `alwiki`
ArchLinux User Repository (AUR) Search | `alaur`
ArchLinux Bugtracker (by FS) Search | `albugsfs`
ArchLinux Bugtracker (by text) Search | `albugst`
ArchLinux Forum (by author) Search | `alforuma`
ArchLinux Forum (by keywords) Search | `alforumk`

## Develop Locally

* Clone the repo
* Install tools:
* [Node.js](https://nodejs.org) via [asdf](https://asdf-vm.com/)
* Install dependencies:
* `npm i`
* Lint (check for manifest syntax errors)
* `npm run lint -- -s web-extensions/<ext-name>`
* Run add-on in isolated Firefox instance using [web-ext](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Getting_started_with_web-ext) (open the [Browser Toolbox](https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox) for console logging):
* `npm run run -- -s web-extensions/<ext-name>`
* Package for distribution:
* One extension: `npm run build -- -s web-extensions/<ext-name>`
* All extensions: `npm run buildAll`

## FAQ

- [Why is there one extension per search engine?](https://stackoverflow.com/questions/64304959/is-it-possible-to-add-multiple-search-engines-in-the-same-firefox-web-extension)

8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
web-ext build --overwrite-dest -s ./web-extensions/arch-pkgs -a ./dist
web-ext build --overwrite-dest -s ./web-extensions/arch-wiki -a ./dist
web-ext build --overwrite-dest -s ./web-extensions/arch-aur -a ./dist
web-ext build --overwrite-dest -s ./web-extensions/arch-bugs-fs -a ./dist
web-ext build --overwrite-dest -s ./web-extensions/arch-bugs-t -a ./dist
web-ext build --overwrite-dest -s ./web-extensions/arch-forum-a -a ./dist
web-ext build --overwrite-dest -s ./web-extensions/arch-forum-k -a ./dist
Loading

0 comments on commit ef41a5a

Please sign in to comment.