Skip to content

Commit

Permalink
adds google analytics and dap
Browse files Browse the repository at this point in the history
  • Loading branch information
david-saeger committed Jul 24, 2024
1 parent 40c2120 commit 0e219f8
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 32 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ By making a contribution to this project, I certify that:

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.

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).
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).

```sh
rbenv install 3.0.5
```

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

```sh
bundle install
Expand Down
27 changes: 15 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ GEM
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.8)
em-websocket (0.5.2)
concurrent-ruby (1.3.3)
csv (3.3.0)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
http_parser.rb (~> 0)
ethon (0.12.0)
ffi (>= 1.3.0)
eventmachine (1.2.7)
Expand All @@ -29,14 +30,15 @@ GEM
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
http_parser.rb (0.8.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
jekyll (3.9.0)
jekyll (3.10.0)
addressable (~> 2.4)
colorator (~> 1.0)
csv (~> 3.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
i18n (>= 0.7, < 2)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
Expand All @@ -45,6 +47,7 @@ GEM
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
webrick (>= 1.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.2.1)
Expand All @@ -53,8 +56,8 @@ GEM
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.4.1)
liquid (4.0.4)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
Expand All @@ -70,11 +73,11 @@ GEM
public_suffix (4.0.6)
racc (1.7.3)
rainbow (3.0.0)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
rouge (3.30.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ scripts:
styles:
- /assets/css/main.css
- /assets/css/custom.css

google_analytics_ua: G-1DDRY0RP72
dap_agency: DOD
4 changes: 1 addition & 3 deletions src/_layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
layout: default
---

<div class="usa-grid usa-section">
{{ content }}
</div>
<div class="usa-grid usa-section">{{ content }}</div>
28 changes: 16 additions & 12 deletions src/_layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@
class: usa-grid usa-section usa-content usa-layout-docs
---

{%- assign sidenav = site.data.navigation[page.sidenav] | default: page.sidenav -%}

{%- if sidenav -%}
<aside class="usa-layout-docs-sidenav sidenav {% if page.sticky_sidenav %}usa-sticky-sidenav{% endif %}">
{% include sidenav.html links=sidenav %}
</aside>
{%- assign sidenav = site.data.navigation[page.sidenav] | default: page.sidenav
-%} {%- if sidenav -%}
<aside
class="usa-layout-docs-sidenav sidenav {% if page.sticky_sidenav %}usa-sticky-sidenav{% endif %}"
>
{% include sidenav.html links=sidenav %}
</aside>
{% endif -%}

<div class="usa-layout-docs-main_content">
<header>
{%- if page.title -%}
<h1>{{ page.title }}</h1>

{%- if page.updated_at -%}
<small class="usa-font-lead">Last updated <time datetime="{{ page.updated_at }}">{{ page.updated_at | date_to_string: 'ordinal', 'US' }}</time>.</small>
{%- endif -%}
{%- endif -%}
<h1>{{ page.title }}</h1>
{%- if page.updated_at -%}
<small class="usa-font-lead"
>Last updated
<time datetime="{{ page.updated_at }}"
>{{ page.updated_at | date_to_string: 'ordinal', 'US' }}</time
>.</small
>
{%- endif -%} {%- endif -%}
</header>

{{ content }}
Expand Down
2 changes: 1 addition & 1 deletion src/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://code-mil.netlify.com/* https://code.mil/:splat 301!
https://code.mil/:splat 301!
2 changes: 0 additions & 2 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ graphics:
title: Make us better.
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.


intro: |
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.
---

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

0 comments on commit 0e219f8

Please sign in to comment.