Skip to content

Commit d875242

Browse files
authored
Misc doc changes (#476)
List of changes: * Fix image not showing in HTML page * Use common source url * Fix invalid SPDX license id * Update license section * Set and use latest ex_doc * Fix markdown in changelog * Badges and more badges! * Fix typos * Update gitignore * Update formatter config * Remove extra spaces * Add logo
1 parent 24997fb commit d875242

File tree

14 files changed

+113
-66
lines changed

14 files changed

+113
-66
lines changed

.formatter.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Used by "mix format"
12
[
2-
inputs: [".formatter.exs", "mix.exs", "{config,lib,test}/**/*.{ex,exs}"]
3+
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
34
]

.github/workflows/elixir.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
name: deps_lock
3838
path: mix.lock
39-
39+
4040
compile_dev:
4141
name: Compile Dev Environment
4242

@@ -76,7 +76,7 @@ jobs:
7676
with:
7777
name: compile_dev
7878
path: _build/dev/
79-
79+
8080
compile_docs:
8181
name: Compile Docs Environment
8282

@@ -116,7 +116,7 @@ jobs:
116116
with:
117117
name: compile_docs
118118
path: _build/docs/
119-
119+
120120
compile_test:
121121
name: Compile Test Environment (OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}})
122122

@@ -162,7 +162,7 @@ jobs:
162162
with:
163163
name: compile_test-${{matrix.otp}}-${{matrix.elixir}}
164164
path: _build/test/
165-
165+
166166
compile_prod:
167167
name: Compile Prod Environment
168168

@@ -205,7 +205,7 @@ jobs:
205205

206206
format:
207207
name: Check Formatting
208-
208+
209209
runs-on: ubuntu-latest
210210

211211
needs: ['deps']
@@ -397,4 +397,4 @@ jobs:
397397
- uses: actions/upload-artifact@v1
398398
with:
399399
name: docs
400-
path: doc
400+
path: doc

