Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# developer.nlr.gov

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.nrel.gov/issues).
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).

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

## Development

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

1. Install [Docker](https://www.docker.com/products/docker-desktop/) on your computer.
2. Checkout the `developer.nlr.gov` repository on your computer (`git clone https://github.com/NatLabRockies/developer.nrel.gov.git`).
2. Checkout the `developer.nlr.gov` repository on your computer (`git clone https://github.com/NatLabRockies/developer.nlr.gov.git`).
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):

```yaml
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ domready(() => {
// If the header on the page is missing IDs, dynamically generate them. Our Markdown content should have auto-generated IDs already, but raw HTML headers may be missing them.
//
// This is mostly for parity with the old jQuery plugin we used:
// https://github.com/NatLabRockies/developer.nrel.gov/blob/060b09858ed90cc40de083100d8016d097f62339/assets/javascripts/_vendor/jquery.tableofcontents.js#L224-L228
// https://github.com/NatLabRockies/developer.nlr.gov/blob/060b09858ed90cc40de083100d8016d097f62339/assets/javascripts/_vendor/jquery.tableofcontents.js#L224-L228
if (!headerEl.id) {
headerEl.id = headerEl.innerText.toLowerCase().replace(/[^a-z0-9 -]/gi, '').replace(/ /gi, '-').substr(0, 50);
}
Expand Down
4 changes: 2 additions & 2 deletions source/contact.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Contact Us

<div class="row">
<div class="col-md-5 mb-3">
<a href="https://github.com/NatLabRockies/developer.nrel.gov/issues" class="d-block btn btn-primary btn-lg">
<a href="https://github.com/NatLabRockies/developer.nlr.gov/issues" class="d-block btn btn-primary btn-lg">
<i class="fab fa-github me-1"></i>
<span>File an issue on GitHub</span>
</a>
Expand Down Expand Up @@ -85,7 +85,7 @@ title: Contact Us
<script type="text/javascript">
window.nrelContactOptions = {
apiKey: "qhbzQVQybC6mS0Nfk2ad5bs9C9VIUnIkvAckkuBx",
issuesUrl: "https://github.com/NatLabRockies/developer.nrel.gov/issues"
issuesUrl: "https://github.com/NatLabRockies/developer.nlr.gov/issues"
};
</script>
<%= vite_javascript_tag "contact" %>
2 changes: 1 addition & 1 deletion source/layouts/_edit_me.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div style="text-align: center; font-style: italic; margin-top: 2rem;">
<a href="https://github.com/NatLabRockies/developer.nrel.gov/blob/main/source<%= current_page.source_file.gsub(app.source_dir.to_s, '') %>">Help improve this content</a>
<a href="https://github.com/NatLabRockies/developer.nlr.gov/blob/main/source<%= current_page.source_file.gsub(app.source_dir.to_s, '') %>">Help improve this content</a>
</div>
Loading