Skip to content

Commit 0c2da29

Browse files
committed
Merge branch 'main' into ev-charging-units-nearest-endpoint
2 parents 8c72906 + edfa149 commit 0c2da29

167 files changed

Lines changed: 7448 additions & 3319 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
run: pnpm exec gh-pages --dist ./build/ --branch build-history --user "$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" --repo "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
6767

6868
deploy:
69-
if: success() && github.repository_owner == 'NREL' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
69+
if: success() && github.repository_owner == 'NatLabRockies' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
7070
needs: build
7171
runs-on: ubuntu-latest
7272
container:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM public.ecr.aws/docker/library/ruby:3.4-slim-bookworm
1+
FROM public.ecr.aws/docker/library/ruby:3.4-slim-trixie
22

33
ENV \
44
BUNDLE_JOBS=20 \
@@ -23,7 +23,7 @@ RUN set -x && \
2323
fi
2424

2525
# NodeJS and pnpm
26-
ARG NODEJS_MAJOR_VERSION=22
26+
ARG NODEJS_MAJOR_VERSION=24
2727
RUN set -x && \
2828
version="node_${NODEJS_MAJOR_VERSION}.x" && \
2929
distro=$(. /etc/os-release && echo "$VERSION_CODENAME") && \

Gemfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ source "https://rubygems.org"
33
ruby "~> 3.4.0"
44

55
# Middleman Gems
6-
gem "middleman", "~> 4.6.0"
6+
gem "middleman", "~> 4.6.2"
77

88
# GitHub-flavored markdown.
99
gem "kramdown-parser-gfm", "~> 1.1.0"
1010

1111
# Environment specific config with environment variables
12-
gem "dotenv", "~> 3.1.8"
12+
gem "dotenv", "~> 3.2.0"
1313

1414
# Syntax highlighting
15-
gem "middleman-syntax", "~> 3.5.0"
15+
gem "middleman-syntax", "~> 3.6.1"
1616

1717
# Redirects
1818
gem "middleman-alias", "~> 0.0.17"
1919

2020
# JSON validation
21-
gem "multi_json", "~> 1.15.0"
21+
gem "multi_json", "~> 1.19.1"
2222

2323
# Test tasks
24-
gem "rake", "~> 13.0"
24+
gem "rake", "~> 13.3"
2525

2626
# For making API calls to generate docs.
2727
gem "rest-client", "~> 2.1.0"

Gemfile.lock

