Almirah 0.2.2 → 0.2.4
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/lib/almirah/doc_fabric.rb +21 -2
- data/lib/almirah/doc_items/blockquote.rb +2 -2
- data/lib/almirah/doc_items/code_block.rb +2 -2
- data/lib/almirah/doc_items/controlled_paragraph.rb +100 -79
- data/lib/almirah/doc_items/controlled_table.rb +181 -134
- data/lib/almirah/doc_items/controlled_table_row.rb +3 -3
- data/lib/almirah/doc_items/doc_footer.rb +2 -2
- data/lib/almirah/doc_items/doc_item.rb +1 -1
- data/lib/almirah/doc_items/heading.rb +80 -85
- data/lib/almirah/doc_items/image.rb +2 -2
- data/lib/almirah/doc_items/markdown_list.rb +134 -143
- data/lib/almirah/doc_items/markdown_table.rb +52 -48
- data/lib/almirah/doc_items/paragraph.rb +6 -4
- data/lib/almirah/doc_items/text_line.rb +247 -264
- data/lib/almirah/doc_items/todo_block.rb +2 -2
- data/lib/almirah/doc_parser.rb +56 -60
- data/lib/almirah/doc_types/base_document.rb +1 -0
- data/lib/almirah/doc_types/coverage.rb +4 -1
- data/lib/almirah/doc_types/index.rb +26 -18
- data/lib/almirah/doc_types/specification.rb +56 -93
- data/lib/almirah/doc_types/traceability.rb +6 -2
- data/lib/almirah/dom/doc_section.rb +21 -24
- data/lib/almirah/dom/document.rb +66 -57
- data/lib/almirah/project.rb +257 -275
- data/lib/almirah/search/specifications_db.rb +18 -1
- data/lib/almirah/templates/css/main.css +5 -2
- data/lib/almirah/templates/page.html +4 -2
- data/lib/almirah/templates/scripts/main.js +54 -3
- metadata +2 -2
@@ -1,5 +1,9 @@
|
|
1
1
|
function openNav() {
|
2
|
-
document.getElementById("nav_pane").style.visibility
|
2
|
+
if (document.getElementById("nav_pane").style.visibility == "visible"){
|
3
|
+
document.getElementById("nav_pane").style.visibility = "hidden";
|
4
|
+
}else{
|
5
|
+
document.getElementById("nav_pane").style.visibility = "visible";
|
6
|
+
}
|
3
7
|
}
|
4
8
|
|
5
9
|
function closeNav() {
|
@@ -15,8 +19,21 @@ function openNav() {
|
|
15
19
|
elem.style.width = "640px";
|
16
20
|
}
|
17
21
|
}
|
18
|
-
if (
|
19
|
-
document.getElementById(
|
22
|
+
if (document.title == "Document Index"){
|
23
|
+
document.getElementById('document_tree_menu_item').style.display = "none";
|
24
|
+
document.getElementById('home_menu_item').style.display = "block";
|
25
|
+
document.getElementById('index_menu_item').style.display = "none";
|
26
|
+
if (document.URL.includes('http')){
|
27
|
+
document.getElementById("searchInput").style.display = "block";
|
28
|
+
}
|
29
|
+
}else{
|
30
|
+
document.getElementById('home_menu_item').style.display = "none";
|
31
|
+
document.getElementById('index_menu_item').style.display = "block";
|
32
|
+
if (document.title.includes("Traceability Matrix:")){
|
33
|
+
document.getElementById('document_tree_menu_item').style.display = "none";
|
34
|
+
} else {
|
35
|
+
document.getElementById('document_tree_menu_item').style.display = "block";
|
36
|
+
}
|
20
37
|
}
|
21
38
|
// Scroll a bit to make navigated anchor visible
|
22
39
|
//setTimeout(function() {
|
@@ -33,11 +50,27 @@ function openNav() {
|
|
33
50
|
required_id = "DLS_" + id_parts[1];
|
34
51
|
document.getElementById(required_id).style.display = 'block';
|
35
52
|
}
|
53
|
+
function coverageLink_OnClick(clicked){
|
54
|
+
clicked.style.display = 'none';
|
55
|
+
id_parts = clicked.id.split("_");
|
56
|
+
required_id = "COVS_" + id_parts[1];
|
57
|
+
document.getElementById(required_id).style.display = 'block';
|
58
|
+
}
|
59
|
+
function upLink_OnClick(clicked){
|
60
|
+
clicked.style.display = 'none';
|
61
|
+
id_parts = clicked.id.split("_");
|
62
|
+
required_id = "ULS_" + id_parts[1];
|
63
|
+
document.getElementById(required_id).style.display = 'block';
|
64
|
+
}
|
36
65
|
|
37
66
|
function navigate_to_home(){
|
38
67
|
if (document.title != "Document Index")
|
39
68
|
{
|
69
|
+
if (document.URL.includes('protocols')){
|
70
|
+
window.location.href = "./../../../index.html";
|
71
|
+
}else{
|
40
72
|
window.location.href = "./../../index.html";
|
73
|
+
}
|
41
74
|
}else{
|
42
75
|
window.location.href = "./index.html";
|
43
76
|
}
|
@@ -58,4 +91,22 @@ function openNav() {
|
|
58
91
|
function modal_close_OnClick(clicked){
|
59
92
|
var modal = document.getElementById('image_modal_div');
|
60
93
|
modal.style.display = "none";
|
94
|
+
}
|
95
|
+
|
96
|
+
// Navigation Pane Expand/Collapse
|
97
|
+
function nav_toggle_expand_list(el, e){
|
98
|
+
var children = el.children;
|
99
|
+
e.stopPropagation();
|
100
|
+
for (var i = 0; i < children.length; i++) {
|
101
|
+
var list_item = children[i];
|
102
|
+
if (list_item.tagName == "UL"){
|
103
|
+
if (list_item.style.display != "none"){
|
104
|
+
list_item.style.display = "none";
|
105
|
+
}else{
|
106
|
+
list_item.style.display = "block";
|
107
|
+
}
|
108
|
+
}else if (list_item.tagName == "SPAN"){
|
109
|
+
list_item.firstChild.classList.toggle("fa-plus-square-o");
|
110
|
+
}
|
111
|
+
}
|
61
112
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Almirah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleksandr Ivanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The software part of the Almirah framework
|
14
14
|
email: oleksandr.ivanov.development@gmail.com
|