Skip to content
Merged
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
41 changes: 21 additions & 20 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const markdownItFootnote = require('markdown-it-footnote');
const { readableDate, htmlDateString, head, min, filterTagList } = require("./config/filters");
const { headingLinks } = require("./config/headingLinks");
const { contrastRatio, humanReadableContrastRatio } = require("./config/wcagColorContrast");
const privateLinks = require ('./config/privateLinksList.js');
const privateLinks = require('./config/privateLinksList.js');
const svgSprite = require("eleventy-plugin-svg-sprite");
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const yaml = require("js-yaml");
Expand All @@ -28,16 +28,17 @@ module.exports = function (config) {
config.addPassthroughCopy('robots.txt');

// Copy USWDS init JS so we can load it in HEAD to prevent banner flashing
config.addPassthroughCopy({'./node_modules/@uswds/uswds/dist/js/uswds-init.js': 'assets/js/uswds-init.js'});
config.addPassthroughCopy({ './node_modules/@uswds/uswds/dist/js/uswds-init.js': 'assets/js/uswds-init.js' });

// Specific scripts to guides
config.addPassthroughCopy("./assets/**/js/*");
config.addPassthroughCopy("./assets/_common/js/*");
config.addPassthroughCopy("./assets/_common/js/filters.js");
config.addPassthroughCopy("./assets/_common/js/issue-filters.js");

config.addPassthroughCopy({'./assets/_common/_img/favicons/favicon.ico': './favicon.ico' });
config.addPassthroughCopy({'./assets/_common/_img/favicons': './img/favicons' });
config.addPassthroughCopy({ './assets/_common/_img/favicons/favicon.ico': './favicon.ico' });
config.addPassthroughCopy({ './assets/_common/_img/favicons': './img/favicons' });
config.addPassthroughCopy({ './assets/resources/img/agency_logos': './img/agency_logos' });

// Set download paths
// Place files for download in assets/{guide}/dist/{filename.ext}
Expand Down Expand Up @@ -90,7 +91,7 @@ module.exports = function (config) {
return value.toUpperCase();
});

