Skip to content

Commit 9e092cc

Browse files
update
1 parent ca4a037 commit 9e092cc

File tree

13 files changed

+227
-150
lines changed

13 files changed

+227
-150
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ EXPOSE 4000
66

77
ARG DEBIAN_FRONTEND=noninteractive
88
RUN apt-get update \
9+
&& ls \
910
&& apt-get -y install build-essential \
1011
&& bundle install \
1112
&& apt-get -y clean \
1213
&& apt-get -y purge build-essential \
1314
&& apt-get -y autoremove \
1415
&& rm -rf /var/lib/apt/lists/*
16+

Doxyfile

+28-5
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,28 @@
44
#EXTRACT_LOCAL_CLASSES = YES
55
#EXTRACT_PRIVATE = NO
66
#EXTRACT_STATIC = YES
7-
#GENERATE_DOCSET = YES
7+
GENERATE_DOCSET = YES
88
#MACRO_EXPANSION = NO
99
#SKIP_FUNCTION_MACROS = NO
10-
11-
COLLABORATION_GRAPH = NO
1210
DOT_IMAGE_FORMAT = svg
1311
DOXYFILE_ENCODING = UTF-8
1412
EXTRACT_ALL = YES
1513
GENERATE_LATEX = NO
16-
INPUT = albert/include
17-
STRIP_FROM_INC_PATH = albert/include
14+
#INPUT = albert/include
15+
INPUT = ../include
16+
STRIP_FROM_INC_PATH = albert/include # relative include paths
17+
18+
19+
FULL_PATH_NAMES = YES # Relative paths in include graph
20+
STRIP_FROM_PATH = ..
21+
22+
HAVE_DOT = YES
1823

24+
# hide undoc stuff
25+
HIDE_UNDOC_MEMBERS = YES
26+
HIDE_UNDOC_CLASSES = YES
27+
HIDE_FRIEND_COMPOUNDS = YES
28+
HIDE_IN_BODY_DOCS = YES
1929

2030
JAVADOC_AUTOBRIEF = YES
2131
LAYOUT_FILE = DoxygenLayout.xml
@@ -48,3 +58,16 @@ HTML_EXTRA_STYLESHEET = doxygen-awesome-css/doxygen-awesome.css doxygen-awesome
4858
HTML_COLORSTYLE = LIGHT # required with Doxygen >= 1.9.5
4959
HTML_OUTPUT = src/reference
5060

61+
62+
#OUTPUT_DIRECTORY = doxy_out
63+
#COLLABORATION_GRAPH = NO
64+
#CLASS_GRAPH = YES
65+
66+
# Class diagram
67+
#INPUT = ../include ../src
68+
#HIDE_UNDOC_RELATIONS = NO
69+
#UML_LOOK = YES
70+
#CALL_GRAPH = YES
71+
#CALLER_GRAPH = YES
72+
73+

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
info:
22
less Makefile
33

4+
clean:
5+
rm src/Gemfile.lock
6+
docker container rm jekyll
7+
48
doxygen:
59
rm -rf albert src/reference
610
git clone --depth 1 https://github.com/albertlauncher/albert.git
711
doxygen
812

913
build:
10-
docker-compose up jekyll-build
14+
docker-compose up --build jekyll-build
1115

1216
serve:
1317
docker-compose up jekyll-serve

docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.5"
2-
31
services:
42

53
jekyll: &jekyll
@@ -16,16 +14,19 @@ services:
1614
jekyll-build:
1715
<<: *jekyll
1816
command: build
17+
container_name: jekyll-build
1918

2019
jekyll-serve:
2120
<<: *jekyll
2221
ports:
2322
- 4000:4000
2423
command: serve --host 0.0.0.0 --trace
24+
container_name: jekyll-serve
2525

2626
html-proofer:
2727
image: klakegg/html-proofer:3.17.0
2828
volumes:
2929
- ./src/_site:/src
3030
command: --allow-hash-href --check-html --empty-alt-ignore
31+
container_name: html-proofer
3132

src/_sass/custom/custom.scss

+13-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,16 @@ body {
1313
//font-size: 1.6em;
1414
//font-weight: 300;
1515
//text-shadow: 0 1px 3px rgba(0,0,0,0.05);
16-
}
16+
}
17+
18+
kbd {
19+
border: .5px solid gray;
20+
border-radius: 4px;
21+
box-shadow: 0px 2px 4px gray;
22+
display: inline-block;
23+
font-size: .9em;
24+
padding: 0.1em .5em 0em .5em;
25+
margin: 0em .3em;
26+
color: gray;
27+
white-space: nowrap;
28+
}

src/gettingstarted/concepts.md

-51
Original file line numberDiff line numberDiff line change
@@ -1,51 +0,0 @@
1-
---
2-
title: Concepts
3-
parent: Getting started
4-
nav_order: 0
5-
---
6-
7-
# {{ page.title }}
8-
{: .no_toc }
9-
10-
- TOC
11-
{:toc}
12-
13-
A list of core concepts that help you to grasp things faster.
14-
15-
## Plugins
16-
17-
A plugin is a module that can be loaded/unloaded while the launcher is running.
18-
They could be native plugins (shared libraries) or provided by plugin providers, such as Python modules from the Python plugin provider.
19-
Nested plugins are only accessible if their provider is loaded.
20-
21-
Users can enable/disable or load/unload plugins via the Plugins tab in settings or using the built-in plugin query handler.
22-
Enabled plugins load automatically at launch.
23-
Plugins with graphical interfaces for configuration can be accessed via the Plugins tab.
24-
Some plugins offer more detailed usage information there.
25-
26-
## Extensions
27-
28-
Each plugin can provide various extensions, like frontends, plugin providers, fallback providers or query handlers.
29-
While frontends and plugin providers are advanced topics, fallback providers, global- and triggered query handlers are central to the app's functionality.
30-
31-
## Queries
32-
33-
The core of the app is the query engine which parses user input and decides the mode of a query.
34-
If the query is prefixed by a trigger defined by any of the trigger query handlers the coresponding handler will handle the query exclusively.
35-
This allows the handler to display matches as soon as they are available.
36-
Queries without triggers are delegated to all global query handlers (multithreaded).
37-
As soon as the handlers finished the matches are sorted by match score and usage history and displayed.
38-
Additionally, fallback handlers offer a separate set of results: the fallback items.
39-
40-
## TODO
41-
{: .no_toc }
42-
43-
44-
- Results
45-
- Matches
46-
- Fallbacks
47-
- Items
48-
- Actions
49-
- Extension interfaces (Concept and builtins)
50-
51-
If you are missing something here post an issue.

src/gettingstarted/extension/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ A quick comparison:
2424

2525
## General considerations and best practices
2626

27-
### How to version plugins
27+
### Semantic versioning
2828

2929
If it has a public API `major.minor.patch` else `minor.patch`.
3030
Increase major if the API breaks.
3131
Increase minor if the API got some backward compatible additions or the user experiences noticeable changes.
3232
In all other cases increase patch.
3333

34-
### Avoiding name conflicts of extension identifiers
34+
### Avoid extension identifier conflicts
3535

3636
If your plugin provides multiple extensions it's a good idea to prepend the plugin id to the extension id to avoid name conflicts of extensions, e.g. `files.root_browser`.
3737
The root extension is fine to match the plugin id.

src/gettingstarted/install/index.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Install
3+
parent: Getting started
4+
nav_order: 0
5+
has_children: true
6+
---
7+
8+
# {{ page.title }}
9+
10+
Prebuilt packages are available for Linux and macOS. Windows is not supported yet.
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
---
2-
title: Installation
2+
title: Linux
3+
parent: Install
4+
grand_parent: Getting started
35
nav_order: 1
46
---
57

6-
# {{ page.title }}
7-
{: .no_toc }
8+
# Linux
89

9-
- TOC
10-
{:toc}
11-
12-
{: .warning }
13-
Unofficial packages may contain malicious code!
14-
Please make sure to use official or trusted repositories.
15-
16-
## Official packages
17-
18-
Official packages are built and hosted at [Open Build Service](https://build.opensuse.org/package/show/home:manuelschneid3r/albert).
19-
Downloads and installation instructions for the base distributions can be found in the OBS software center.
10+
Supported distributions, downloads and installation instructions for the base distributions can be found in the Open Build Service software center.
2011

2112
[Visit OBS software center](https://software.opensuse.org/download/package.iframe?project=home:manuelschneid3r&package=albert&acolor=00cccc&hcolor=00aaaa){: .btn .fs-5}
2213

@@ -34,28 +25,14 @@ Several other distributions are supported when used with the correct package bas
3425
| PopOS! 22.04 | Ubuntu 22.04 [ℹ️](https://en.wikipedia.org/wiki/Pop!_OS#Release_table) |
3526
| PopOS! 20.04 | Ubuntu 20.04 [ℹ️](https://en.wikipedia.org/wiki/Pop!_OS#Release_table) |
3627

37-
{: .note }
3828
Feel free to add missing mappings to this table.
3929

30+
The packages are [built](https://build.opensuse.org/package/show/home:manuelschneid3r/albert) and
31+
[hosted](http://download.opensuse.org/repositories/home:/manuelschneid3r/) at Open Build Service.
4032

4133
## Unofficial packages
4234

35+
Feel free to add repositories to this list.
36+
4337
- [ArchLinux AUR](https://aur.archlinux.org/packages/albert)
4438
- [nixOS](https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=albert)
45-
46-
{: .note }
47-
Feel free to add trusted repositories to this list.
48-
49-
## From source
50-
51-
Building and installing from sources is the least convenient, but most flexible way.
52-
This way is usually for developers only.
53-
The build process is trivial, but you have to manage the dependencies on your own.
54-
See the [OBS package specs](https://build.opensuse.org/package/show/home:manuelschneid3r/albert) for up to date build and runtime dependencies.
55-
56-
```bash
57-
git clone --recursive https://github.com/albertlauncher/albert.git
58-
cmake -B build -S albert -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
59-
cmake --build build
60-
cmake --install build
61-
```

src/gettingstarted/install/macos.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: macOS
3+
parent: Install
4+
grand_parent: Getting started
5+
nav_order: 0
6+
---
7+
8+
# macOS
9+
10+
{: .note }
11+
The macOS version is experimental 🚧
12+
13+
Albert is available via [homebrew](https://brew.sh/) tap.
14+
The package is [built](https://github.com/albertlauncher/albert/actions/workflows/ci.yml)
15+
and [hosted](https://github.com/albertlauncher/albert/releases) on GitHub.
16+
The [homebrew tap](https://github.com/albertlauncher/homebrew-albert)
17+
provides a [cask](https://github.com/albertlauncher/homebrew-albert/blob/main/Casks/albert.rb) for Albert.
18+
To install Albert via homebrew run the following commands:
19+
20+
```bash
21+
brew tap albertlauncher/albert
22+
brew update
23+
brew install albert
24+
```
25+
26+
`brew update` and `brew upgrade` will keep the app up to date.
27+
28+
Note that the packaged app is *not signed*.
29+
Read the caveats section of `brew install`.
30+
For convenience the cask creates an ad-hoc signature and disables Gatekeeper for the app.
31+
See the postflight section of the cask.
32+

src/gettingstarted/install/source.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: From source
3+
parent: Install
4+
grand_parent: Getting started
5+
nav_order: 2
6+
---
7+
8+
# From source
9+
10+
Building and installing from sources is the least convenient, but most flexible way.
11+
This way is usually for developers only.
12+
The build process is trivial, but you have to manage the dependencies on your own.
13+
See the [OBS package specs](https://build.opensuse.org/package/show/home:manuelschneid3r/albert) for up to date build and runtime dependencies.
14+
15+
```bash
16+
git clone --recursive https://github.com/albertlauncher/albert.git
17+
cmake -B build -S albert -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
18+
cmake --build build
19+
cmake --install build
20+
```

0 commit comments

Comments
 (0)