owasp-td-jekyll 0.1.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.
Files changed (129) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +202 -0
  3. data/README.md +212 -0
  4. data/_includes/head.html +11 -0
  5. data/_includes/navbar.html +33 -0
  6. data/_includes/sidebar.html +55 -0
  7. data/_layouts/default.html +15 -0
  8. data/_layouts/page.html +11 -0
  9. data/_layouts/post.html +5 -0
  10. data/_sass/bootstrap-theme.scss +15 -0
  11. data/_sass/bootstrap/LICENSE +22 -0
  12. data/_sass/bootstrap/_alert.scss +52 -0
  13. data/_sass/bootstrap/_badge.scss +54 -0
  14. data/_sass/bootstrap/_breadcrumb.scss +44 -0
  15. data/_sass/bootstrap/_button-group.scss +163 -0
  16. data/_sass/bootstrap/_buttons.scss +142 -0
  17. data/_sass/bootstrap/_card.scss +286 -0
  18. data/_sass/bootstrap/_carousel.scss +197 -0
  19. data/_sass/bootstrap/_close.scss +40 -0
  20. data/_sass/bootstrap/_code.scss +48 -0
  21. data/_sass/bootstrap/_custom-forms.scss +524 -0
  22. data/_sass/bootstrap/_dropdown.scss +192 -0
  23. data/_sass/bootstrap/_forms.scss +347 -0
  24. data/_sass/bootstrap/_functions.scss +144 -0
  25. data/_sass/bootstrap/_grid.scss +73 -0
  26. data/_sass/bootstrap/_images.scss +42 -0
  27. data/_sass/bootstrap/_input-group.scss +192 -0
  28. data/_sass/bootstrap/_jumbotron.scss +17 -0
  29. data/_sass/bootstrap/_list-group.scss +154 -0
  30. data/_sass/bootstrap/_media.scss +8 -0
  31. data/_sass/bootstrap/_mixins.scss +47 -0
  32. data/_sass/bootstrap/_modal.scss +240 -0
  33. data/_sass/bootstrap/_nav.scss +123 -0
  34. data/_sass/bootstrap/_navbar.scss +324 -0
  35. data/_sass/bootstrap/_pagination.scss +74 -0
  36. data/_sass/bootstrap/_popover.scss +170 -0
  37. data/_sass/bootstrap/_print.scss +141 -0
  38. data/_sass/bootstrap/_progress.scss +47 -0
  39. data/_sass/bootstrap/_reboot.scss +484 -0
  40. data/_sass/bootstrap/_root.scss +20 -0
  41. data/_sass/bootstrap/_spinners.scss +56 -0
  42. data/_sass/bootstrap/_tables.scss +185 -0
  43. data/_sass/bootstrap/_toasts.scss +46 -0
  44. data/_sass/bootstrap/_tooltip.scss +115 -0
  45. data/_sass/bootstrap/_transitions.scss +20 -0
  46. data/_sass/bootstrap/_type.scss +125 -0
  47. data/_sass/bootstrap/_utilities.scss +18 -0
  48. data/_sass/bootstrap/_variables.scss +1142 -0
  49. data/_sass/bootstrap/bootstrap-grid.scss +29 -0
  50. data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
  51. data/_sass/bootstrap/bootstrap.scss +44 -0
  52. data/_sass/bootstrap/mixins/_alert.scss +13 -0
  53. data/_sass/bootstrap/mixins/_background-variant.scss +23 -0
  54. data/_sass/bootstrap/mixins/_badge.scss +17 -0
  55. data/_sass/bootstrap/mixins/_border-radius.scss +76 -0
  56. data/_sass/bootstrap/mixins/_box-shadow.scss +20 -0
  57. data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
  58. data/_sass/bootstrap/mixins/_buttons.scss +110 -0
  59. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  60. data/_sass/bootstrap/mixins/_clearfix.scss +7 -0
  61. data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
  62. data/_sass/bootstrap/mixins/_float.scss +14 -0
  63. data/_sass/bootstrap/mixins/_forms.scss +178 -0
  64. data/_sass/bootstrap/mixins/_gradients.scss +45 -0
  65. data/_sass/bootstrap/mixins/_grid-framework.scss +80 -0
  66. data/_sass/bootstrap/mixins/_grid.scss +69 -0
  67. data/_sass/bootstrap/mixins/_hover.scss +37 -0
  68. data/_sass/bootstrap/mixins/_image.scss +36 -0
  69. data/_sass/bootstrap/mixins/_list-group.scss +21 -0
  70. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  71. data/_sass/bootstrap/mixins/_nav-divider.scss +11 -0
  72. data/_sass/bootstrap/mixins/_pagination.scss +22 -0
  73. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  74. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  75. data/_sass/bootstrap/mixins/_screen-reader.scss +34 -0
  76. data/_sass/bootstrap/mixins/_size.scss +7 -0
  77. data/_sass/bootstrap/mixins/_table-row.scss +39 -0
  78. data/_sass/bootstrap/mixins/_text-emphasis.scss +17 -0
  79. data/_sass/bootstrap/mixins/_text-hide.scss +11 -0
  80. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  81. data/_sass/bootstrap/mixins/_transition.scss +26 -0
  82. data/_sass/bootstrap/mixins/_visibility.scss +8 -0
  83. data/_sass/bootstrap/utilities/_align.scss +8 -0
  84. data/_sass/bootstrap/utilities/_background.scss +19 -0
  85. data/_sass/bootstrap/utilities/_borders.scss +75 -0
  86. data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
  87. data/_sass/bootstrap/utilities/_display.scss +26 -0
  88. data/_sass/bootstrap/utilities/_embed.scss +39 -0
  89. data/_sass/bootstrap/utilities/_flex.scss +51 -0
  90. data/_sass/bootstrap/utilities/_float.scss +11 -0
  91. data/_sass/bootstrap/utilities/_interactions.scss +5 -0
  92. data/_sass/bootstrap/utilities/_overflow.scss +5 -0
  93. data/_sass/bootstrap/utilities/_position.scss +32 -0
  94. data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
  95. data/_sass/bootstrap/utilities/_shadows.scss +6 -0
  96. data/_sass/bootstrap/utilities/_sizing.scss +20 -0
  97. data/_sass/bootstrap/utilities/_spacing.scss +73 -0
  98. data/_sass/bootstrap/utilities/_stretched-link.scss +19 -0
  99. data/_sass/bootstrap/utilities/_text.scss +72 -0
  100. data/_sass/bootstrap/utilities/_visibility.scss +13 -0
  101. data/_sass/bootstrap/vendor/_rfs.scss +204 -0
  102. data/_sass/colors.scss +6 -0
  103. data/_sass/layout.scss +13 -0
  104. data/_sass/navbar.scss +20 -0
  105. data/_sass/sidebar.scss +62 -0
  106. data/assets/css/bootstrap.scss +5 -0
  107. data/assets/css/fontawesome.min.css +5 -0
  108. data/assets/css/style.scss +5 -0
  109. data/assets/images/favicon.ico +0 -0
  110. data/assets/js/bootstrap.bundle.min.js +7 -0
  111. data/assets/js/bootstrap.bundle.min.js.map +1 -0
  112. data/assets/js/jquery.min.js +2 -0
  113. data/assets/js/sidebar.js +25 -0
  114. data/assets/webfonts/fa-brands-400.eot +0 -0
  115. data/assets/webfonts/fa-brands-400.svg +3717 -0
  116. data/assets/webfonts/fa-brands-400.ttf +0 -0
  117. data/assets/webfonts/fa-brands-400.woff +0 -0
  118. data/assets/webfonts/fa-brands-400.woff2 +0 -0
  119. data/assets/webfonts/fa-regular-400.eot +0 -0
  120. data/assets/webfonts/fa-regular-400.svg +801 -0
  121. data/assets/webfonts/fa-regular-400.ttf +0 -0
  122. data/assets/webfonts/fa-regular-400.woff +0 -0
  123. data/assets/webfonts/fa-regular-400.woff2 +0 -0
  124. data/assets/webfonts/fa-solid-900.eot +0 -0
  125. data/assets/webfonts/fa-solid-900.svg +5034 -0
  126. data/assets/webfonts/fa-solid-900.ttf +0 -0
  127. data/assets/webfonts/fa-solid-900.woff +0 -0
  128. data/assets/webfonts/fa-solid-900.woff2 +0 -0
  129. metadata +184 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 919c9ec3e87568a8bf3c234dce59e8dbe58fbbf47d5970f1cc59791053901b9a