Lines changed: 56 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,73 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (8.0.2)
4+
activesupport (8.1.2)
55
base64
6-
benchmark (>= 0.3)
76
bigdecimal
87
concurrent-ruby (~> 1.0, >= 1.3.1)
98
connection_pool (>= 2.2.5)
109
drb
1110
i18n (>= 1.6, < 2)
11+
json
1212
logger (>= 1.4.2)
1313
minitest (>= 5.1)
1414
securerandom (>= 0.3)
1515
tzinfo (~> 2.0, >= 2.0.5)
1616
uri (>= 0.13.1)
17-
addressable (2.8.7)
18-
public_suffix (>= 2.0.2, < 7.0)
19-
base64 (0.2.0)
20-
benchmark (0.4.0)
21-
bigdecimal (3.1.9)
17+
addressable (2.8.8)
18+
public_suffix (>= 2.0.2, < 8.0)
19+
base64 (0.3.0)
20+
bigdecimal (4.0.1)
2221
coffee-script (2.4.1)
2322
coffee-script-source
2423
execjs
2524
coffee-script-source (1.12.2)
26-
concurrent-ruby (1.3.5)
27-
connection_pool (2.5.2)
28-
contracts (0.17.2)
25+
concurrent-ruby (1.3.6)
26+
connection_pool (3.0.2)
27+
contracts (0.17.3)
2928
domain_name (0.6.20240107)
30-
dotenv (3.1.8)
31-
drb (2.2.1)
32-
dry-cli (1.2.0)
29+
dotenv (3.2.0)
30+
drb (2.2.3)
31+
dry-cli (1.4.1)
3332
erubi (1.13.1)
3433
execjs (2.10.0)
3534
fast_blank (1.0.1)
3635
fastimage (2.4.0)
37-
ffi (1.17.2)
38-
ffi (1.17.2-aarch64-linux-gnu)
39-
ffi (1.17.2-x86_64-linux-gnu)
40-
haml (6.3.0)
36+
ffi (1.17.3)
37+
ffi (1.17.3-aarch64-linux-gnu)
38+
ffi (1.17.3-x86_64-linux-gnu)
39+
haml (7.2.0)
4140
temple (>= 0.8.2)
4241
thor
4342
tilt
4443
hamster (3.0.0)
4544
concurrent-ruby (~> 1.0)
46-
hashie (5.0.0)
45+
hashie (5.1.0)
46+
logger
4747
http-accept (1.7.0)
48-
http-cookie (1.0.8)
48+
http-cookie (1.1.0)
4949
domain_name (~> 0.5)
50-
i18n (1.14.7)
50+
i18n (1.14.8)
5151
concurrent-ruby (~> 1.0)
52-
kramdown (2.5.1)
53-
rexml (>= 3.3.9)
52+
json (2.18.1)
53+
kramdown (2.5.2)
54+
rexml (>= 3.4.4)
5455
kramdown-parser-gfm (1.1.0)
5556
kramdown (~> 2.0)
56-
listen (3.9.0)
57+
listen (3.10.0)
58+
logger
5759
rb-fsevent (~> 0.10, >= 0.10.3)
5860
rb-inotify (~> 0.9, >= 0.9.10)
5961
logger (1.7.0)
6062
memoist (0.16.2)
61-
middleman (4.6.1)
62-
middleman-cli (= 4.6.1)
63-
middleman-core (= 4.6.1)
63+
middleman (4.6.2)
64+
middleman-cli (= 4.6.2)
65+
middleman-core (= 4.6.2)
6466
middleman-alias (0.0.17)
6567
middleman-core (>= 3.3)
66-
middleman-cli (4.6.1)
68+
middleman-cli (4.6.2)
6769
thor (>= 0.17.0, < 2)
68-
middleman-core (4.6.1)
70+
middleman-core (4.6.2)
6971
activesupport (>= 6.1)
7072
addressable (~> 2.4)
7173
bundler (~> 2.0)
@@ -93,15 +95,16 @@ GEM
9395
toml
9496
uglifier (>= 3, < 5)
9597
webrick
96-
middleman-syntax (3.5.0)
98+
middleman-syntax (3.6.1)
9799
middleman-core (>= 3.2)
98100
rouge (~> 3.2)
99-
mime-types (3.6.2)
101+
mime-types (3.7.0)
100102
logger
101-
mime-types-data (~> 3.2015)
102-
mime-types-data (3.2025.0422)
103-
minitest (5.25.5)
104-
multi_json (1.15.0)
103+
mime-types-data (~> 3.2025, >= 3.2025.0507)
104+
mime-types-data (3.2026.0203)
105+
minitest (6.0.1)
106+
prism (~> 1.5)
107+
multi_json (1.19.1)
105108
mutex_m (0.3.0)
106109
netrc (0.11.0)
107110
padrino-helpers (0.15.3)
@@ -111,13 +114,14 @@ GEM
111114
padrino-support (0.15.3)
112115
parallel (1.27.0)
113116
parslet (2.0.0)
114-
public_suffix (6.0.1)
115-
rack (3.1.18)
117+
prism (1.9.0)
118+
public_suffix (7.0.2)
119+
rack (3.2.5)
116120
rack-proxy (0.7.7)
117121
rack
118-
rackup (2.2.1)
122+
rackup (2.3.1)
119123
rack (>= 3)
120-
rake (13.2.1)
124+
rake (13.3.1)
121125
rb-fsevent (0.11.2)
122126
rb-inotify (0.11.1)
123127
ffi (~> 1.0)
@@ -126,22 +130,22 @@ GEM
126130
http-cookie (>= 1.0.2, < 2.0)
127131
mime-types (>= 1.16, < 4.0)
128132
netrc (~> 0.8)
129-
rexml (3.4.2)
133+
rexml (3.4.4)
130134
rouge (3.30.0)
131135
sassc (2.4.0)
132136
ffi (~> 1.9)
133137
securerandom (0.4.1)
134138
servolux (0.13.0)
135-
temple (0.10.3)
136-
thor (1.4.0)
137-
tilt (2.6.0)
139+
temple (0.10.4)
140+
thor (1.5.0)
141+
tilt (2.7.0)
138142
toml (0.3.0)
139143
parslet (>= 1.8.0, < 3.0.0)
140144
tzinfo (2.0.6)
141145
concurrent-ruby (~> 1.0)
142146
uglifier (4.2.1)
143147
execjs (>= 0.3.0, < 3)
144-
uri (1.0.3)
148+
uri (1.1.1)
145149
vite_padrino (3.0.0)
146150
vite_ruby (~> 3.0)
147151
vite_ruby (3.9.2)
@@ -150,27 +154,27 @@ GEM
150154
mutex_m
151155
rack-proxy (~> 0.6, >= 0.6.1)
152156
zeitwerk (~> 2.2)
153-
webrick (1.9.1)
154-
zeitwerk (2.7.2)
157+
webrick (1.9.2)
158+
zeitwerk (2.7.4)
155159

