cms-dita-jekyll-theme 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 (134) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_includes/dev-docs-banner.html +13 -0
  5. data/_includes/footer.html +14 -0
  6. data/_includes/header.html +198 -0
  7. data/_includes/help.html +41 -0
  8. data/_includes/old-docs-banner.html +12 -0
  9. data/_includes/search.html +25 -0
  10. data/_includes/toc.html +27 -0
  11. data/_layouts/base.html +77 -0
  12. data/_layouts/default.html +13 -0
  13. data/_layouts/javascript.js +3 -0
  14. data/_layouts/plugins.html +7 -0
  15. data/_layouts/post.html +9 -0
  16. data/_layouts/splash.html +38 -0
  17. data/_sass/_banner.scss +21 -0
  18. data/_sass/_bootstrap-custom.scss +44 -0
  19. data/_sass/_code.scss +86 -0
  20. data/_sass/_content.scss +17 -0
  21. data/_sass/_dita.scss +41 -0
  22. data/_sass/_footer.scss +13 -0
  23. data/_sass/_glossary.scss +27 -0
  24. data/_sass/_home.scss +28 -0
  25. data/_sass/_navbar.scss +28 -0
  26. data/_sass/_notes.scss +56 -0
  27. data/_sass/_search.scss +26 -0
  28. data/_sass/_tables.scss +26 -0
  29. data/_sass/_toc.scss +107 -0
  30. data/_sass/_ui-d.scss +8 -0
  31. data/_sass/_xml-d.scss +39 -0
  32. data/_sass/bootstrap/_alert.scss +51 -0
  33. data/_sass/bootstrap/_badge.scss +53 -0
  34. data/_sass/bootstrap/_breadcrumb.scss +41 -0
  35. data/_sass/bootstrap/_button-group.scss +163 -0
  36. data/_sass/bootstrap/_buttons.scss +140 -0
  37. data/_sass/bootstrap/_card.scss +310 -0
  38. data/_sass/bootstrap/_carousel.scss +198 -0
  39. data/_sass/bootstrap/_close.scss +44 -0
  40. data/_sass/bootstrap/_code.scss +48 -0
  41. data/_sass/bootstrap/_custom-forms.scss +507 -0
  42. data/_sass/bootstrap/_dropdown.scss +191 -0
  43. data/_sass/bootstrap/_forms.scss +334 -0
  44. data/_sass/bootstrap/_functions.scss +86 -0
  45. data/_sass/bootstrap/_grid.scss +52 -0
  46. data/_sass/bootstrap/_images.scss +42 -0
  47. data/_sass/bootstrap/_input-group.scss +193 -0
  48. data/_sass/bootstrap/_jumbotron.scss +16 -0
  49. data/_sass/bootstrap/_list-group.scss +121 -0
  50. data/_sass/bootstrap/_media.scss +8 -0
  51. data/_sass/bootstrap/_mixins.scss +41 -0
  52. data/_sass/bootstrap/_modal.scss +186 -0
  53. data/_sass/bootstrap/_nav.scss +120 -0
  54. data/_sass/bootstrap/_navbar.scss +299 -0
  55. data/_sass/bootstrap/_pagination.scss +78 -0
  56. data/_sass/bootstrap/_popover.scss +183 -0
  57. data/_sass/bootstrap/_print.scss +141 -0
  58. data/_sass/bootstrap/_progress.scss +34 -0
  59. data/_sass/bootstrap/_reboot.scss +462 -0
  60. data/_sass/bootstrap/_root.scss +19 -0
  61. data/_sass/bootstrap/_spinners.scss +53 -0
  62. data/_sass/bootstrap/_tables.scss +187 -0
  63. data/_sass/bootstrap/_toasts.scss +43 -0
  64. data/_sass/bootstrap/_tooltip.scss +115 -0
  65. data/_sass/bootstrap/_transitions.scss +22 -0
  66. data/_sass/bootstrap/_type.scss +125 -0
  67. data/_sass/bootstrap/_utilities.scss +16 -0
  68. data/_sass/bootstrap/_variables.scss +1091 -0
  69. data/_sass/bootstrap/mixins/_alert.scss +13 -0
  70. data/_sass/bootstrap/mixins/_background-variant.scss +21 -0
  71. data/_sass/bootstrap/mixins/_badge.scss +11 -0
  72. data/_sass/bootstrap/mixins/_border-radius.scss +35 -0
  73. data/_sass/bootstrap/mixins/_box-shadow.scss +5 -0
  74. data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
  75. data/_sass/bootstrap/mixins/_buttons.scss +111 -0
  76. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  77. data/_sass/bootstrap/mixins/_clearfix.scss +7 -0
  78. data/_sass/bootstrap/mixins/_float.scss +11 -0
  79. data/_sass/bootstrap/mixins/_forms.scss +198 -0
  80. data/_sass/bootstrap/mixins/_gradients.scss +45 -0
  81. data/_sass/bootstrap/mixins/_grid-framework.scss +66 -0
  82. data/_sass/bootstrap/mixins/_grid.scss +51 -0
  83. data/_sass/bootstrap/mixins/_hover.scss +37 -0
  84. data/_sass/bootstrap/mixins/_image.scss +36 -0
  85. data/_sass/bootstrap/mixins/_list-group.scss +21 -0
  86. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  87. data/_sass/bootstrap/mixins/_nav-divider.scss +10 -0
  88. data/_sass/bootstrap/mixins/_pagination.scss +22 -0
  89. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  90. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  91. data/_sass/bootstrap/mixins/_screen-reader.scss +33 -0
  92. data/_sass/bootstrap/mixins/_size.scss +6 -0
  93. data/_sass/bootstrap/mixins/_table-row.scss +39 -0
  94. data/_sass/bootstrap/mixins/_text-emphasis.scss +14 -0
  95. data/_sass/bootstrap/mixins/_text-hide.scss +13 -0
  96. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  97. data/_sass/bootstrap/mixins/_transition.scss +16 -0
  98. data/_sass/bootstrap/mixins/_visibility.scss +7 -0
  99. data/_sass/bootstrap/utilities/_align.scss +8 -0
  100. data/_sass/bootstrap/utilities/_background.scss +19 -0
  101. data/_sass/bootstrap/utilities/_borders.scss +63 -0
  102. data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
  103. data/_sass/bootstrap/utilities/_display.scss +38 -0
  104. data/_sass/bootstrap/utilities/_embed.scss +39 -0
  105. data/_sass/bootstrap/utilities/_flex.scss +51 -0
  106. data/_sass/bootstrap/utilities/_float.scss +9 -0
  107. data/_sass/bootstrap/utilities/_overflow.scss +5 -0
  108. data/_sass/bootstrap/utilities/_position.scss +32 -0
  109. data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
  110. data/_sass/bootstrap/utilities/_shadows.scss +6 -0
  111. data/_sass/bootstrap/utilities/_sizing.scss +20 -0
  112. data/_sass/bootstrap/utilities/_spacing.scss +73 -0
  113. data/_sass/bootstrap/utilities/_text.scss +67 -0
  114. data/_sass/bootstrap/utilities/_visibility.scss +11 -0
  115. data/assets/css/bootstrap/bootstrap-grid.scss +29 -0
  116. data/assets/css/bootstrap/bootstrap-reboot.scss +12 -0
  117. data/assets/css/bootstrap/bootstrap.scss +44 -0
  118. data/assets/css/main.scss +67 -0
  119. data/assets/css/prism.css +139 -0
  120. data/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  121. data/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
  122. data/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  123. data/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  124. data/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  125. data/assets/js/bootstrap.min.js +7 -0
  126. data/assets/js/lib/EditController.js +1 -0
  127. data/assets/js/main.css +2 -0
  128. data/assets/js/main.css.map +1 -0
  129. data/assets/js/main.js +77 -0
  130. data/assets/js/main.js.map +1 -0
  131. data/assets/js/plugins.js +80 -0
  132. data/assets/js/plugins.js.map +1 -0
  133. data/assets/js/version.js +1 -0
  134. metadata +218 -0
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+ {% if page.toc != false %}
5
+ <nav class="col-lg-3">
6
+ {% include toc.html %}
7
+ </nav>
8
+ {% endif %}
9
+ <main class="{% if page.toc != false %} col-lg-9 {% else %} col-lg-12 {% endif %}">
10
+ <h1>{{ page.title }}</h1>
11
+ {{ content }}
12
+ </main>
13
+
@@ -0,0 +1,3 @@
1
+ ---
2
+ ---
3
+ {{ content }}
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <script src="{{ site.baseurl }}/assets/js/plugins.js" type="text/javascript"></script>
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <h2>{{ page.title }}</h2>
5
+ <p class="meta">{{ page.date | date_to_string }}</p>
6
+
7
+ <div class="post">
8
+ {{ content }}
9
+ </div>
@@ -0,0 +1,38 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>{{ page.title }}</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7
+ <link href="{{ site.baseurl }}/assets/css/main.css" rel="stylesheet">
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css">
9
+ {% if page.index %}
10
+ <link href="{{ page.index }}" rel="index">
11
+ {% endif %}
12
+ </head>
13
+ <body>
14
+ {% include header.html %}
15
+ <main id="content" role="main">
16
+ {{ content }}
17
+ </main>
18
+ {% include footer.html %}
19
+ {% include search.html %}
20
+ {% include help.html %}
21
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
22
+ <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
23
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
24
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
25
+ <script src="{{ site.baseurl }}/assets/js/main.js" type="text/javascript" ></script>
26
+ <script type="text/javascript">
27
+ docsearch({
28
+ apiKey: 'fdd89b9b35b9bd347f34111dbc1c6219',
29
+ indexName: 'dita-ot',
30
+ inputSelector: '#search input[type=text]',
31
+ algoliaOptions: {
32
+ hitsPerPage: 10,
33
+ },
34
+ debug: false
35
+ });
36
+ </script>
37
+ </body>
38
+ </html>
@@ -0,0 +1,21 @@
1
+ .dev-docs-banner {
2
+ margin-bottom: 0;
3
+
4
+ svg {
5
+ fill: $warning-icon-color;
6
+ }
7
+ }
8
+
9
+ // Hide edit link on extra-small devices like phones in portrait mode
10
+ // Begin showing at small breakpoint (landscape phones, 576px and up)
11
+
12
+ #editLink {
13
+ display: none;
14
+ }
15
+
16
+ @include media-breakpoint-up(sm) {
17
+ #editLink {
18
+ display: block;
19
+ margin-top: -2px;
20
+ }
21
+ }
@@ -0,0 +1,44 @@
1
+ /*!
2
+ * Bootstrap v4.2.1 (https://getbootstrap.com/)
3
+ * Copyright 2011-2018 The Bootstrap Authors
4
+ * Copyright 2011-2018 Twitter, Inc.
5
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
6
+ */
7
+
8
+ @import 'bootstrap/functions';
9
+ @import 'bootstrap/variables';
10
+ @import 'bootstrap/mixins';
11
+ @import 'bootstrap/root';
12
+ @import 'bootstrap/reboot';
13
+ @import 'bootstrap/type';
14
+ @import 'bootstrap/images';
15
+ @import 'bootstrap/code';
16
+ @import 'bootstrap/grid';
17
+ @import 'bootstrap/tables';
18
+ @import 'bootstrap/forms';
19
+ @import 'bootstrap/buttons';
20
+ @import 'bootstrap/transitions';
21
+ @import 'bootstrap/dropdown';
22
+ // @import 'bootstrap/button-group';
23
+ // @import 'bootstrap/input-group';
24
+ @import 'bootstrap/custom-forms';
25
+ @import 'bootstrap/nav';
26
+ @import 'bootstrap/navbar';
27
+ @import 'bootstrap/card';
28
+ @import 'bootstrap/breadcrumb';
29
+ // @import 'bootstrap/pagination';
30
+ // @import 'bootstrap/badge';
31
+ @import 'bootstrap/jumbotron';
32
+ @import 'bootstrap/alert';
33
+ // @import 'bootstrap/progress';
34
+ @import 'bootstrap/media';
35
+ @import 'bootstrap/list-group';
36
+ @import 'bootstrap/close';
37
+ @import 'bootstrap/toasts';
38
+ @import 'bootstrap/modal';
39
+ // @import 'bootstrap/tooltip';
40
+ // @import 'bootstrap/popover';
41
+ // @import 'bootstrap/carousel';
42
+ @import 'bootstrap/spinners';
43
+ @import 'bootstrap/utilities';
44
+ @import 'bootstrap/print';
@@ -0,0 +1,86 @@
1
+ // Sass partial to override Bootstrap & user agent defaults for code styles
2
+
3
+ // Import Prism CSS for codeblock syntax highlighting
4
+ @import 'prism.css';
5
+
6
+ // Common code rules (imported to other classes)
7
+ @mixin codeclass {
8
+ font-family: $font-family-monospace;
9
+ font-size: $code-font-size; // set to 87.5% !default in `bootstrap/_variables.scss` (14px if browser default = 16px)
10
+ color: $gray-light;
11
+ }
12
+
13
+ // Based on Bootstrap code rules
14
+ .parmname {
15
+ @include codeclass;
16
+ color: $brand-primary;
17
+ letter-spacing: 1px;
18
+ }
19
+
20
+ pre[class*='language-'],
21
+ .highlight,
22
+ .codeblock {
23
+ background-color: $pre-bg;
24
+ margin: $spacer 0;
25
+ }
26
+
27
+ // Override Bootstrap _code partials
28
+
29
+ pre[class*='language-'],
30
+ pre {
31
+ border: 1px solid $pre-border-color;
32
+ border-radius: 4px;
33
+ padding: 6px 9.5px;
34
+
35
+ // Reduce font size for DITA codeblocks
36
+ code {
37
+ font-size: $code-font-size;
38
+ }
39
+ }
40
+
41
+ code[class*='language-'],
42
+ pre[class*='language-'] {
43
+ @include codeclass;
44
+ }
45
+
46
+ // Inline code
47
+ code {
48
+ background-color: transparent;
49
+ border-radius: 0;
50
+ color: $gray-light;
51
+ padding: 0;
52
+ }
53
+
54
+ // User input typically entered via keyboard
55
+ kbd {
56
+ // Prefer GitHub's presentation (mimic physical keys)
57
+ border: solid 1px $pre-border-color;
58
+ border-bottom-color: $kbd-shadow;
59
+ box-shadow: inset 0 -1px 0 $kbd-shadow;
60
+ display: inline-block;
61
+ vertical-align: middle;
62
+ }
63
+
64
+ .codeph,
65
+ .filepath,
66
+ .option {
67
+ @include codeclass;
68
+ }
69
+
70
+ // Let nested code classes inherit font size (don't scale twice)
71
+ .codeblock {
72
+ .cmdname,
73
+ .filepath,
74
+ .msgnum,
75
+ .option,
76
+ .parmname,
77
+ .varname {
78
+ font-size: inherit;
79
+ }
80
+ }
81
+
82
+ .cmdname,
83
+ .msgnum {
84
+ @include codeclass;
85
+ font-weight: bold;
86
+ }
@@ -0,0 +1,17 @@
1
+ .anchor-link {
2
+ opacity: 0;
3
+ text-decoration: none;
4
+
5
+ &:hover {
6
+ opacity: 1 !important;
7
+ }
8
+
9
+ &::after {
10
+ content: '#';
11
+ padding-left: 0.5em;
12
+ }
13
+ }
14
+
15
+ .anchor-link-container:hover .anchor-link {
16
+ opacity: 0.5;
17
+ }
@@ -0,0 +1,41 @@
1
+ // Sass partial to apply Bootstrap styling & override user agent defaults for DITA element classes
2
+ // See related partials for code, notes, tables, UI & XML domains
3
+
4
+ .lq {
5
+ color: $text-muted;
6
+ font-size: 14px;
7
+ }
8
+
9
+ // Add bottom margin to nested lists & short descriptions that appear in abstracts
10
+ li.li ul.ul,
11
+ div.shortdesc {
12
+ margin-bottom: $spacer;
13
+ }
14
+
15
+ .lead {
16
+ color: $text-muted;
17
+ }
18
+
19
+ p.shortdesc,
20
+ div.shortdesc {
21
+ @extend .lead;
22
+ }
23
+
24
+ // Apply Bootstrap's <caption> style to figure titles (rendered as HTML5 <figcaption> elements)
25
+ figcaption {
26
+ @extend caption;
27
+ @extend .figure-caption;
28
+ margin: $table-cell-padding 0;
29
+ padding: 0;
30
+ }
31
+
32
+ // Apply Bootstrap's <p> margins to definition lists
33
+ // 1rem bottom margin
34
+ dd {
35
+ margin: 0 0 $paragraph-margin-bottom;
36
+ }
37
+
38
+ // Top margin for first term in list
39
+ dt {
40
+ margin: $paragraph-margin-bottom 0 0;
41
+ }
@@ -0,0 +1,13 @@
1
+ // Sass partial for additional footer styles
2
+
3
+ footer {
4
+ border-top: 1px solid $legend-border-color;
5
+ font-size: $font-size-sm;
6
+ margin-top: 30px;
7
+ padding: $spacer 0;
8
+ text-align: center;
9
+
10
+ a {
11
+ color: $text-muted;
12
+ }
13
+ }
@@ -0,0 +1,27 @@
1
+ // This file is part of the DITA Open Toolkit project. See the accompanying LICENSE.md file for applicable licenses.
2
+
3
+ // Sass partial for glossary style overrides
4
+
5
+ .glossAbbreviation,
6
+ .glossAcronym {
7
+ color: $gray-600;
8
+ font-size: $font-size-base;
9
+ font-style: italic;
10
+ margin: $spacer 1em;
11
+
12
+ &::before {
13
+ content: 'Abbreviation: “';
14
+ }
15
+
16
+ &::after {
17
+ content: '”';
18
+ }
19
+ }
20
+
21
+ .glossentry {
22
+ margin-bottom: $spacer;
23
+ }
24
+
25
+ .glossterm {
26
+ font-size: $h4-font-size;
27
+ }
@@ -0,0 +1,28 @@
1
+ // Sass partial for landing page styles & overrides
2
+
3
+ // Teaser overrides
4
+ .teasers {
5
+ text-align: center;
6
+ }
7
+
8
+ .teaser {
9
+ svg {
10
+ @extend .img-fluid;
11
+ @extend .col-lg-6;
12
+ fill: $brand-primary;
13
+
14
+ // Invert link colors for teaser icon links
15
+ @include hover-focus {
16
+ fill: $link-color; // lighten($brand-primary, 20%)
17
+ }
18
+ }
19
+ }
20
+
21
+ .btn-success svg {
22
+ @extend .mb-1;
23
+ fill: $white;
24
+ }
25
+
26
+ .finch {
27
+ margin-top: 3em;
28
+ }
@@ -0,0 +1,28 @@
1
+ // Sass partial to override Bootstrap default navbar styles
2
+
3
+ // Small devices (landscape phones, 576px and up)
4
+ @media screen and (min-width: 576px) {
5
+ .navbar-brand {
6
+ padding-left: 0;
7
+ }
8
+ }
9
+
10
+ .navbar {
11
+ padding-bottom: 0;
12
+ padding-top: 0;
13
+
14
+ svg {
15
+ fill: darken($navbar-dark-color, 40%);
16
+ }
17
+ }
18
+
19
+ .navbar-nav {
20
+ .nav-item {
21
+ padding-bottom: $navbar-padding-y;
22
+ padding-top: $navbar-padding-y;
23
+
24
+ @include hover-focus {
25
+ background-color: $navbar-dark-link-hover-bg;
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,56 @@
1
+ // Style DITA note elements w/ Bootstrap components
2
+
3
+ // Apply `.alert` rule from `_alerts.scss`
4
+ div.note,
5
+ div.important,
6
+ div.attention {
7
+ @extend .alert;
8
+ margin: 1em;
9
+
10
+ a {
11
+ @extend .alert-link;
12
+ }
13
+ }
14
+
15
+ // Import alert settings for note variants
16
+
17
+ // Note = alert alert-info
18
+ .note {
19
+ @extend .alert-info;
20
+ // Tip = alert alert-success
21
+ &.tip {
22
+ @extend .alert-success;
23
+ }
24
+ }
25
+
26
+ // Important = alert alert-warning
27
+ .attention,
28
+ .important {
29
+ @extend .alert-warning;
30
+ }
31
+
32
+ // Caution, Warning = alert alert-danger
33
+ .caution,
34
+ .warning {
35
+ @extend .alert-danger;
36
+ }
37
+
38
+ // Title styles
39
+
40
+ // Common `.note__title` class for v2.2 and newer
41
+ // Legacy `.*title` classes for backwards compatibility w/ v2.1 and earlier (removed in v2.4)
42
+ .note__title,
43
+ .notetitle,
44
+ .tiptitle,
45
+ .fastpathtitle,
46
+ .restrictiontitle,
47
+ .importanttitle,
48
+ .remembertitle,
49
+ .attentiontitle,
50
+ .cautiontitle,
51
+ .noticetitle,
52
+ .dangertitle,
53
+ .warningtitle,
54
+ .othertitle {
55
+ font-weight: bold;
56
+ }