opensource-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 31f85b24f26f80fbe55836b9961fdf0c46fd65a0690e453e4cc10339f50e033c
4
+ data.tar.gz: dafe2f78dade6adc96fd287e3c4ab410368d43801b5634bf9dc970752ba5cc58
5
+ SHA512:
6
+ metadata.gz: 9f29508f70366a5629bbff6f6982ecc8924417e94b169dc72e275fbe0471d1ee2fe2250f66a5b4a532347911daf75a241cbb85c760eec8a3d0e91d71ab1d7920
7
+ data.tar.gz: 8952db37c327c6e9eaa6516e4ecad9ea95844320431b86eb03f124bc7ea466658e94a93facbf6946588ba4833d9d7d3dbee5b102a871316d75f170d7cfc6bca8
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019, Lawrence Livermore National Security, LLC
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.
@@ -0,0 +1,130 @@
1
+ # LLNL Theme for Jekyll Websites
2
+
3
+ Author: Ian Lee <lee1001@llnl.gov> and Elsa Gonsiorowski <gonsie@llnl.gov>
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 "jekyll-llnl-theme"
15
+ ```
16
+
17
+ And add this line to your Jekyll site's `_config.yml`:
18
+
19
+ ```yaml
20
+ theme: jekyll-llnl-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 jekyll-llnl-theme
33
+ ```
34
+
35
+ ### GitHub Pages Remote Theme
36
+
37
+ This is a recent addition to GitHub pages and is simple to use.
38
+ Add this line to your site's `Gemfile`:
39
+
40
+ ``` ruby
41
+ gem "github-pages", group :jekyll_plugins
42
+ ```
43
+
44
+ And add this line to your site's `_config.yml`:
45
+
46
+ ``` yaml
47
+ remote_theme: LLNL/Jekyll-LLNL-Theme
48
+ ```
49
+
50
+ It is unclear if the remote theme is suitable for local development, but it will work on deployed sites.
51
+
52
+ ## Usage
53
+
54
+ This theme supports multiple page websites.
55
+ Any page which is located at `/`, such as `/about.md`, will be added to the navigation bar at the top.
56
+ Each page should include the following YAML front matter:
57
+
58
+ ```yaml
59
+ ---
60
+ layout: default
61
+ title: Title of the Page
62
+ ---
63
+ ```
64
+
65
+ Currently, there is only the `default` layout.
66
+
67
+ ### Adding a Blog
68
+
69
+ In true Jekyll fashion, a blog can be created by adding a `_posts/` directory.
70
+ See the [Jekyll Documentation](https://jekyllrb.com/docs/posts/) for details on formatting blog entries.
71
+
72
+ The following code is an example of how to create a list of blog entries:
73
+
74
+ ```html
75
+ <ul>
76
+ {% for post in site.posts %}
77
+ <li>
78
+ <a href="{{ post.url }}">{{ post.title }}</a>
79
+ </li>
80
+ {% endfor %}
81
+ </ul>
82
+ ```
83
+
84
+ ## Development
85
+
86
+ ### With Ruby Gems
87
+
88
+ Assuming working on OS X, tested on OS X 10.11.2. `gem` (Ruby package manager)
89
+ was preinstalled, so just working from there:
90
+
91
+ ```shell
92
+ # Install the dependencies:
93
+ $ gem install jekyll
94
+
95
+ # Build and serve the website
96
+ $ jekyll serve --baseurl=''
97
+
98
+ # Browse to (by default) `localhost:4000` in a web browser
99
+ $ open localhost:4000
100
+ ```
101
+
102
+ For more information, check out the full documentation at: http://jekyllrb.com/
103
+
104
+ ### With Bundler
105
+
106
+ Using [Bundler](https://bundler.io):
107
+
108
+ ```shell
109
+ # Install the dependencies
110
+ $ bundle Install
111
+
112
+ # Build and serve the website
113
+ $ bundle exec jekyll serve --baseurl=''
114
+
115
+ # Browse to (by default) `localhost:4000` in a web browser
116
+ $ open localhost:4000
117
+ ```
118
+
119
+ ## Contributing
120
+
121
+ Bug reports and pull requests are welcome on GitHub at https://github.com/llnl/jekyll-llnl-theme.
122
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [LLNL Contributing Guide](https://github.com/LLNL/open-source-guidelines/blob/master/CONTRIBUTING.md) code of conduct.
123
+
124
+ ## Release
125
+
126
+ This Jekyll theme is released under the MIT License. For more details see the
127
+ LICENSE File.
128
+
129
+ LLNL-CODE-705597
130
+ LLNL-WEB-680594
@@ -0,0 +1,12 @@
1
+ <div id="breadcrumbs">
2
+ {% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
3
+ <a href="/opensource">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,24 @@
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.llnl.gov/" target="_blank"><img src="https://cdn.llnl.gov/onelab/latest/images/llnl.png" alt="LLNL" border="0" /></a>
11
+ <p> Lawrence Livermore National Laboratory <br /> 7000 East Avenue &bull; Livermore, CA 94550 </p>
12
+ <p> Operated by Lawrence Livermore National Security, LLC, for the <br /> Department of Energy's National Nuclear Security Administration. </p>
13
+ <a class="nnsa" href="https://nnsa.energy.gov/" target="_blank"><img src="https://cdn.llnl.gov/onelab/latest/images/nnsa.png" alt="NNSA" border="0" /></a>
14
+ <a class="doe" href="https://energy.gov/" target="_blank"><img src="https://cdn.llnl.gov/onelab/latest/images/doe_small.png" alt="U.S. DOE" border="0" /></a>
15
+ <a class="llns" href="http://www.llnsllc.com/" target="_blank"><img src="https://cdn.llnl.gov/onelab/latest/images/llns.png" alt="LLNS" border="0" /></a>
16
+ </div>
17
+
18
+ <div class="col-md-12 subfooter">
19
+ <span>{{ site.llnl.release_number }} &nbsp;|&nbsp;&nbsp;</span>
20
+ <a href="https://www.llnl.gov/disclaimer" target="_blank">Privacy &amp; Legal Notice</a>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </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="https://cdn.llnl.gov/onelab/0.1.1/images/favicon.ico">
7
+
8
+ <link rel="stylesheet" href="https://cdn.llnl.gov/bootstrap/3.3.5/css/bootstrap.min.css" media="screen">
9
+ <link rel="stylesheet" href="https://cdn.llnl.gov/font-awesome/4.7.0/css/font-awesome.min.css" media="screen">
10
+
11
+ <link rel="stylesheet" href="https://cdn.llnl.gov/onelab/0.1.1/css/onelab.css" media="screen">
12
+
13
+ <link rel="stylesheet" href="/opensource/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="llnl-menu-tab" class="pull-left"><a href="https://www.llnl.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/llnl/{{ site.githubrepo }}"><span class="fa fa-github fa-lg"></span></a></li>
26
+ </ul>
27
+ </div>
28
+
29
+ </div>
30
+ </nav>
@@ -0,0 +1,17 @@
1
+ {% if site.piwik_id %}
2
+ <!-- Piwik -->
3
+ <script type="text/javascript">
4
+ var _paq = _paq || [];
5
+ _paq.push(['trackPageView']);
6
+ _paq.push(['enableLinkTracking']);
7
+ (function() {
8
+ var u="//analytics.llnl.gov/";
9
+ _paq.push(['setTrackerUrl', u+'piwik.php']);
10
+ _paq.push(['setSiteId', {{ site.piwik_id }}]);
11
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
12
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
13
+ })();
14
+ </script>
15
+ <noscript><p><img src="//analytics.llnl.gov/piwik.php?idsite={{ site.piwik_id }}" style="border:0;" alt="" /></p></noscript>
16
+ <!-- End Piwik Code -->
17
+ {% endif %}
@@ -0,0 +1,10 @@
1
+ <!-- jQuery first, then Bootstrap JS. -->
2
+ <script src="https://cdn.llnl.gov/jquery/2.1.4/js/jquery-2.1.4.min.js"></script>
3
+ <script src="https://cdn.llnl.gov/bootstrap/3.3.5/js/bootstrap.min.js"></script>
4
+
5
+ <script src="/opensource/assets/js/anchor.min.js"></script>
6
+ <script>
7
+ anchors.add()
8
+ </script>
9
+
10
+ {% include google_analytics.html %}
@@ -0,0 +1,23 @@
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
+ {% include piwik.html %}
20
+
21
+ </body>
22
+ </html>
23
+
@@ -0,0 +1,45 @@
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
+ {% include piwik.html %}
43
+
44
+ </body>
45
+ </html>
@@ -0,0 +1,25 @@
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
+ {% include piwik.html %}
23
+
24
+ </body>
25
+ </html>
@@ -0,0 +1,21 @@
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
+ {% include piwik.html %}
19
+
20
+ </body>
21
+ </html>
@@ -0,0 +1,28 @@
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
+ {% include piwik.html %}
26
+
27
+ </body>
28
+ </html>
@@ -0,0 +1,21 @@
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
+ {% include piwik.html %}
19
+
20
+ </body>
21
+ </html>
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: opensource-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - F. Yannick Congo
8
+ - National Institute of Standards and Technology
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2020-08-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jekyll
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '3.5'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '3.5'
28
+ - !ruby/object:Gem::Dependency
29
+ name: bundler
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.12'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.12'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: 12.3.3
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 12.3.3
56
+ description:
57
+ email:
58
+ - opensource@nist.gov
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - LICENSE
64
+ - README.md
65
+ - _includes/breadcrumbs.html
66
+ - _includes/custom_head.html
67
+ - _includes/footer.html
68
+ - _includes/google_analytics.html
69
+ - _includes/head.html
70
+ - _includes/header.html
71
+ - _includes/piwik.html
72
+ - _includes/scripts.html
73
+ - _layouts/default.html
74
+ - _layouts/entry.html
75
+ - _layouts/homepage.html
76
+ - _layouts/portal.html
77
+ - _layouts/post.html
78
+ - _layouts/repo.html
79
+ homepage: https://github.com/usnistgov/opensource-theme
80
+ licenses:
81
+ - MIT
82
+ metadata: {}
83
+ post_install_message:
84
+ rdoc_options: []
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ requirements: []
98
+ rubygems_version: 3.0.6
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: NIST Themed Jekyll Template and Gem
102
+ test_files: []