Skip to content

Commit 1f77603

Browse files
committed
Add AI4SDLC subsite via MkDocs submodule
1 parent a40bcb9 commit 1f77603

8 files changed

Lines changed: 58 additions & 1 deletion

File tree

.github/workflows/jekyll.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
steps:
3333
- name: Checkout
3434
uses: actions/checkout@v4
35+
with:
36+
submodules: recursive
3537
- name: Setup Ruby
3638
uses: ruby/setup-ruby@v1
3739
with:
@@ -67,6 +69,14 @@ jobs:
6769
6870
- name: Run tests
6971
run: ./scripts/test
72+
- name: Setup Python
73+
uses: actions/setup-python@v5
74+
with:
75+
python-version: '3.12'
76+
- name: Build AI4SDLC (MkDocs)
77+
run: |
78+
pip install mkdocs-material
79+
mkdocs build -f ai4sdlc-mkdocs.yml --site-dir public/AI4SDLC
7080
- name: Upload artifact
7181
# Automatically uploads an artifact from the './_site' directory by default
7282
uses: actions/upload-pages-artifact@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
public/
55
tmp/
66
.DS_Store
7+
.venv/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "AI4SDLC"]
2+
path = AI4SDLC
3+
url = https://github.com/Code-dot-mil/AI4SDLC

AI4SDLC

Submodule AI4SDLC added at 94bb934

ai4sdlc-mkdocs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
INHERIT: AI4SDLC/mkdocs.yml
2+
3+
site_url: https://code.mil/AI4SDLC/
4+
docs_dir: AI4SDLC/docs
5+
6+
theme:
7+
name: material
8+
custom_dir: AI4SDLC/docs/overrides
9+
font:
10+
text: Source Sans Pro
11+
logo: images/DOW_CIO_Seal.png
12+
favicon: images/DOW_CIO_Seal.png
13+
include_homepage_in_sidebar: False
14+
palette:
15+
scheme: default
16+
primary: blue
17+
accent: pink
18+
features:
19+
- navigation.tabs
20+
- navigation.instant
21+
- search.suggest
22+
- search.highlight

scripts/test

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
set -e # halt script on error
33

44
bundle exec jekyll build
5+
mkdocs build -f ai4sdlc-mkdocs.yml --site-dir public/AI4SDLC --quiet
56
# Government and some other sites block automated requests with 403; ignore them.
6-
bundle exec htmlproofer ./public --timeframe 6w --url-ignore "/^mailto:/,/code.gov\/about\/open-source\/introduction/,/code.gov\/about\/compliance\/inventory-code/,/twitter.com\/DefenseDigital/,/dodcio\.defense\.gov/,/www\.defense\.gov/"
7+
# code.mil self-references are canonical/sitemap links generated by MkDocs; ignore them too.
8+
bundle exec htmlproofer ./public --timeframe 6w \
9+
--file-ignore "/\/AI4SDLC\//" \
10+
--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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ secondary: &secondary_navigation
77
href: /how-to-open-source.html
88
- text: FAQs
99
href: /frequently-asked-questions.html
10+
- text: AI4SDLC
11+
href: /AI4SDLC/
1012

1113
sidebar: *secondary_navigation

src/ai4sdlc.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: null
3+
permalink: /ai4sdlc/
4+
---
5+
<!DOCTYPE html>
6+
<html>
7+
<head>
8+
<meta http-equiv="refresh" content="0; url=/AI4SDLC/">
9+
<link rel="canonical" href="/AI4SDLC/">
10+
</head>
11+
<body>
12+
<p>Redirecting to <a href="/AI4SDLC/">AI4SDLC</a>...</p>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)