config.addFilter("capitalize", (value) =>{
config.addFilter("capitalize", (value) => {
return value.charAt(0).toUpperCase() + value.slice(1);
});

Expand Down Expand Up @@ -122,15 +123,15 @@ module.exports = function (config) {

// Override Footnote opener
markdownLibrary.renderer.rules.footnote_block_open = () => (
'<section class="footnotes">\n' +
'<ol class="footnotes-list">\n'
'<section class="footnotes">\n' +
'<ol class="footnotes-list">\n'
);

// Add icons for links with locked resources and external links
// https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md
// Token methods: https://github.com/markdown-it/markdown-it/blob/master/lib/token.js#L125
const openDefaultRender = markdownLibrary.renderer.rules.link_open ||
function(tokens, idx, options, env, self) {
function (tokens, idx, options, env, self) {
return self.renderToken(tokens, idx, options);
};

Expand All @@ -139,10 +140,10 @@ module.exports = function (config) {
let prefixIcon = '';
if (privateLinks.some((link) => token.attrGet('href').indexOf(link) >= 0)) {
prefixIcon = '<span class="usa-sr-only"> 18F only, </span>' +
'<svg class="usa-icon margin-top-2px margin-right-2px top-2px" ' +
'aria-hidden="true" role="img">' +
'<use xlink:href="#svg-lock_outline"></use>' +
'</svg>'
'<svg class="usa-icon margin-top-2px margin-right-2px top-2px" ' +
'aria-hidden="true" role="img">' +
'<use xlink:href="#svg-lock_outline"></use>' +
'</svg>'
}

// Check for external URLs. External means any site that is not a federal .gov url
Expand All @@ -166,7 +167,7 @@ module.exports = function (config) {
};

const defaultHtmlBlockRender = markdownLibrary.renderer.rules.html_block ||
function(tokens, idx, options, env, self) {
function (tokens, idx, options, env, self) {
return self.renderToken(tokens, idx, options);
};

Expand Down Expand Up @@ -213,26 +214,26 @@ module.exports = function (config) {

// Also need to add icon links to any html style links
const inlineHTMLDefaultRender = markdownLibrary.renderer.rules.html_inline ||
function(tokens, idx, options, env, self) {
function (tokens, idx, options, env, self) {
return self.renderToken(tokens, idx, options);
};

const linkOpenRE = /^<a[>\s]/i;
markdownLibrary.renderer.rules.html_inline = (tokens, idx, options, env, self) => {
const token=tokens[idx];
const token = tokens[idx];
if (linkOpenRE.test(token.content) && token.content.includes('http')) {
let content = token.content;

//Add private link icon
const hrefRE = /href=\"([^"]*)/;
// get the matching capture group
const contentUrl = content.match(hrefRE)[1];
const contentUrl = content.match(hrefRE)[1];
if (privateLinks.some((privateLink) => contentUrl.indexOf(privateLink) >= 0)) {
const prefixIcon = '<span class="usa-sr-only"> 18F only, </span>' +
'<svg class="usa-icon margin-top-2px margin-right-2px top-2px" ' +
'aria-hidden="true" role="img">' +
'<use xlink:href="#svg-lock_outline"></use>' +
'</svg>'
'<svg class="usa-icon margin-top-2px margin-right-2px top-2px" ' +
'aria-hidden="true" role="img">' +
'<use xlink:href="#svg-lock_outline"></use>' +
'</svg>'
content = content.replace('>', `> ${prefixIcon}`);
tokens[idx].content = content;
}
Expand Down
26 changes: 12 additions & 14 deletions agency-indexes/DoE/LC-IMS-MS_Feature_Finder.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,29 @@
"email": "david.long@pnnl.gov"
},
"date": {
"created": "2022-07-18",
"metadataLastUpdated": "2022-07-19"
"created": "2018-02-21",
"metadataLastUpdated": "2024-06-18"
},
"description": "LC-IMS-MS Feature Finder is a command line software application which searches for possible molecular ion signatures in multidimensional liquid chromatography, ion mobility spectrometry, and mass spectrometry data by clustering deisotoped peaks with similar monoisotopic mass values, charge states, elution times, and drift times. The software application includes an algorithm for detecting multiple conformations and co-eluting species in the ion mobility dimension. LC-IMS-MS Feature Finder is designed to create an output file with detected features that includes associated information about the detected features.",
"homepageURL": "https://www.pnnl.gov/available-technologies",
"laborHours": 0.0,
"languages": [
"C#"
],
"description": "The LC-IMS-MS Feature Finder finds LC-IMS-MS features and conformers using deisotoped features from DeconTools.\u00a0",
"laborHours": 2021.6,
"languages": [],
"name": "LC-IMS-MS Feature Finder",
"organization": "Pacific Northwest National Laboratory (PNNL)",
"permissions": {
"exemptionText": "This source code is restricted by patent and / or intellectual property law.",
"exemptionText": null,
"licenses": [
{
"URL": "https://www.pnnl.gov/available-technologies",
"name": "Other"
"URL": "https://api.github.com/licenses/apache-2.0",
"name": "Apache-2.0"
}
],
"usageType": "exemptByLaw"
"usageType": "openSource"
},
"repositoryURL": "https://www.pnnl.gov/available-technologies",
"repositoryURL": "https://github.com/PNNL-Comp-Mass-Spec/LC-IMS-MS-Feature-Finder",
"status": "Production",
"tags": [
"DOE CODE",
"Pacific Northwest National Laboratory (PNNL)"
]
],
"vcs": "git"
}
33 changes: 15 additions & 18 deletions agency-indexes/DoE/PRIME.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
{
"contact": {
"email": "copyrightadmin@sandia.gov"
"email": "david.long@pnnl.gov"
},
"date": {
"created": "2021-12-02",
"metadataLastUpdated": "2021-12-02"
"created": "2020-01-10",
"metadataLastUpdated": "2024-06-18"
},
"description": "SAND2021-0565 O PRIME is a modeling framework designed for the real-time characterization and forecasting of partially observed epidemics. The method is designed to help guide medical resource allocation in the early epoch of the outbreak. Characterization is the estimation of infection spread parameters using daily counts of symptomatic patients. The estimation problem is posed as one of Bayesian inference and solved using a Markov Chain Monte Carlo technique. The framework can accommodate multiple epidemic waves and can help identify different disease dynamics at the regional, state, and country levels. Examples are provided using publicly available COVID-19 data. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology & Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International Inc., for the U.S. Department of Energy\u2019s National Nuclear Security Administration under contract DE-NA0003525.",
"description": "The testbed \u201cPRIME\u201d is implemented as a typical end-to-end SCADA hierarchy, from the substation to the control center,\nusing a combination of a well-known power system simulator, power system control, hardware-in-the-loop (HIL) and\nindustry grade EMS software. Other cyber-physical testbeds have similar modularity. However, they lack flexibility in\nswapping out the software used for EMS, FEP, and the hardware used for RTU and relays as the computational\nsubsystems and the input/output (I/O) subsystems are tightly coupled and integrated. They tend to be tied to a single\nvendor. In our approach, the power system simulator and the hardware driver (analog output subsystems to drive HIL) are\ndecoupled and are interconnected through communication protocols as an interface. This provides an additional level of\nmodularity to the architecture creating an interoperable environment where power system simulators and hardware could\nbe interchanged as long as they support streaming of measurements/commands.",
"homepageURL": "https://availabletechnologies.pnnl.gov",
"laborHours": 0.0,
"languages": [
"Python"
],
"languages": [],
"name": "PRIME",
"organization": "Sandia National Laboratories (SNL)",
"organization": "Pacific Northwest National Laboratory (PNNL)",
"permissions": {
"exemptionText": null,
"exemptionText": "This source code is restricted by patent and / or intellectual property law.",
"licenses": [
{
"URL": "https://api.github.com/licenses/bsd-2-clause",
"name": "BSD-2-Clause"
"URL": "https://availabletechnologies.pnnl.gov",
"name": "Other"
}
],
"usageType": "openSource"
"usageType": "exemptByLaw"
},
"repositoryURL": "https://github.com/sandialabs/PRIME",
"status": "Production",
"repositoryURL": "https://availabletechnologies.pnnl.gov",
"status": "Development",
"tags": [
"DOE CODE",
"Sandia National Laboratories (SNL)"
],
"vcs": "git",
"version": "1"
"Pacific Northwest National Laboratory (PNNL)"
]
}
25 changes: 15 additions & 10 deletions agency-indexes/DoE/hypre.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
{
"contact": {
"email": "holdensanchez2@llnl.gov"
"email": "arroyo7@llnl.gov"
},
"date": {
"created": "2020-05-18",
"metadataLastUpdated": "2020-05-18"
"created": "2019-07-15",
"metadataLastUpdated": "2020-07-09"
},
"description": "Parallel solvers for sparse linear systems featuring multigrid methods.",
"laborHours": 458036.8,
"description": "hypre is a library of high performance preconditioners and solvers featuring multigrid methods for the solution of large, sparse linear systems of equations on massively parallel computers.\n",
"laborHours": 0.0,
"languages": [],
"name": "hypre",
"organization": "Lawrence Livermore National Laboratory (LLNL)",
"permissions": {
"exemptionText": null,
"licenses": [
{
"URL": "https://github.com/hypre-space/hypre/blob/master/COPYRIGHT",
"name": "Other"
"URL": "https://api.github.com/licenses/mit",
"name": "MIT"
},
{
"URL": "https://api.github.com/licenses/apache-2.0",
"name": "Apache-2.0"
}
],
"usageType": "openSource"
},
"repositoryURL": "https://github.com/hypre-space/hypre",
"status": "Development",
"repositoryURL": "https://github.com/hypre-space/hypre/releases/tag/v2.17.0",
"status": "Production",
"tags": [
"DOE CODE",
"Lawrence Livermore National Laboratory (LLNL)"
],
"vcs": "git"
"vcs": "git",
"version": "V2.17.0"
}
Loading
Loading