hotdocs 0.4.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/images/hotdocs/icon.svg +1 -1
- data/app/assets/javascript/controllers/input_cycler_controller.js +19 -0
- data/app/assets/javascript/controllers/{search_controller.js → lunr_controller.js} +1 -1
- data/app/assets/stylesheets/hotdocs/application.css +919 -668
- data/app/assets/stylesheets/hotdocs/reset.css +338 -336
- data/app/helpers/hotdocs/application_helper.rb +60 -6
- data/app/views/hotdocs/_menu_row.html.erb +26 -7
- data/app/views/layouts/hotdocs/application.html.erb +88 -60
- data/lib/hotdocs/markdown.rb +1 -3
- data/lib/hotdocs/version.rb +1 -1
- data/lib/install/install.rb +26 -5
- data/lib/tasks/hotdocs_tasks.rake +24 -19
- metadata +3 -3
- data/lib/hotdocs/kramdown_alerts.rb +0 -92
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c490655dd79fd1f2d45609e7ac0635c33e53a41462b8ff174cef7f73a8d8cec
|
4
|
+
data.tar.gz: 8a0033fe08f447ba4c2868dc01c18dd421e58cb8f5bf5edf778e8d596bd6bae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bd387b959fac0bb3e060c1218f3976d997892e6455baac1a55e3cc33ffe660abf8c08032ac3b95e171f43b88a1ac72a30545cb049edaa851840a9c8a64e43f8
|
7
|
+
data.tar.gz: 2eb3ec4d38427ec22b22841843e271feeebb943446070c3c8a3b68fe419f70657113da900350f2fb819bd131197b32682235fd3c80f70f4d187147d06c62dcfe
|
data/README.md
CHANGED
@@ -22,8 +22,8 @@ HotDocs is a set of optimized Rails components & tools for writing docs:
|
|
22
22
|
| Styled components you can customize | ✅ | ✅ | ✅ |
|
23
23
|
| Markdown (with syntax highlight & themes) | ✅ | ✅ | ✅ |
|
24
24
|
| Static export | ✅ | ✅ | ✅ |
|
25
|
-
| Search |
|
26
|
-
| Light / Dark |
|
25
|
+
| Search | ✅ | 🔌 | 🔌 |
|
26
|
+
| Light / Dark | ✅ | 🔌 | ✅ |
|
27
27
|
| Open source | ✅ | ✅ | ✅ |
|
28
28
|
| Free | ✅ | ✅ | ✅ |
|
29
29
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<svg viewBox="0 0 500 500" fill="none" xmlns="http://www.w3.org/2000/svg">
|
1
|
+
<svg aria-hidden="true" viewBox="0 0 500 500" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
2
|
<path d="M90 328C243.479 290.664 328.011 197.596 359 91" stroke="#F1B869" stroke-width="120" stroke-linecap="round"/>
|
3
3
|
<path d="M67 376C252.429 326.849 354.56 204.329 392 64" stroke="#E34752" stroke-width="120" stroke-linecap="round"/>
|
4
4
|
<path d="M147 415C300.479 377.664 385.011 284.596 416 178" stroke="#F1B869" stroke-width="160" stroke-linecap="round"/>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Controller } from "@hotwired/stimulus"
|
2
|
+
|
3
|
+
export default class extends Controller {
|
4
|
+
connect() {
|
5
|
+
this.element.addEventListener("click", this._checkNextInput);
|
6
|
+
}
|
7
|
+
|
8
|
+
disconnect() {
|
9
|
+
this.element.removeEventListener("click", this._checkNextInput);
|
10
|
+
}
|
11
|
+
|
12
|
+
_checkNextInput = (event) => {
|
13
|
+
event.preventDefault()
|
14
|
+
const inputs = Array.from(this.element.querySelectorAll('input'))
|
15
|
+
const i = inputs.findIndex(input => input.checked)
|
16
|
+
const j = (i+1) % inputs.length
|
17
|
+
inputs[j].checked = true
|
18
|
+
}
|
19
|
+
}
|
@@ -78,7 +78,7 @@ export default class extends Controller {
|
|
78
78
|
console.warn(
|
79
79
|
[
|
80
80
|
"The search data is not present in the HTML.",
|
81
|
-
"If you are in development, run `bundle exec rails hotdocs:index`.",
|
81
|
+
"If you are in development, run `bundle exec rails hotdocs:lunr:index`.",
|
82
82
|
"If you are in production, assets compilation should have taken care of it.",
|
83
83
|
].join(" ")
|
84
84
|
);
|