156160
PLATFORMS
157161
aarch64-linux
158162
ruby
159163
x86_64-linux
160164

161165
DEPENDENCIES
162-
dotenv (~> 3.1.8)
166+
dotenv (~> 3.2.0)
163167
kramdown-parser-gfm (~> 1.1.0)
164-
middleman (~> 4.6.0)
168+
middleman (~> 4.6.2)
165169
middleman-alias (~> 0.0.17)
166-
middleman-syntax (~> 3.5.0)
167-
multi_json (~> 1.15.0)
168-
rake (~> 13.0)
170+
middleman-syntax (~> 3.6.1)
171+
multi_json (~> 1.19.1)
172+
rake (~> 13.3)
169173
rest-client (~> 2.1.0)
170174
vite_padrino (~> 3.0.0)
171175

172176
RUBY VERSION
173-
ruby 3.4.3p32
177+
ruby 3.4.8p72
174178

175179
BUNDLED WITH
176-
2.6.7
180+
2.6.9

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# developer.nrel.gov
1+
# developer.nlr.gov
22

3-
Have questions, feedback, or issues with the APIs available at [developer.nrel.gov](https://developer.nrel.gov/)? [Contact us](https://developer.nrel.gov/contact/) or let us know in the [issue tracker](https://github.com/NREL/developer.nrel.gov/issues).
3+
Have questions, feedback, or issues with the APIs available at [developer.nlr.gov](https://developer.nlr.gov/)? [Contact us](https://developer.nlr.gov/contact/) or let us know in the [issue tracker](https://github.com/NatLabRockies/developer.nlr.gov/issues).
44

5-
This repository stores the website content and documentation for [developer.nrel.gov](https://developer.nrel.gov). Contributions are welcome. To submit a change, fork this repo, commit your changes, and send us a [pull request](https://help.github.com/articles/using-pull-requests).
5+
This repository stores the website content and documentation for [developer.nlr.gov](https://developer.nlr.gov). Contributions are welcome. To submit a change, fork this repo, commit your changes, and send us a [pull request](https://help.github.com/articles/using-pull-requests).
66

77
## Development
88

9-
The content files to edit are in [`./source`](https://github.com/NREL/developer.nrel.gov/tree/master/source). To preview your changes you can use the [Middleman](https://middlemanapp.com) preview server. To run Middleman:
9+
The content files to edit are in [`./source`](https://github.com/NatLabRockies/developer.nlr.gov/tree/main/source). To preview your changes you can use the [Middleman](https://middlemanapp.com) preview server. To run Middleman:
1010

1111
1. Install [Docker](https://www.docker.com/products/docker-desktop/) on your computer.
12-
2. Checkout the `developer.nrel.gov` repository on your computer (`git clone https://github.com/NREL/developer.nrel.gov.git`).
12+
2. Checkout the `developer.nlr.gov` repository on your computer (`git clone https://github.com/NatLabRockies/developer.nlr.gov.git`).
1313
3. For NLR employees on the NLR network: Add a `docker-compose.override.yml`, with the following contents, but substituting `REPLACE_ME` with the appropriate URL (reach out to a maintainer for this value):
1414

1515
```yaml
@@ -20,7 +20,7 @@ The content files to edit are in [`./source`](https://github.com/NREL/developer.
2020
NREL_ROOT_CERT_URL_ROOT: "REPLACE_ME"
2121
```
2222
23-
4. Inside the `developer.nrel.gov` directory, run `docker compose up`.
23+
4. Inside the `developer.nlr.gov` directory, run `docker compose up`.
2424
5. View your changes at: http://localhost:4480/
2525

2626
### Linting
@@ -30,6 +30,6 @@ If you're working on Swagger documentation, you can run `rake lint` locally to c
3030
## Deploy
3131

3232
- Changes committed to the `staging` branch will automatically be deployed to the staging site.
33-
- Changes committed to the `master` branch will automatically be deployed to the production site.
33+
- Changes committed to the `main` branch will automatically be deployed to the production site.
3434

3535
Deploys may take a few minutes after pushing before they show up. You can check the status via the Actions tab above.

config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def loader
179179
end
180180

181181
def make_request(path, params = {country: "all", api_key: ENV["DOCS_API_KEY"]})
182-
MultiJson.load(RestClient.get("https://developer.nrel.gov/api/alt-fuel-stations/v1/#{path}.json", params: params))
182+
MultiJson.load(RestClient.get("https://developer.nlr.gov/api/alt-fuel-stations/v1/#{path}.json", params: params))
183183
end
184184
end
185185

config/vite.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"all": {
33
"publicDir": "tmp/vite",
44
"sourceCodeDir": "frontend",
5-
"additionalEntrypoints": ["~/{assets,fonts,icons,images,nrel-app-template/img}/**/*"],
5+
"additionalEntrypoints": ["~/{assets,fonts,icons,images,nlr-app-template/img}/**/*"],
66
"watchAdditionalPaths": []
77
},
88
"development": {

frontend/entrypoints/all.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
@import "@/stylesheets/_variables";
22
@import "bootstrap/scss/bootstrap";
33

4-
@import "@/nrel-app-template/css/nrel.complete";
5-
@import "@/nrel-app-template/css/nrel.application";
6-
@import "@/stylesheets/_nrel_app_template_overrides";
4+
@import "@/nlr-app-template/css/nlr.complete";
5+
@import "@/nlr-app-template/css/nlr.application";
6+
@import "@/stylesheets/_nlr_app_template_overrides";
77

88
@import "@/stylesheets/_base";
99
@import "@/stylesheets/_docs";

frontend/entrypoints/contact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ formEl.addEventListener("submit", (event) => {
3333
}, 0);
3434

3535
const hostname = window.location.hostname;
36-
const apiHost = (hostname === 'developer.nrel.gov') ? 'developer.nrel.gov' : 'devstage.nrel.gov';
36+
const apiHost = (hostname === 'developer.nlr.gov') ? 'developer.nlr.gov' : 'devstage.nlr.gov';
3737

3838
return fetch(`https://${apiHost}/api/contactor/v1.json?` + new URLSearchParams({
3939
api_key: options.apiKey,

frontend/entrypoints/swagger.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import SwaggerUI from 'swagger-ui'
1+
import { SwaggerUIBundle } from 'swagger-ui-dist'
22
import ApiKeyFormPlugin from '@/lib/swagger_api_key_form';
33
import domready from 'domready';
4-
import 'swagger-ui/dist/swagger-ui.css';
4+
import 'swagger-ui-dist/swagger-ui.css';
55

66
domready(() => {
77
const swaggerUiEl = document.getElementById('swagger-ui');
88

9-
SwaggerUI({
9+
SwaggerUIBundle({
1010
url: swaggerUiEl.dataset.swaggerUrl,
1111
dom_id: '#swagger-ui',
1212
plugins: [

0 commit comments

Comments
 (0)