Skip to content

Commit

Permalink
Cleanup and styling for papers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbum committed Jan 9, 2024
1 parent fe25a96 commit 058b63e
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 194 deletions.
58 changes: 0 additions & 58 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,67 +78,9 @@ module.exports = function (eleventyConfig) {
'docs/src/assets/article-content': 'content/img',
});
eleventyConfig.addPassthroughCopy({ 'docs/src/css/fonts': 'fonts' });
// eleventyConfig.addPassthroughCopy({
// 'components/base-css/dist/themes': 'css',
// });
// eleventyConfig.addPassthroughCopy({
// 'components/accordion/template.html': 'css/accordion.html',
// });
// eleventyConfig.addPassthroughCopy({
// 'components/link-grid/template.html': 'css/link-grid.html',
// });
// eleventyConfig.addPassthroughCopy({
// 'components/step-list/template.html': 'css/step-list.html',
// });
eleventyConfig.addPassthroughCopy({ '_site_dist/*': '/' });
eleventyConfig.addPassthroughCopy({ '_build_dist/*': 'builds' });
// eleventyConfig.addPassthroughCopy({
// 'components/icons/dist/svg': 'cagov-icons-svg',
// });
// eleventyConfig.addPassthroughCopy({ 'components/icons/src/fonts': 'fonts' });

/*
// generate allfiles?
var fileList = [];
// for all the .md files in ./docs (recursively)
// add the url to the list
eleventyConfig.addCollection('scorepages', function (collection) {
// console.log("--> collection.stuff");
// console.trace();
var fileList = [];
let output = [];
collection.getAll().forEach((item) => {
var url = item.url;
// console.log("considering "+url);
if (url.match(/^\/((content-design|human-centered-design|product-management)\/)?[\w-]+\/$/)) {
var outputPath = url;
var inputPath = './docs/pages'+url;
// replace trailing / with ".md" on inputPath
if (url.match(/\/$/)) {
// remove last character of inputPath
inputPath = inputPath.slice(0, -1);
inputPath = inputPath + '.md';
}
// if inputPath doesn't exist, log it
if (fs.existsSync(inputPath)) {
// console.log(" will score -> "+inputPath);
fileList.push({outputPath:outputPath, inputPath:inputPath});
// item.inputPath = inputPath;
// item.outputPath = outputPath;
// output.push(item);
}
} else if (url.match(/^\/$/)) {
// console.log(" will score -> "+inputPath);
fileList.push({outputPath:url, inputPath:'./docs/site/homepage.njk'});
}
});
let abbrevFileList = fileList.filter(item => { return item.outputPath != "_site/blog/index.html";})
fs.writeFileSync('./_site_dist/allFiles.json',JSON.stringify(abbrevFileList),'utf8');
return output;
});
*/

eleventyConfig.on("eleventy.after", async ({ results }) => {
// Generate map of all HTML files for tests.
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/data/forecasting-community-water-system-outages.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: Forecasting community water system outages
description: ODI used data to forecast the impact of drought on community water systems.
headerlabel: Papers
headericon:
headericon: paper
---

<p class="text-lead">We forecasted the impact of drought on community water systems.</p>

[Monica G. Bobra](https://orcid.org/0000-0002-5662-9604)¹, Dan Wang², Hung Bui², Esa Eslami¹, Kimberly Hicks¹, Eric Zúñiga², Arman Madani¹
[Monica G. Bobra](https://orcid.org/0000-0002-5662-9604)¹ <a href="https://orcid.org/0000-0002-5662-9604"><img class="orcid-cite" src="/img/orcid-icon.png"/></a>, Dan Wang², Hung Bui², Esa Eslami¹, Kimberly Hicks¹, Eric Zúñiga², Arman Madani¹
¹ California Office of Data and Innovation, 401 I Street, Ste 200, Sacramento, CA 95814
² California State Water Resources Control Board, 1001 I Street, 24th Floor, Sacramento, CA 95814

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/how-to-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Here are our recommendations for how to use each type of resource on the Hub.
</div>
<div class="howtouse-tile">
<div class="howtouse-tile-header">
<div class="header-icon header-templates">&nbsp;</div>
<div class="header-icon header-paper">&nbsp;</div>
<h2>Papers</h2>
</div>
<div class="howtouse-tile-copy">We share the details about how we got things done in papers. If you want to learn exactly how we did something, read papers about our projects.</div>
Expand Down
Loading

0 comments on commit 058b63e

Please sign in to comment.