Skip to content

Commit 2d87367

Browse files
authored
Merge pull request #327 from Code-dot-mil/add-oss-faq
Add oss faq
2 parents 1c2034f + 065c05a commit 2d87367

11 files changed

Lines changed: 63 additions & 11 deletions

File tree

‎.gitmodules‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "AI4SDLC"]
22
path = AI4SDLC
33
url = https://github.com/Code-dot-mil/AI4SDLC
4+
[submodule "oss-faq"]
5+
path = src/oss-faq
6+
url = https://github.com/Code-dot-mil/oss-faq

‎CONTRIBUTORS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Copyright 2022 Ryan O'Neill elfmaster@arcana-research.io
1414
- Copyright 2023 Even Stensberg evenstensberg@gmail.com
1515
- Copyright 2024 David Saeger david@dds.mil
16+
- Copyright 2026 Daniel Risacher Daniel.R.Risacher.CIV@mail.mil
1617
- _Add the copyright date, your name, and email address here. (PLEASE KEEP THIS LINE)_
1718

1819
## Note for U.S. Federal Employees

‎_config.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ include:
55
- _headers
66
- _redirects
77

8+
# The oss-faq submodule is a repository in its own right, so it carries files
9+
# that belong to the repository rather than to the published page. They have no
10+
# front matter, which means Jekyll would otherwise copy them into the site
11+
# verbatim. Only faq.md and its images and references should be published.
12+
exclude:
13+
- oss-faq/README.md
14+
- oss-faq/TODO.md
15+
- oss-faq/LICENSE
16+
817
host: 0.0.0.0
918

1019
title: Code.mil

‎scripts/test‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ bundle exec jekyll build
55
mkdocs build -f ai4sdlc-mkdocs.yml --site-dir public/AI4SDLC --quiet
66
# Government and some other sites block automated requests with 403; ignore them.
77
# code.mil self-references are canonical/sitemap links generated by MkDocs; ignore them too.
8+
#
9+
# The OSS FAQ is excluded for the same reason AI4SDLC is: it is maintained in
10+
# its own repository and link-checked there. It carries roughly 205 links across
11+
# some 60 .mil and .gov hosts, many of which reject non-browser user agents,
12+
# sit behind CAC/PKI, or return soft 404s -- a 200 with an empty body. Checking
13+
# it usefully needs a realistic user agent and content inspection rather than
14+
# status codes alone, which is more than this site-wide sweep is set up to do.
15+
# The pattern matches both the page (/oss-faq.html) and its assets (/oss-faq/).
816
bundle exec htmlproofer ./public --timeframe 6w \
9-
--file-ignore "/\/AI4SDLC\//" \
17+
--file-ignore "/\/AI4SDLC\//,/oss-faq/" \
1018
--url-ignore "/^mailto:/,/code\.mil\//,/code.gov\/about\/open-source\/introduction/,/code.gov\/about\/compliance\/inventory-code/,/twitter.com\/DefenseDigital/,/dodcio\.defense\.gov/,/www\.defense\.gov/,/media\.defense\.gov/,/www\.esd\.whs\.mil/,/platform\.openai\.com/,/fonts\.gstatic\.com/"

‎src/_data/navigation.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ secondary: &secondary_navigation
55
href: /getting-started.html
66
- text: How to Open Source
77
href: /how-to-open-source.html
8-
- text: FAQs
9-
href: /frequently-asked-questions.html
8+
- text: Open Source Software FAQ
9+
href: /oss-faq.html
1010
- text: AI4SDLC
1111
href: /AI4SDLC/
12+
- text: About Code.mil
13+
href: /about.html
1214

1315
sidebar: *secondary_navigation

‎src/_data/tree_nodes.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
- modify the contract to require delivery by open source code repository; or
7575
- wait for delivery and open source the resulting code (this could be tricky).
7676
77-
There are a lot of possibilities within those options, however. We encourage you to read our [frequently asked questions](/frequently-asked-questions.html) and then reach out to us by email at [{{site.email}}](mailto:{{site.email}}) to continue the conversation.
77+
There are a lot of possibilities within those options, however. We encourage you to read our [Open Source Software FAQ](/oss-faq.html) and then reach out to us by email at [{{site.email}}](mailto:{{site.email}}) to continue the conversation.
7878
7979
- title: Gov Only
8080
id: gov-only
@@ -105,6 +105,6 @@
105105
- title: Not yet
106106
id: info-only
107107
content: |
108-
That's great! We're glad you are interested in open source. You may want to start by reading our [Why Open Source](/why-open-source.html) page and some of the [Frequently Asked Questions](/frequently-asked-questions.html). You can also explore information on the OMB policy itself over on the [Code.gov](https://code.gov) website.
108+
That's great! We're glad you are interested in open source. You may want to start by reading our [Why Open Source](/why-open-source.html) page and some of the [Open Source Software FAQ](/oss-faq.html). You can also explore information on the OMB policy itself over on the [Code.gov](https://code.gov) website.
109109
110110
If you would like to have a follow up conversation, feel free to reach out to us at [{{site.email}}](mailto:{{site.email}})
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Frequently Asked Questions (FAQs)
3-
updated_at: 2024-07-25
2+
title: About Code.mil
3+
updated_at: 2026-08-07
44

55
sticky_sidenav: false
66

77
subnav:
88
- text: "What is Code.mil?"
9-
href: "/frequently-asked-questions.html#what-is-codemil"
9+
href: "/about.html#what-is-codemil"
1010
---
1111

1212
## What is Code.mil?

‎src/assets/js/main.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,13 @@
4949
* and the function below is where we do the work.
5050
*/
5151
(function SubNav() {
52-
if (/^\/frequently\-asked\-questions/.test(window.location.pathname)) {
53-
insertSubNav('#main-content h2', '/frequently-asked-questions.html', 1);
52+
if (/^\/about/.test(window.location.pathname)) {
53+
insertSubNav('#main-content h2', '/about.html', 1);
54+
} else if (/^\/oss\-faq/.test(window.location.pathname)) {
55+
// Skips two headings rather than one: the FAQ opens with its own
56+
// top-level heading, and the section after it is already seeded by the
57+
// page's subnav front matter.
58+
insertSubNav('#main-content h2', '/oss-faq.html', 2);
5459
} else if (/^\/how\-to\-open\-source/.test(window.location.pathname)) {
5560
insertSubNav('#main-content h3', '/how-to-open-source.html', 1);
5661
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: null
3+
permalink: /frequently-asked-questions.html
4+
---
5+
<!DOCTYPE html>
6+
<html lang="en">
7+
<head>
8+
<meta charset="utf-8">
9+
<title>Redirecting to About Code.mil</title>
10+
<meta http-equiv="refresh" content="0; url=/about.html">
11+
<link rel="canonical" href="/about.html">
12+
</head>
13+
<body>
14+
<p>
15+
This page is now <a href="/about.html">About Code.mil</a>. If you are not
16+
redirected automatically, follow that link.
17+
</p>
18+
<p>
19+
Looking for the Department of War Open Source Software FAQ? That is at
20+
<a href="/oss-faq.html">/oss-faq.html</a>.
21+
</p>
22+
</body>
23+
</html>

‎src/oss-faq‎

Submodule oss-faq added at 1edbbb6

0 commit comments

Comments
 (0)