4
+ data.tar.gz: ab2d412654da2e41c3b0f486057ea2ab39214898954ca05d84c98cabdabcf226
5
+ SHA512:
6
+ metadata.gz: 067d556cabd97114bce5d5a0f6aa3f5ed813ae7f1dc4da8f3be9209cf0a1d9d733327904df5bda27ff3916492025e9452ee37abe18c7af7d6e2c90cf73097994
7
+ data.tar.gz: fb1fd6e3119300e1c3e34e31e3fc734bab26dcfab0be33f3484e764a22f1401ca822e7e523d851f974bda7c570a6c92bed83fd5a92889720edad36478e2419b9
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2020 Leo Reading
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
data/README.md ADDED
@@ -0,0 +1,212 @@
1
+ # owasp-td-jekyll
2
+
3
+ This is a jekyll theme meant to be used as a documentation site as opposed to a blog, specifically being designed for [OWASP Threat Dragon](https://github.com/OWASP/threat-dragon). It is opinionated on the file structure of your documentation for breadcrumbs to work. An example documentation file directory:
4
+ ```
5
+ |---- environment (group)
6
+ |-------- page_1.md
7
+ |-------- page_2.md
8
+ |-------- page_3.md
9
+ |---- tools (group)
10
+ |-------- tool_1.md
11
+ |-------- tool_1.md
12
+ |---- macos (group)
13
+ |-------- page_1.md
14
+ |---- windows (group)
15
+ |-------- page_1.md
16
+ |---- linux (group)
17
+ |-------- page_1.md
18
+ ```
19
+
20
+ This theme is based on (Mike Goodwin's original Threat Dragon documentation site)[https://github.com/threatdragon/threatdragon.github.io/tree/original]
21
+
22
+
23
+
24
+ ## Installation
25
+
26
+ Add this line to your Jekyll site's `Gemfile`:
27
+
28
+ ```ruby
29
+ gem "owasp-td-jekyll"
30
+ ```
31
+
32
+ And add this line to your Jekyll site's `_config.yml`:
33
+
34
+ ```yaml
35
+ theme: owasp-td-jekyll
36
+ ```
37
+
38
+ And then execute:
39
+
40
+ $ bundle
41
+
42
+ Or install it yourself as:
43
+
44
+ $ gem install owasp-td-jekyll
45
+
46
+ ## Usage
47
+ ### TLDR;
48
+ Install the gem
49
+ Ensure your pages are structured as `group/page.md`
50
+ Add your config:
51
+ ```
52
+ title: OWASP Threat Dragon
53
+
54
+ theme: owasp-td-jekyll
55
+
56
+ brand: OWASP Threat Dragon
57
+ faviconUrl: /assets/images/favicon.ico
58
+
59
+ header_links:
60
+ - text: Try the web app
61
+ fa_class: fa fa-flask
62
+ url: http://threatdragon.org
63
+
64
+ - text: Download the desktop app
65
+ fa_class: fa fa-cloud-download-alt
66
+ target: _blank
67
+ url: https://github.com/OWASP/threat-dragon-desktop/releases
68
+
69
+ - text: Visit us on GitHub
70
+ fa_class: fab fa-github
71
+ target: _blank
72
+ url: https://github.com/OWASP/threat-dragon
73
+
74
+
75
+ nav:
76
+ categories:
77
+ - name: Development
78
+ groups:
79
+ - name: Environment
80
+ fa_class: fas fa-layer-group
81
+ - name: Contributing
82
+ fa_class: fas fa-user-ninja
83
+ - name: Threat Modeling
84
+ groups:
85
+ - name: Modeling
86
+ fa_class: fas fa-project-diagram
87
+ - name: Icons
88
+ fa_class: fas fa-icons
89
+
90
+ logo_src: assets/images/threatdragon_logo_image.svg
91
+ homeLinks:
92
+ - relative_url: something
93
+ description: This is my description. There are many like it, but this one is mine.
94
+ fa_class: fas fa-project-diagram
95
+ - relative_url: something_else
96
+ description: This is my description. There are many like it, but this one is mine.
97
+ fa_class: fas fa-user-ninja
98
+
99
+ ```
100
+
101
+ ### General Config
102
+ |Name|Type|Description|
103
+ |---|---|---|
104
+ |`brand`|string|The brand name to be used as the home link in the navbar|
105
+ |`faviconUrl`|string|The relative path to the favicon|
106
+ |`header_links`|array<object>|Additional links to be added to the navbar (top, not sidebar)
107
+ |`header_links[0].text`|string|The text of the link|
108
+ |`header_links[0].fa_class`|string|The font-awesome class to use for the dropdown. Use the full class, eg `fab fa-github`|
109
+ |`header_links[0].url`|string|The url to be used as the href preoprty on the anchor.|
110
+ |`header_links[0].target`|string|The `target` property for the anchor. Optional|
111
+
112
+ ### Sidebar
113
+ The sidebar is used as the primary navigation for the site, unless it is on a smaller device. The navigation is built from a combination of properties provided in your `_config.yaml` as well as having the `group` and `nav_order` properties set in your (front matter)[https://jekyllrb.com/docs/front-matter/]
114
+
115
+ |Name|Description|Required|
116
+ |---|---|---|
117
+ |`group`|Top level navigation on the sidebar is based on groups. Associate a page to a group. If only one page exists in a group, it is just a link as opposed to a dropdown.|yes|
118
+ |`nav_order`|The order in which to display the link in the navigation (within the group)|no|
119
+
120
+ Config for the sidebar, to be put in your `_config.yaml`:
121
+ |Name|Type|Description|
122
+ |---|---|---|
123
+ |`nav`|object|The top-level navigation object|
124
+ |`nav.categories`|array<object>|Categories to separate the different menu options. Used as a logical grouping|
125
+ |`nav.categories[].name`|string|The name of the category. Used for display purposes|
126
+ |`nav.categories[].groups`|array<object>|The groups (dropdowns) to be used in the category.|
127
+ |`nav.categories[].groups[].name`|string|The name of the group. This should match the group tag used in your (front matter)[https://jekyllrb.com/docs/front-matter/]. If only a single page exists in a group, the nav will be a link as opposed to drop-down.|
128
+ |`nav.categories[].groups[].fa_class`|string|The font-awesome class to use for the dropdown. Use the full class, eg `fas fa-user-ninja`|
129
+
130
+
131
+ Example nav in `_config.yaml`
132
+ ```
133
+ nav:
134
+ categories:
135
+ - name: Cat 1
136
+ groups:
137
+ - name: My Dropdown
138
+ fa_class: fas-fa-layer-group
139
+ ```
140
+ Example page:
141
+ ```
142
+ ---
143
+ title: Users
144
+ path: modeling/users
145
+ group: Cat 1
146
+ layout: page
147
+ nav_order: 0
148
+ ---
149
+ # Users
150
+ Some more text goes here
151
+ ```
152
+ _____
153
+ ## Layouts
154
+
155
+ ### Home
156
+ The home page layout is a special layout. Text is put into the jumbotron, with an optional image (if configured in the config). Actions may also be configured for this using the `_config.yaml`. This was set up with the idea of only ever having a single home page.
157
+
158
+ Home Options (to be set in your `_config.yaml`):
159
+ |Name|Type|Description|Required|
160
+ |---|---|---|---|
161
+ |`logo_src`|string|The location of your main brand logo|no|
162
+ |`homeLinks`|array<object>|The links/actions to display under the main content|no|
163
+ |`homeLinks[].relative_url`|string|To be used as a link to a relative page|yes|
164
+ |`homeLinks[].description`|string|Text to put under the icon|no|
165
+ |`homeLinks[].fa_class`|string|The font-awesome class to use for the dropdown. Use the full class, eg `fas fa-user-ninja`|yes|
166
+
167
+ Example home page:
168
+ ```
169
+ ---
170
+ layout: home
171
+ title: Home
172
+ path: /
173
+ ---
174
+
175
+ # Hello, world!
176
+ This is some content I got going on here, thanks for swinging by...
177
+ ```
178
+
179
+ ### Page
180
+ The page layout is the standard layout to be used. Example page:
181
+ ```
182
+ ---
183
+ title: Users
184
+ path: modeling/users
185
+ group: Icons
186
+ layout: page
187
+ nav_order: 0
188
+ ---
189
+ # Users
190
+ Some more text goes here
191
+ ```
192
+
193
+ ____
194
+ ## Breadcrumbs
195
+ Breadcrumbs rely on the file structure of your documentation to be as follows: `category/group/page.md`. Please see the top of the readme for a full example tree.
196
+
197
+ ## Contributing
198
+
199
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lreading/owasp-td-jekyll. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
200
+
201
+ ## Development
202
+
203
+ To set up your environment to develop this theme, run `bundle install`.
204
+
205
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
206
+
207
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
208
+ To add a custom directory to your theme-gem, please edit the regexp in `owasp-td-jekyll.gemspec` accordingly.
209
+
210
+ ## License
211
+
212
+ The theme is available as open source under the terms of the [Apache 2.0 License](http://www.apache.org/licenses/).
@@ -0,0 +1,11 @@
1
+
2
+ <head>
3
+ <title>{{ page.title }}</title>
4
+
5
+ <meta charset="utf-8" />
6
+ <link rel="shortcut icon" href="{{ site.faviconUrl | relative_url }}" type="image/x-icon">
7
+ <link rel="icon" href="{{ site.faviconUrl | relative_url }}" type="image/x-icon">
8
+ <link rel="stylesheet" href="{{ '/assets/css/bootstrap.css' | relative_url }}">
9
+ <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
10
+ <link rel="stylesheet" href="{{ '/assets/css/fontawesome.min.css' | relative_url }}">
11
+ </head>
@@ -0,0 +1,33 @@
1
+ <nav class="navbar navbar-expand-md navbar-dark bg-primary">
2
+ <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
3
+ <span class="navbar-toggler-icon"></span>
4
+ </button>
5
+ <a class="navbar-brand" href="{{ '/' | relative_url }}">
6
+ {{ site.brand }}
7
+ </a>
8
+ <div class="collapse navbar-collapse" id="navbarNavDropdown">
9
+ <ul class="navbar-nav ml-auto">
10
+ {%- for navlink in site.header_links -%}
11
+ <li class="nav-item">
12
+ <a href="{{ navlink.url }}"
13
+ {% if navlink.target %} target="{{ navlink.target }}"{%- endif -%}
14
+ class="nav-link active">
15
+ {%- if navlink.fa_class -%}
16
+ <i class="{{ navlink.fa_class }} fa-lg"></i>
17
+ {%- endif %} {{ navlink.text }}
18
+ </a>
19
+ </li>
20
+ {%- endfor -%}
21
+
22
+ <!-- Sidebars do not work well on smaller devices. We want to fall back to a more traditional expanding button navigation -->
23
+ <li class="nav-item dropdown d-sm-block d-md-none">
24
+ <a class="nav-link dropdown-toggle" href="#" id="smallerscreenmenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Menu </a>
25
+ <div class="dropdown-menu" aria-labelledby="smallerscreenmenu">
26
+ {%- for navPage in site.pages | where: "path" -%}
27
+ <a class="dropdown-item" href="{{ navPage.url || relative_url }}">{{ navPage.title }}</a>
28
+ {%- endfor -%}
29
+ </div>
30
+ </li>
31
+ </ul>
32
+ </div>
33
+ </nav>