Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Prep work for deploying to cloud.gov #339

Open
wants to merge 4 commits into
base: staging
Choose a base branch
from
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
1 change: 1 addition & 0 deletions Staticfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
root: _site
2 changes: 2 additions & 0 deletions _config-no-cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
destination: _site/dashboard
baseurl: /dashboard
2 changes: 0 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ description: "18F builds effective, user-centric digital services focused on the
sass:
sass_dir: assets/_sass

destination: _site/dashboard
baseurl: /dashboard
#baseurl: localhost:4000
exclude:
- CONTRIBUTING.md
Expand Down
10 changes: 5 additions & 5 deletions assets/css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
/* comment out when working locally */
@font-face {
font-family: "18f";
src:url("/dashboard/assets/fonts/18f-font.eot");
src:url("/dashboard/assets/fonts/18f-font.eot?#iefix") format("embedded-opentype"),
url("/dashboard/assets/fonts/18f-font.woff") format("woff"),
url("/dashboard/assets/fonts/18f-font.ttf") format("truetype"),
url("/dashboard/assets/fonts/18f-font.svg#untitled-font-1") format("svg");
src:url("/assets/fonts/18f-font.eot");
src:url("/assets/fonts/18f-font.eot?#iefix") format("embedded-opentype"),
url("/assets/fonts/18f-font.woff") format("woff"),
url("/assets/fonts/18f-font.ttf") format("truetype"),
url("/assets/fonts/18f-font.svg#untitled-font-1") format("svg");
font-weight: normal;
font-style: normal;

Expand Down
9 changes: 4 additions & 5 deletions assets/js/preview-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function insertYmlInHtml (yml) {
}

function compileLiquidTemplate () {
var templateSrc = "---\nlayout: bare\n---\n<!--\n Do the other things here. Basically, we now have two objects inside this loop:\n - the page object which has anything in a page's front matter\n - the project object, which is the project inside _data/projects.yml\n whose `project` field matches thie page's `title` field.\n-->\n\n{% assign project = page.project %}<section class=\"dashboard-project\">\n <nav><a href=\"{{ site.baseurl }}/\"><i class=\"fa fa-chevron-left\"></i><i class=\"fa fa-chevron-left\"></i> back to main dashboard</a></nav>\n <h1>{{ project.full_name }} <span class=\"status {{ project.stage }}\">{% if project.stage %}{{ project.stage }}{% else %}unknown{% endif %}</span></h1>\n <p>{% if project.description %}{{ project.description }}{% else %}Project description coming soon.{% endif %}</p>\n <p>Contact:\n {% capture contact %}{{ project.contact }}{% endcapture %}\n {% assign contact = project.contact %}\n {% for c in contact %}\n {% if c.url && c.text %}\n <a href=\"{{ c.url }}\">{{ c.text }}</a>\n {% else %}\n {% if c contains '@' %}\n {% assign mail = c | remove_first: 'mailto:' %}\n <a href=\"mailto:{{mail}}\">{{mail}}</a>\n {% else %}\n {% assign url = c | remove_first: 'https://www.github.com/' | remove_first: 'https://github.com/' %}\n <a href=\"https://www.github.com/{{url}}\">{{url}}</a>\n {% endif %}\n {% endif %}\n {% endfor %}\n </p>\n {% capture blog %}{{ project.blog }}{% endcapture %}\n {% assign tags = blog | split: ',' %}\n {% if tags.size > 0 %}\n <p>\n <i class=\"fa fa-newspaper-o\"></i> /\n <span class=\"blog-tags\" itemprop=\"keywords\">\n {% for t in tags %}\n <a href=\"https://18f.gsa.gov/tags/{{ t }}\">News</a>\n /\n {% endfor %}\n </span>\n </p>\n {% endif %}\n</section>\n\n<section class=\"dashboard-info-area\">\n <div>\n <!-- impact -->\n {% if project.impact %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> impact</h1>\n <p>{{ project.impact }}</p>\n </div>\n {% endif %}\n\n <!-- partners -->\n {% if project.partners %}\n <div>\n {% if project.partners.size > 1 %}\n <h1><i class=\"fa fa-chevron-right\"></i> partners</h1>\n {% else %}\n <h1><i class=\"fa fa-chevron-right\"></i> partner</h1>\n {% endif %}\n <ul>\n {% include list-partners.html style=\"list\" %}\n </ul>\n </div>\n {% endif %}\n\n <!-- milestones -->\n {% if project.milestones %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> milestones</h1>\n <ul>\n {% for item in project.milestones %}\n <li>{{ item }}</li>\n {% endfor %}\n </ul>\n </div>\n {% endif %}\n\n <!-- code -->\n {% if project.github %}\n <div class=\"dashboard-code\">\n <h1><i class=\"fa fa-chevron-right\"></i> code</h1>\n {% for url in project.github %}\n {% if url.name && url.description %}\n {% assign full_repo_name = url.name %}\n {% assign repo_name = url.name | split: \"/\" | last %}\n {% assign repo_desc = url.description %}\n {% else %}\n {% assign full_repo_name = url %}\n {% assign repo_name = url | split: \"/\" | last %}\n {% endif %}\n <div class=\"{{ repo_name | replace: \".\", \"-\" }} repo\">\n <h1>\n {% if project.github | first %}\n <i class=\"fa fa-github-alt\"></i> <a class=\"github-url\" href=\"https://github.com/{{ full_repo_name }}\">{{ full_repo_name }}</a>\n {% else %}\n <i class=\"fa fa-github-alt\"></i> <a href=\"https://github.com/{{ full_repo_name }}\">{{ full_repo_name }}</a>\n {% endif %}\n </h1>\n {% if repo_desc %}\n <p>{{ repo_desc }}</p>\n {% endif %}\n <ul>\n <li class=\"issues\"><i class=\"fa fa-exclamation-circle\"></i> Issues: </li>\n <li class=\"stars\"><i class=\"fa fa-star\"></i> Stars: </li>\n <li class=\"forks\"><i class=\"fa fa-code-fork\"></i> Forks: </li>\n {% for license in project.licenses %}{% if license[0] == repo_name %}\n {% capture branch %}{% if project.licenseBranch %}{{ project.licenseBranch | map: repo_name }}{% else %}master{%endif%}{% endcapture %}\n <li><i class=\"fa fa-legal {{ license[0] }}\"></i> License: <a href=\"https://github.com/{{ full_repo_name }}/blob/{{ branch }}/LICENSE.md\">{{ license[1] }}</a></li>\n {% endif %}\n {% endfor %}\n </ul>\n </div>\n {% endfor %}\n </div>\n {% endif %}\n<!--\n {% if project.team.size > 0 %}\n <div>\n <h1>Team:</h1>\n <ul class=\"staff\">\n {% capture team %}{{ project.team }}{% endcapture %}\n {% assign team = team | split: ',' %}\n {% for name in team %}\n <li class=\"{{ name | replace: ' ', '' }}\"></li>\n {% endfor %}\n </ul>\n </div>\n {% endif %}\n-->\n\n {% if project.links %}\n\n {% assign has_api = false %}\n {% assign has_process = false %}\n {% for item in project.links %}\n {% if item.category == 'api' %}\n {% assign has_api = true %}\n {% endif %}\n {% if item.category == 'process' %}\n {% assign has_process = true %}\n {% endif %}\n {% endfor %}\n\n <!-- api links -->\n {% if has_api == true %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> api links</h1>\n <ul>{% for item in project.links %}\n {% if item.category == 'api' %}\n <li><a href=\"{{ item.url }}\">{{ item.text }}</a></li>{% endif %}{% endfor %}\n </ul>\n </div>\n {% endif %}\n\n <!-- process links -->\n {% if has_process == true %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> process links</h1>\n <ul>{% for item in project.links %}\n {% if item.category == 'process' %}\n <li><a href=\"{{ item.url }}\">{{ item.text }}</a></li>{% endif %}{% endfor %}\n </ul>\n </div>\n {% endif %}\n\n <!-- additional links -->\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> related links</h1>\n <ul>{% for item in project.links %}\n {% if item.category != 'api' and item.category != 'process' %}\n <li>{% if item.url %}<a href=\"{{ item.url }}\">{{ item.text }}</a></li>{% else %}<a href=\"{{ item }}\">{{ item }}</a>{% endif %}</li>\n {% endif %}{% endfor %}\n </ul>\n </div>\n\n <!-- end of project links section -->\n {% endif %}\n\n <!-- errors\n {% if project.errors %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> .about.yml errors</h1>\n <ul>{% for item in project.errors %}\n <li>{{ item }}</li>{% endfor %}\n </ul>\n </div>\n {% endif %}\n -->\n\n </div>\n</section>\n\n\n\n<script src=\"{{site.baseurl}}/assets/js/underscore.js\"></script>\n<script src=\"{{site.baseurl}}/assets/js/main.js\"></script>\n\n{{ content }}\n";
var templateSrc = "---\nlayout: bare\n---\n<!--\n Do the other things here. Basically, we now have two objects inside this loop:\n - the page object which has anything in a page's front matter\n - the project object, which is the project inside _data/projects.yml\n whose `project` field matches thie page's `title` field.\n-->\n\n{% assign project = page.project %}<section class=\"dashboard-project\">\n <nav><a href=\"{{ site.baseurl }}/\"><i class=\"fa fa-chevron-left\"></i><i class=\"fa fa-chevron-left\"></i> back to main dashboard</a></nav>\n <h1>{{ project.full_name }} <span class=\"status {{ project.stage }}\">{% if project.stage %}{{ project.stage }}{% else %}unknown{% endif %}</span></h1>\n <p>{% if project.description %}{{ project.description }}{% else %}Project description coming soon.{% endif %}</p>\n <p>Contact:\n {% capture contact %}{{ project.contact }}{% endcapture %}\n {% assign contact = project.contact %}\n {% for c in contact %}\n {% if c.url && c.text %}\n <a href=\"{{ c.url }}\">{{ c.text }}</a>\n {% else %}\n {% if c contains '@' %}\n {% assign mail = c | remove_first: 'mailto:' %}\n <a href=\"mailto:{{mail}}\">{{mail}}</a>\n {% else %}\n {% assign url = c | remove_first: 'https://www.github.com/' | remove_first: 'https://github.com/' %}\n <a href=\"https://www.github.com/{{url}}\">{{url}}</a>\n {% endif %}\n {% endif %}\n {% endfor %}\n </p>\n {% capture blog %}{{ project.blogTag | default: project.blog }}{% endcapture %}\n {% assign tags = blog | split: ',' %}\n {% if tags.size > 0 %}\n <p>\n <i class=\"fa fa-newspaper-o\"></i> /\n <span class=\"blog-tags\" itemprop=\"keywords\">\n {% for t in tags %}\n <a href=\"https://18f.gsa.gov/tags/{{ t | strip }}\">News</a>\n /\n {% endfor %}\n </span>\n </p>\n {% endif %}\n</section>\n\n<section class=\"dashboard-info-area\">\n <div>\n <!-- impact -->\n {% if project.impact %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> impact</h1>\n <p>{{ project.impact }}</p>\n </div>\n {% endif %}\n\n <!-- partners -->\n {% if project.partners %}\n <div>\n {% if project.partners.size > 1 %}\n <h1><i class=\"fa fa-chevron-right\"></i> partners</h1>\n {% else %}\n <h1><i class=\"fa fa-chevron-right\"></i> partner</h1>\n {% endif %}\n <ul>\n {% include list-partners.html style=\"list\" %}\n </ul>\n </div>\n {% endif %}\n\n <!-- milestones -->\n {% if project.milestones %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> milestones</h1>\n <ul>\n {% for item in project.milestones %}\n <li>{{ item }}</li>\n {% endfor %}\n </ul>\n </div>\n {% endif %}\n\n <!-- code -->\n {% if project.github %}\n <div class=\"dashboard-code\">\n <h1><i class=\"fa fa-chevron-right\"></i> code</h1>\n {% for url in project.github %}\n {% if url.name && url.description %}\n {% assign full_repo_name = url.name %}\n {% assign repo_name = url.name | split: \"/\" | last %}\n {% assign repo_desc = url.description %}\n {% else %}\n {% assign full_repo_name = url %}\n {% assign repo_name = url | split: \"/\" | last %}\n {% endif %}\n <div class=\"{{ repo_name | replace: \".\", \"-\" }} repo\">\n <h1>\n {% if project.github | first %}\n <i class=\"fa fa-github-alt\"></i> <a class=\"github-url\" href=\"https://github.com/{{ full_repo_name }}\">{{ full_repo_name }}</a>\n {% else %}\n <i class=\"fa fa-github-alt\"></i> <a href=\"https://github.com/{{ full_repo_name }}\">{{ full_repo_name }}</a>\n {% endif %}\n </h1>\n {% if repo_desc %}\n <p>{{ repo_desc }}</p>\n {% endif %}\n <ul>\n <li class=\"issues\"><i class=\"fa fa-exclamation-circle\"></i> Issues: </li>\n <li class=\"stars\"><i class=\"fa fa-star\"></i> Stars: </li>\n <li class=\"forks\"><i class=\"fa fa-code-fork\"></i> Forks: </li>\n {% for license in project.licenses %}{% if license[0] == repo_name %}\n {% capture branch %}{% if project.licenseBranch %}{{ project.licenseBranch | map: repo_name }}{% else %}master{%endif%}{% endcapture %}\n <li><i class=\"fa fa-legal {{ license[0] }}\"></i> License: <a href=\"https://github.com/{{ full_repo_name }}/blob/{{ branch }}/LICENSE.md\">{{ license[1] }}</a></li>\n {% endif %}\n {% endfor %}\n </ul>\n </div>\n {% endfor %}\n </div>\n {% endif %}\n<!--\n {% if project.team.size > 0 %}\n <div>\n <h1>Team:</h1>\n <ul class=\"staff\">\n {% capture team %}{{ project.team }}{% endcapture %}\n {% assign team = team | split: ',' %}\n {% for name in team %}\n <li class=\"{{ name | replace: ' ', '' }}\"></li>\n {% endfor %}\n </ul>\n </div>\n {% endif %}\n-->\n\n {% if project.links %}\n\n {% assign has_api = false %}\n {% assign has_process = false %}\n {% for item in project.links %}\n {% if item.category == 'api' %}\n {% assign has_api = true %}\n {% endif %}\n {% if item.category == 'process' %}\n {% assign has_process = true %}\n {% endif %}\n {% endfor %}\n\n <!-- api links -->\n {% if has_api == true %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> api links</h1>\n <ul>{% for item in project.links %}\n {% if item.category == 'api' %}\n <li><a href=\"{{ item.url }}\">{{ item.text }}</a></li>{% endif %}{% endfor %}\n </ul>\n </div>\n {% endif %}\n\n <!-- process links -->\n {% if has_process == true %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> process links</h1>\n <ul>{% for item in project.links %}\n {% if item.category == 'process' %}\n <li><a href=\"{{ item.url }}\">{{ item.text }}</a></li>{% endif %}{% endfor %}\n </ul>\n </div>\n {% endif %}\n\n <!-- additional links -->\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> related links</h1>\n <ul>{% for item in project.links %}\n {% if item.category != 'api' and item.category != 'process' %}\n <li>{% if item.url %}<a href=\"{{ item.url }}\">{{ item.text }}</a></li>{% else %}<a href=\"{{ item }}\">{{ item }}</a>{% endif %}</li>\n {% endif %}{% endfor %}\n </ul>\n </div>\n\n <!-- end of project links section -->\n {% endif %}\n\n <!-- errors\n {% if project.errors %}\n <div>\n <h1><i class=\"fa fa-chevron-right\"></i> .about.yml errors</h1>\n <ul>{% for item in project.errors %}\n <li>{{ item }}</li>{% endfor %}\n </ul>\n </div>\n {% endif %}\n -->\n\n </div>\n</section>\n\n\n\n<script src=\"{{site.baseurl}}/assets/js/underscore.js\"></script>\n<script src=\"{{site.baseurl}}/assets/js/main.js\"></script>\n\n{{ content }}\n";
templateSrc = templateSrc.replace(/---[\s\S]*---/, '');
templateSrc = templateSrc.replace(/include (.*?) /g, "include '$1' ");

Expand Down Expand Up @@ -870,13 +870,12 @@ module.exports={
"json-schema": "^0.2.2",
"yamljs": "^0.2.4"
},
"gitHead": "2b42ad69bec7b12a2a66e541a24885e827b32479",
"readme": "# `.about.yml` schema and tools\n\nThe `.about.yml` mechanism allows a project to publish and maintain metadata\nthat can be easily maintained by project owners, that is visible and\naccessible to interested parties, and that can be harvested and processed by\ntools and automated systems. It is implemented using the\n[YAML](https://en.wikipedia.org/wiki/YAML) format.\n\nThe [18F Team API](https://team-api.18f.gov/public/api/) is the original,\nprimary consumer of this information, which in turn provides data for:\n\n- [18F Hub](https://github.com/18F/hub)\n- [18F Dashboard](https://github.com/18F/dashboard)\n- [18F.gsa.gov](https://github.com/18F/18f.gsa.gov)\n\nWe hope that every active 18F project, [working\ngroup](https://pages.18f.gov/grouplet-playbook/working-groups/), and\n[guild](https://pages.18f.gov/grouplet-playbook/guilds/) will publish\n`.about.yml` files in their respective repositories. By feeding this\ninformation through the Team API server and into our Hub, Dashboard, and main\nweb site, cultivation of `.about.yml` files will help make our activity more\neasily transparent to our teammates, and to anyone outside our team who wishes\nto discover what we're working on (and how we work).\n\n## Public domain\n\nThis project is in the worldwide [public domain](LICENSE.md). As stated in [CONTRIBUTING](CONTRIBUTING.md):\n\n> This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).\n>\n> All contributions to this project will be released under the CC0\n>dedication. By submitting a pull request, you are agreeing to comply\n>with this waiver of copyright interest.\n",
"readmeFilename": "README.md",
"_id": "[email protected]",
"_shasum": "1d659021c46b3887d0198f6e5b59e8159fbb129c",
"_from": "git+https://github.com/18F/about-yml-npm.git",
"_resolved": "git+https://github.com/18F/about-yml-npm.git#2b42ad69bec7b12a2a66e541a24885e827b32479"
"_shasum": "5e38544ef51846be63b1ff2d3524e3446831f486",
"_resolved": "git+https://github.com/18F/about-yml-npm.git#2b42ad69bec7b12a2a66e541a24885e827b32479",
"_from": "about-yml-validator@git+https://github.com/18F/about-yml-npm.git"
}

},{}],7:[function(require,module,exports){
Expand Down
2 changes: 1 addition & 1 deletion go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def init
end

def install_gems
exec_cmd 'bundle install'
exec_cmd 'bundle install --without development'
exec_cmd 'git add Gemfile.lock'
end

Expand Down
9 changes: 9 additions & 0 deletions manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
memory: 64M
instances: 1
applications:
- name: dashboard
buildpack: https://github.com/cloudfoundry-incubator/staticfile-buildpack.git
env:
FORCE_HTTPS: true
domain: 18f.gov