.gitignore

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
1-
/_build
2-
/deps
3-
/doc
4-
/docs
1+
# The directory Mix will write compiled artifacts to.
2+
/_build/
3+
4+
# If you run "mix test --cover", coverage assets end up here.
5+
/cover/
6+
7+
# The directory Mix downloads your dependencies sources to.
8+
/deps/
9+
10+
# Where third-party dependencies like ExDoc output generated docs.
11+
/doc/
12+
13+
# Ignore .fetch files in case you like to edit your project deps locally.
14+
/.fetch
15+
16+
# If the VM crashes, it generates a dump, let's ignore it too.
517
erl_crash.dump
6-
mix.lock
18+
19+
# Also ignore archive artifacts (built via "mix archive.build").
720
*.ez
8-
/cover
21+
22+
# Ignore package tarball (built via "mix hex.build").
23+
quantum-*.tar
24+
25+
# Temporary files for e.g. tests.
26+
/tmp/
27+
28+
# Misc.
29+
mix.lock
930
/priv/plts/*.plt
10-
/priv/plts/*.plt.hash
31+
/priv/plts/*.plt.hash

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Diff for [3.0.0-rc.2]
6868

6969
## 3.0.0-rc.1 - 2020-02-26
7070

71-
## Changed
71+
### Changed
7272

7373
- A lot of function that were not for public use have been undocumented. Those are now considered internal and may break at any point in time.
7474
- `Quantum.Scheduler` has been renamed to `Quantum`

README.md

Lines changed: 42 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
# Quantum
22

3-
[Cron](https://en.wikipedia.org/wiki/Cron)-like job scheduler for [Elixir](http://elixir-lang.org/).
4-
5-
[![Financial Contributors on Open Collective](https://opencollective.com/quantum/all/badge.svg?label=financial+contributors)](https://opencollective.com/quantum) [![Hex.pm Version](http://img.shields.io/hexpm/v/quantum.svg)](https://hex.pm/packages/quantum)
6-
[![Hex docs](http://img.shields.io/badge/hex.pm-docs-green.svg?style=flat)](https://hexdocs.pm/quantum)
7-
![.github/workflows/elixir.yml](https://github.com/quantum-elixir/quantum-core/workflows/.github/workflows/elixir.yml/badge.svg)
3+
[![Financial Contributors on Open Collective](https://opencollective.com/quantum/all/badge.svg?label=financial+contributors)](https://opencollective.com/quantum)
4+
[![CI](https://github.com/quantum-elixir/quantum-core/workflows/.github/workflows/elixir.yml/badge.svg)](https://github.com/quantum-elixir/quantum-core/actions/workflows/elixir.yml)
85
[![Coverage Status](https://coveralls.io/repos/quantum-elixir/quantum-core/badge.svg?branch=master)](https://coveralls.io/r/quantum-elixir/quantum-core?branch=master)
9-
[![Hex.pm](https://img.shields.io/hexpm/dt/quantum.svg)](https://hex.pm/packages/quantum)
6+
[![Module Version](https://img.shields.io/hexpm/v/quantum.svg)](https://hex.pm/packages/quantum)
7+
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/quantum/)
8+
[![Total Download](https://img.shields.io/hexpm/dt/quantum.svg)](https://hex.pm/packages/quantum)
9+
[![License](https://img.shields.io/hexpm/l/quantum.svg)](https://github.com/quantum-elixir/quantum-core/blob/master/LICENSE)
10+
[![Last Updated](https://img.shields.io/github/last-commit/quantum-elixir/quantum-core.svg)](https://github.com/quantum-elixir/quantum-core/commits/master)
1011

1112
> **This README follows master, which may not be the currently published version**. Here are the
1213
[docs for the latest published version of Quantum](https://hexdocs.pm/quantum/readme.html).
1314

15+
[Cron](https://en.wikipedia.org/wiki/Cron)-like job scheduler for [Elixir](http://elixir-lang.org/).
16+
1417
## Setup
1518

16-
To use Quantum in your project, edit the `mix.exs` file and add Quantum to
19+
To use Quantum in your project, edit the `mix.exs` file and add `Quantum` to
1720

1821
**1. the list of dependencies:**
1922
```elixir
2023
defp deps do
21-
[{:quantum, "~> 3.0"}]
24+
[
25+
{:quantum, "~> 3.0"}
26+
]
2227
end
2328
```
2429

@@ -90,10 +95,9 @@ More details on the usage can be found in the [Documentation](https://hexdocs.pm
9095

9196
This project uses the [Collective Code Construction Contract (C4)](http://rfc.zeromq.org/spec:42/C4/) for all code changes.
9297

93-
> "Everyone, without distinction or discrimination, SHALL have an equal right to become a Contributor under the
94-
terms of this contract."
98+
> "Everyone, without distinction or discrimination, SHALL have an equal right to become a Contributor under the terms of this contract."
9599
96-
### tl;dr
100+
### TL;DR
97101

98102
1. Check for [open issues](https://github.com/quantum-elixir/quantum-core/issues) or [open a new issue](https://github.com/quantum-elixir/quantum-core/issues/new) to start a discussion around [a problem](https://www.youtube.com/watch?v=_QF9sFJGJuc).
99103
2. Issues SHALL be named as "Problem: _description of the problem_".
@@ -106,31 +110,42 @@ terms of this contract."
106110
### Code Contributors
107111

108112
This project exists thanks to all the people who contribute.
109-
<a href="https://github.com/quantum-elixir/quantum-core/graphs/contributors"><img src="https://opencollective.com/quantum/contributors.svg?width=890&button=false" /></a>
113+
114+
[![Contributors](https://opencollective.com/quantum/contributors.svg?width=890&button=false)](https://github.com/quantum-elixir/quantum-core/graphs/contributors)
110115

111116
### Financial Contributors
112117

113118
Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/quantum/contribute)]
114119

115120
#### Individuals
116121

117-
<a href="https://opencollective.com/quantum"><img src="https://opencollective.com/quantum/individuals.svg?width=890"></a>
122+
[![Individuals](https://opencollective.com/quantum/individuals.svg?width=890)](https://opencollective.com/quantum)
118123

119124
#### Organizations
120125

121126
Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/quantum/contribute)]
122127

123-
<a href="https://opencollective.com/quantum/organization/0/website"><img src="https://opencollective.com/quantum/organization/0/avatar.svg"></a>
124-
<a href="https://opencollective.com/quantum/organization/1/website"><img src="https://opencollective.com/quantum/organization/1/avatar.svg"></a>
125-
<a href="https://opencollective.com/quantum/organization/2/website"><img src="https://opencollective.com/quantum/organization/2/avatar.svg"></a>
126-
<a href="https://opencollective.com/quantum/organization/3/website"><img src="https://opencollective.com/quantum/organization/3/avatar.svg"></a>
127-
<a href="https://opencollective.com/quantum/organization/4/website"><img src="https://opencollective.com/quantum/organization/4/avatar.svg"></a>
128-
<a href="https://opencollective.com/quantum/organization/5/website"><img src="https://opencollective.com/quantum/organization/5/avatar.svg"></a>
129-
<a href="https://opencollective.com/quantum/organization/6/website"><img src="https://opencollective.com/quantum/organization/6/avatar.svg"></a>
130-
<a href="https://opencollective.com/quantum/organization/7/website"><img src="https://opencollective.com/quantum/organization/7/avatar.svg"></a>
131-
<a href="https://opencollective.com/quantum/organization/8/website"><img src="https://opencollective.com/quantum/organization/8/avatar.svg"></a>
132-
<a href="https://opencollective.com/quantum/organization/9/website"><img src="https://opencollective.com/quantum/organization/9/avatar.svg"></a>
133-
134-
## License
135-
136-
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
128+
[![Organization0](https://opencollective.com/quantum/organization/0/avatar.svg)](https://opencollective.com/quantum/organization/0/website)
129+
[![Organization1](https://opencollective.com/quantum/organization/1/avatar.svg)](https://opencollective.com/quantum/organization/1/website)
130+
[![Organization2](https://opencollective.com/quantum/organization/2/avatar.svg)](https://opencollective.com/quantum/organization/2/website)
131+
[![Organization3](https://opencollective.com/quantum/organization/3/avatar.svg)](https://opencollective.com/quantum/organization/3/website)
132+
[![Organization4](https://opencollective.com/quantum/organization/4/avatar.svg)](https://opencollective.com/quantum/organization/4/website)
133+
[![Organization5](https://opencollective.com/quantum/organization/5/avatar.svg)](https://opencollective.com/quantum/organization/5/website)
134+
[![Organization6](https://opencollective.com/quantum/organization/6/avatar.svg)](https://opencollective.com/quantum/organization/6/website)
135+
[![Organization7](https://opencollective.com/quantum/organization/7/avatar.svg)](https://opencollective.com/quantum/organization/7/website)
136+
[![Organization8](https://opencollective.com/quantum/organization/8/avatar.svg)](https://opencollective.com/quantum/organization/8/website)
137+
[![Organization9](https://opencollective.com/quantum/organization/9/avatar.svg)](https://opencollective.com/quantum/organization/9/website)
138+
139+
## Copyright and License
140+
141+
Copyright (c) 2015 Constantin Rack
142+
143+
Licensed under the Apache License, Version 2.0 (the "License");
144+
you may not use this file except in compliance with the License.
145+
You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
146+
147+
Unless required by applicable law or agreed to in writing, software
148+
distributed under the License is distributed on an "AS IS" BASIS,
149+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
150+
See the License for the specific language governing permissions and
151+
limitations under the License.

assets/quantum-elixir-logo.svg

Lines changed: 12 additions & 0 deletions
Loading

lib/quantum/run_strategy/all.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Quantum.RunStrategy.All do
22
@moduledoc """
3-
Run job on all node of the node list
3+
Run job on all node of the node list.
44
55
If the node list is `:cluster`, all nodes of the cluster will be used.
66

lib/quantum/storage.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Quantum.Storage do
22
@moduledoc """
3-
Bahaviour to be implemented by all Storage Adapters.
3+
Behaviour to be implemented by all Storage Adapters.
44
55
The calls to the storage are blocking, make sure they're fast to not block the job execution.
66
"""

mix.exs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ defmodule Quantum.Mixfile do
33

44
use Mix.Project
55

6+
@source_url "https://github.com/quantum-elixir/quantum-core"
67
@version "3.3.0"
78

89
def project do
@@ -54,10 +55,10 @@ defmodule Quantum.Mixfile do
5455
"Jonatan Männchen"
5556
],
5657
exclude_patterns: [~r[priv/plts]],
57-
licenses: ["Apache License 2.0"],
58+
licenses: ["Apache-2.0"],
5859
links: %{
59-
"Changelog" => "https://github.com/quantum-elixir/quantum-core/blob/master/CHANGELOG.md",
60-
"GitHub" => "https://github.com/quantum-elixir/quantum-core"
60+
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md",
61+
"GitHub" => @source_url
6162
}
6263
}
6364
end
@@ -66,13 +67,14 @@ defmodule Quantum.Mixfile do
6667
[
6768
main: "readme",
6869
source_ref: "v#{@version}",
69-
source_url: "https://github.com/quantum-elixir/quantum-core",
70+
source_url: @source_url,
71+
logo: "assets/quantum-elixir-logo.svg",
7072
extras: [
71-
"README.md",
7273
"CHANGELOG.md",
74+
"README.md",
7375
"pages/supervision-tree.md",
7476
"pages/configuration.md",
75-
"pages/runtime.md",
77+
"pages/runtime-configuration.md",
7678
"pages/crontab-format.md",
7779
"pages/run-strategies.md",
7880
"pages/telemetry.md"
@@ -97,13 +99,12 @@ defmodule Quantum.Mixfile do
9799
[
98100
{:crontab, "~> 1.1"},
99101
{:gen_stage, "~> 0.14 or ~> 1.0"},
102+
{:telemetry, "~> 0.4"},
100103
{:tzdata, "~> 1.0", only: [:dev, :test]},
101-
{:earmark, "~> 1.0", only: [:dev, :docs], runtime: false},
102-
{:ex_doc, "~> 0.19", only: [:dev, :docs], runtime: false},
104+
{:ex_doc, ">= 0.0.0", only: [:dev, :docs], runtime: false},
103105
{:excoveralls, "~> 0.5", only: [:test], runtime: false},
104106
{:dialyxir, "~> 1.0-rc", only: [:dev], runtime: false},
105-
{:credo, "~> 1.0", only: [:dev], runtime: false},
106-
{:telemetry, "~> 0.4"}
107+
{:credo, "~> 1.0", only: [:dev], runtime: false}
107108
]
108109
end
109110
end

pages/configuration.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,3 @@ Timezones can also be configured on a per-job basis. This overrides the default
155155
timezone: "America/New_York"
156156
}
157157
```
158-
159-
## Telemetry Support
160-

0 commit comments

Comments
 (0)