nist-software-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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1e634829aa6926421352e16e265366c42bd339784f0a84a360147405124a4cd2
4
+ data.tar.gz: c0f65bf06562ff3462147d3929f93a6dc348ef4ac8fa23c49a7f8614dcde114b
5
+ SHA512:
6
+ metadata.gz: 3cdffbf583475dbfae59ccca6139ab7b9a43b172756d7198de259327831d2a9755868c8fd0b2faa39bfa4825cdbaa61ccbede3f07374be7ba437260485e5f52f
7
+ data.tar.gz: d070dca9686cecf9a80d5ac9faa04179139880358b89f31183a838989799dc14c1573b185952748213090b5a49e2b802c927f4c1189467b3580abc956d9134a8
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020, National Institute of Standards and Technology
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # NIST Software Portal Theme for Jekyll Websites
2
+
3
+ Author: ODI
4
+
5
+ ## Installation
6
+
7
+ This gem can be used in two ways: either as a gem-based theme or through GitHub pages remote theme support (details [here](https://github.com/blog/2464-use-any-theme-with-github-pages)).
8
+
9
+ ### Gem-Base Theme
10
+
11
+ Add this line to your Jekyll site's `Gemfile`:
12
+
13
+ ```ruby
14
+ gem "nist-software-theme"
15
+ ```
16
+
17
+ And add this line to your Jekyll site's `_config.yml`:
18
+
19
+ ```yaml
20
+ theme: nist-software-theme
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ ```shell
26
+ $ bundle
27
+ ```
28
+
29
+ Or install it yourself as:
30
+
31
+ ```shell
32
+ $ gem install nist-software-theme
33
+ ```
34
+
35
+ It is unclear if the remote theme is suitable for local development, but it will work on deployed sites.
36
+
37
+ ## Usage
38
+
39
+ This theme supports multiple page websites.
40
+ Any page which is located at `/`, such as `/about.md`, will be added to the navigation bar at the top.
41
+ Each page should include the following YAML front matter:
42
+
43
+ ```yaml
44
+ ---
45
+ layout: default
46
+ title: Title of the Page
47
+ ---
48
+ ```
49
+
50
+ Currently, there is only the `default` layout.
51
+
52
+ ### Adding a Blog
53
+
54
+ In true Jekyll fashion, a blog can be created by adding a `_posts/` directory.
55
+ See the [Jekyll Documentation](https://jekyllrb.com/docs/posts/) for details on formatting blog entries.
56
+
57
+ The following code is an example of how to create a list of blog entries:
58
+
59
+ ```html
60
+ <ul>
61
+ {% for post in site.posts %}
62
+ <li>
63
+ <a href="{{ post.url }}">{{ post.title }}</a>
64
+ </li>
65
+ {% endfor %}
66
+ </ul>
67
+ ```
68
+
69
+ ## Development
70
+
71
+ ### With Ruby Gems
72
+
73
+ Assuming working on OS X, tested on OS X 10.11.2. `gem` (Ruby package manager)
74
+ was preinstalled, so just working from there:
75
+
76
+ ```shell
77
+ # Install the dependencies:
78
+ $ gem install jekyll
79
+
80
+ # Build and serve the website
81
+ $ jekyll serve --baseurl=''
82
+
83
+ # Browse to (by default) `localhost:4000` in a web browser
84
+ $ open localhost:4000
85
+ ```
86
+
87
+ For more information, check out the full documentation at: http://jekyllrb.com/
88
+
89
+ ### With Bundler
90
+
91
+ Using [Bundler](https://bundler.io):
92
+
93
+ ```shell
94
+ # Install the dependencies
95
+ $ bundle Install
96
+
97
+ # Build and serve the website
98
+ $ bundle exec jekyll serve --baseurl=''
99
+
100
+ # Browse to (by default) `localhost:4000` in a web browser
101
+ $ open localhost:4000
102
+ ```
103
+
104
+ ## Release
105
+
106
+ This Jekyll theme is released under the MIT License. For more details see the
107
+ LICENSE File.
@@ -0,0 +1,12 @@
1
+ <div id="breadcrumbs">
2
+ {% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
3
+ <a href="/">Home</a>
4
+ {% for crumb in crumbs offset: 1 %}
5
+ {% if forloop.last %}
6
+ / {{ page.title }}
7
+ {% else %}
8
+ / <a
9
+ href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a>
10
+ {% endif %}
11
+ {% endfor %}
12
+ </div>
File without changes
@@ -0,0 +1,20 @@
1
+ <div id="footer-slim" class="footer">
2
+ <div class="container">
3
+
4
+ <hr />
5
+
6
+ <br />
7
+
8
+ <div class="row">
9
+ <div class="col-md-12 subfooter">
10
+ <a href="https://www.nist.gov/" target="_blank"><img src="https://www.zamzar.com/download.php?uid=c06b88d543148de31da191a19a71afd8-3b4d5011b26fcccb&targetId=2W6cmbYLK6NkBimBUflzV8YPHTZYfCY6&fileID=nist_logo_sidestack_rev.png" alt="NIST" border="0" /></a>
11
+ <p> National Institute of Standards and Technology <br /> 100 Bureau Drive; Gaitherburg, MD 20899 </p>
12
+ <p> Operated by the Office of Data and Informatics, for the <br /> National Institute of Standards and Technology. </p>
13
+ </div>
14
+
15
+ <div class="col-md-12 subfooter">
16
+ <a href="https://www.nist.gov/disclaimer" target="_blank">Privacy &amp; Legal Notice</a>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </div>
@@ -0,0 +1,8 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6
+ ga('create', '{{ site.google_analytics.tracking_id }}', 'auto');
7
+ ga('send', 'pageview');
8
+ </script>
@@ -0,0 +1,17 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+
6
+ <link rel="shortcut icon" href="/assets/css/onelab/0.1.1/images/favicon.ico">
7
+
8
+ <link rel="stylesheet" href="/assets/bootstrap/3.3.5/css/bootstrap.min.css" media="screen">
9
+ <link rel="stylesheet" href="/assets/font-awesome/4.7.0/css/font-awesome.min.css" media="screen">
10
+
11
+ <link rel="stylesheet" href="/assets/onelab/0.1.1/css/onelab.css" media="screen">
12
+
13
+ <link rel="stylesheet" href="/assets/css/main.css" media="screen">
14
+
15
+ {% include custom_head.html %}
16
+ {% seo %}
17
+ </head>
@@ -0,0 +1,30 @@
1
+ <nav id="header-slim" class="navbar navbar-default">
2
+
3
+ <div class="container">
4
+ <div class="navbar-header">
5
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#siteNavbar">
6
+ <span class="icon-bar"></span>
7
+ <span class="icon-bar"></span>
8
+ <span class="icon-bar"></span>
9
+ </button>
10
+
11
+ <p id="nist-menu-tab" class="pull-left"><a href="https://www.nist.gov"></a></p>
12
+ <a class="navbar-brand" href="{{ site.baseurl }}/">{{ site.title }}</a>
13
+ </div>
14
+
15
+ <div id="siteNavbar" class="collapse navbar-collapse">
16
+ <ul class="nav navbar-nav navbar-right navbar-collapse">
17
+ {% if page.path == "index.md" %} <li class="active"> {% else %} <li> {% endif %}
18
+ <a href="{{ site.baseurl }}/">Home</a></li>
19
+ {% for node in site.pages reversed %}
20
+ {% unless node.path == "index.md" %}
21
+ {% if node.url == page.url %} <li class="active"> {% else %} <li> {% endif %}
22
+ <a href="{{ node.url | prepend: site.baseurl }}">{{ node.title }}</a></li>
23
+ {% endunless %}
24
+ {% endfor %}
25
+ <li id="github"><a href="https://github.com/usnistgov"><span class="fa fa-github fa-lg"></span></a></li>
26
+ </ul>
27
+ </div>
28
+
29
+ </div>
30
+ </nav>
@@ -0,0 +1,10 @@
1
+ <!-- jQuery first, then Bootstrap JS. -->
2
+ <script src="/assets/js/jquery-2.1.4.min.js"></script>
3
+ <script src="/assets/js/bootstrap.min.js"></script>
4
+
5
+ <script src="/assets/js/anchor.min.js"></script>
6
+ <script>
7
+ anchors.add()
8
+ </script>
9
+
10
+ {% include google_analytics.html %}
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ <div class="container">
11
+ {% include breadcrumbs.html %}
12
+ {{ content }}
13
+ </div>
14
+
15
+ {% include footer.html %}
16
+
17
+ {% include scripts.html %}
18
+
19
+ </body>
20
+ </html>
@@ -0,0 +1,43 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ <div class="container">
11
+ <h1>{{ page.title }}</h1>
12
+
13
+ <div class="row">
14
+ <div class="span8">
15
+ {{ content }}
16
+ </div>
17
+
18
+ <div class="span4">
19
+ <h3>Software Details</h3>
20
+ <table>
21
+ <tbody>
22
+ <tr>
23
+ <td class="label">Author</td>
24
+ <td>{{ page.author }}</td>
25
+ </tr>
26
+ <tr>
27
+ <td class="label">Release Number</td>
28
+ <td>{{ page.release_number }}</td>
29
+ </tr>
30
+ <tr>
31
+ <td class="label">License</td>
32
+ <td>{{ page.license }}</td>
33
+ </tr>
34
+ </tbody>
35
+ </table>
36
+ </div>
37
+ </div>
38
+ </div>
39
+
40
+ {% include footer.html %}
41
+
42
+ </body>
43
+ </html>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" ng-app="app">
3
+
4
+ {% include head.html %}
5
+
6
+ <body ng-controller="gitHubDataController">
7
+
8
+ {% include header.html %}
9
+
10
+ <div>
11
+ <div class="banner"/>
12
+ </div>
13
+
14
+ <div class="container">
15
+ {{ content }}
16
+ </div>
17
+
18
+ {% include footer.html %}
19
+
20
+ {% include scripts.html %}
21
+
22
+ </body>
23
+ </html>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" ng-app="app">
3
+
4
+ {% include head.html %}
5
+
6
+ <body ng-controller="gitHubDataController">
7
+
8
+ {% include header.html %}
9
+
10
+ <div class="container">
11
+ {{ content }}
12
+ </div>
13
+
14
+ {% include footer.html %}
15
+
16
+ {% include scripts.html %}
17
+
18
+ </body>
19
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ <div class="container">
11
+ <div class="row">
12
+ <h2>
13
+ <a href="{{ page.url }}">{{ page.title }}</a>
14
+ <small class="pull-right">{{ page.date | date: '%B %d, %Y' }}</small>
15
+ </h2>
16
+
17
+ {{ content }}
18
+ </div>
19
+ </div>
20
+
21
+ {% include footer.html %}
22
+
23
+ {% include scripts.html %}
24
+
25
+ </body>
26
+ </html>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" ng-app="app">
3
+
4
+ {% include head.html %}
5
+
6
+ <body ng-controller="repoDataController">
7
+
8
+ {% include header.html %}
9
+
10
+ <div class="container">
11
+ {{ content }}
12
+ </div>
13
+
14
+ {% include footer.html %}
15
+
16
+ {% include scripts.html %}
17
+
18
+ </body>
19
+ </html>
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nist-software-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - ODI
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.1.4
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.1.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 12.3.3
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 12.3.3
55
+ description:
56
+ email:
57
+ - gretchen.greene@nist.gov
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE
63
+ - README.md
64
+ - _includes/breadcrumbs.html
65
+ - _includes/custom_head.html
66
+ - _includes/footer.html
67
+ - _includes/google_analytics.html
68
+ - _includes/head.html
69
+ - _includes/header.html
70
+ - _includes/scripts.html
71
+ - _layouts/default.html
72
+ - _layouts/entry.html
73
+ - _layouts/homepage.html
74
+ - _layouts/portal.html
75
+ - _layouts/post.html
76
+ - _layouts/repo.html
77
+ homepage: https://github.com/usnistgov/software/nist-software-theme
78
+ licenses:
79
+ - MIT
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubygems_version: 3.0.6
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: NIST Software Portal Template and Gem
100
+ test_files: []