Skip to content

Commit 0e219f8

Browse files
committed
adds google analytics and dap
1 parent 40c2120 commit 0e219f8

File tree

7 files changed

+38
-32
lines changed

7 files changed

+38
-32
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ By making a contribution to this project, I certify that:
7676

7777
Code.mil is a static website generated using [Jekyll](https://jekyllrb.com), a static website generator written in the [Ruby](https://ruby-lang.org) programming language. Development dependencies are managed using the [Bundler](https://bundler.io) gem.
7878

79-
This project uses Ruby version 2.6.2 which may be installed using a Ruby version manager like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm).
79+
This project uses Ruby version 3.0.5 which may be installed using a Ruby version manager like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm).
8080

8181
```sh
8282
rbenv install 3.0.5
8383
```
8484

85-
Once you've installed Ruby 2.6.2 and the Bundler gem (`gem install bundler`), install the project's gems by running::
85+
Once you've installed Ruby 3.0.5 and the Bundler gem (`gem install bundler`), install the project's gems by running::
8686

8787
```sh
8888
bundle install

Gemfile.lock

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ GEM
1212
addressable (2.8.0)
1313
public_suffix (>= 2.0.2, < 5.0)
1414
colorator (1.1.0)
15-
concurrent-ruby (1.1.8)
16-
em-websocket (0.5.2)
15+
concurrent-ruby (1.3.3)
16+
csv (3.3.0)
17+
em-websocket (0.5.3)
1718
eventmachine (>= 0.12.9)
18-
http_parser.rb (~> 0.6.0)
19+
http_parser.rb (~> 0)
1920
ethon (0.12.0)
2021
ffi (>= 1.3.0)
2122
eventmachine (1.2.7)
@@ -29,14 +30,15 @@ GEM
2930
rainbow (~> 3.0)
3031
typhoeus (~> 1.3)
3132
yell (~> 2.0)
32-
http_parser.rb (0.6.0)
33-
i18n (0.9.5)
33+
http_parser.rb (0.8.0)
34+
i18n (1.14.5)
3435
concurrent-ruby (~> 1.0)
35-
jekyll (3.9.0)
36+
jekyll (3.10.0)
3637
addressable (~> 2.4)
3738
colorator (~> 1.0)
39+
csv (~> 3.0)
3840
em-websocket (~> 0.5)
39-
i18n (~> 0.7)
41+
i18n (>= 0.7, < 2)
4042
jekyll-sass-converter (~> 1.0)
4143
jekyll-watch (~> 2.0)
4244
kramdown (>= 1.17, < 3)
@@ -45,6 +47,7 @@ GEM
4547
pathutil (~> 0.9)
4648
rouge (>= 1.7, < 4)
4749
safe_yaml (~> 1.0)
50+
webrick (>= 1.0)
4851
jekyll-sass-converter (1.5.2)
4952
sass (~> 3.4)
5053
jekyll-watch (2.2.1)
@@ -53,8 +56,8 @@ GEM
5356
rexml
5457
kramdown-parser-gfm (1.1.0)
5558
kramdown (~> 2.0)
56-
liquid (4.0.3)
57-
listen (3.4.1)
59+
liquid (4.0.4)
60+
listen (3.9.0)
5861
rb-fsevent (~> 0.10, >= 0.10.3)
5962
rb-inotify (~> 0.9, >= 0.9.10)
6063
mercenary (0.3.6)
@@ -70,11 +73,11 @@ GEM
7073
public_suffix (4.0.6)
7174
racc (1.7.3)
7275
rainbow (3.0.0)
73-
rb-fsevent (0.10.4)
74-
rb-inotify (0.10.1)
76+
rb-fsevent (0.11.2)
77+
rb-inotify (0.11.1)
7578
ffi (~> 1.0)
7679
rexml (3.2.5)
77-
rouge (3.26.0)
80+
rouge (3.30.0)
7881
safe_yaml (1.0.5)
7982
sass (3.7.4)
8083
sass-listen (~> 4.0.0)

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ scripts:
3636
styles:
3737
- /assets/css/main.css
3838
- /assets/css/custom.css
39+
40+
google_analytics_ua: G-1DDRY0RP72
41+
dap_agency: DOD

src/_layouts/home.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
layout: default
33
---
44

5-
<div class="usa-grid usa-section">
6-
{{ content }}
7-
</div>
5+
<div class="usa-grid usa-section">{{ content }}</div>

src/_layouts/page.html

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@
55
class: usa-grid usa-section usa-content usa-layout-docs
66
---
77

8-
{%- assign sidenav = site.data.navigation[page.sidenav] | default: page.sidenav -%}
9-
10-
{%- if sidenav -%}
11-
<aside class="usa-layout-docs-sidenav sidenav {% if page.sticky_sidenav %}usa-sticky-sidenav{% endif %}">
12-
{% include sidenav.html links=sidenav %}
13-
</aside>
8+
{%- assign sidenav = site.data.navigation[page.sidenav] | default: page.sidenav
9+
-%} {%- if sidenav -%}
10+
<aside
11+
class="usa-layout-docs-sidenav sidenav {% if page.sticky_sidenav %}usa-sticky-sidenav{% endif %}"
12+
>
13+
{% include sidenav.html links=sidenav %}
14+
</aside>
1415
{% endif -%}
1516

1617
<div class="usa-layout-docs-main_content">
1718
<header>
1819
{%- if page.title -%}
19-
<h1>{{ page.title }}</h1>
20-
21-
{%- if page.updated_at -%}
22-
<small class="usa-font-lead">Last updated <time datetime="{{ page.updated_at }}">{{ page.updated_at | date_to_string: 'ordinal', 'US' }}</time>.</small>
23-
{%- endif -%}
24-
{%- endif -%}
20+
<h1>{{ page.title }}</h1>
21+
{%- if page.updated_at -%}
22+
<small class="usa-font-lead"
23+
>Last updated
24+
<time datetime="{{ page.updated_at }}"
25+
>{{ page.updated_at | date_to_string: 'ordinal', 'US' }}</time
26+
>.</small
27+
>
28+
{%- endif -%} {%- endif -%}
2529
</header>
2630

2731
{{ content }}

src/_redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://code-mil.netlify.com/* https://code.mil/:splat 301!
1+
https://code.mil/:splat 301!

src/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ graphics:
2626
title: Make us better.
2727
description: We've drafted this documentation in partnership with the open source community. You can help improve our open source strategy by improving these documents! Open an issue or a pull request with your suggestions.
2828

29-
3029
intro: |
3130
The U.S. Department of Defense (<abbr title="Department of Defense">DoD</abbr>) faces unique challenges in open sourcing its code. Unlike most software projects, code written by U.S. Federal government employees typically does not have copyright protections under U.S. and some international laws. This can make it difficult to attach an open source license to our code. The [Defense Digital Service](https://dds.mil) (<abbr title="Defense Digital Service">DDS</abbr>) has been working with DoD and the open source community since early 2017 to develop a guideline for supporting open source software (<abbr title="open source software">OSS</abbr>) within the Department.
32-
3331
---
3432

3533
<div class="usa-width-two-thirds" markdown="1">

0 commit comments

Comments
 (0)