Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5. News section content migration #8

Closed
wants to merge 3 commits into from
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
397 changes: 239 additions & 158 deletions .eleventy.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,4 @@ web_modules/
_site
public
node_modules
.idea
10 changes: 6 additions & 4 deletions _data/assetPaths.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"admin.js": "/assets/js/admin-OYJBR6FH.js",
"admin.map": "/assets/js/admin-OYJBR6FH.js.map",
"app.js": "/assets/js/app-ZQYILJ3O.js",
"app.map": "/assets/js/app-ZQYILJ3O.js.map",
"anchor.min.js": "/assets/js/anchor.min.js",
"app.js": "/assets/js/app-SPESETTN.js",
"app.map": "/assets/js/app-SPESETTN.js.map",
"uswds.js": "/assets/js/uswds-init.js",
"styles.css": "/assets/styles/styles-BBYPEDQ2.css",
"styles.map": "/assets/styles/styles-BBYPEDQ2.css.map"
"prism-atom.css": "/assets/styles/prism-atom-dark.css",
"styles.css": "/assets/styles/styles-2K2P2X4U.css",
"styles.map": "/assets/styles/styles-2K2P2X4U.css.map"
}
45 changes: 41 additions & 4 deletions _data/collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,53 @@
# This is simple, hopefully provides you with a good enough example to make changes as needed
- name: GSA
url: https://gsa.gov
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus interdum pellentesque. Integer eu vehicula elit. Sed cursus magna in dui suscipit rhoncus.
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus interdum pellentesque. Integer eu vehicula elit. Sed cursus magna in dui suscipit rhoncus.

- name: USDA
url: http://usda.gov/
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus interdum pellentesque. Integer eu vehicula elit. Sed cursus magna in dui suscipit rhoncus.
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus interdum pellentesque. Integer eu vehicula elit. Sed cursus magna in dui suscipit rhoncus.

- name: Performance.gov
url: http://performance.gov/
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus interdum pellentesque. Integer eu vehicula elit. Sed cursus magna in dui suscipit rhoncus.
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus interdum pellentesque. Integer eu vehicula elit. Sed cursus magna in dui suscipit rhoncus.

- name: Login.gov
url: https://login.gov
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus interdum pellentesque. Integer eu vehicula elit. Sed cursus magna in dui suscipit rhoncus.
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus interdum pellentesque. Integer eu vehicula elit. Sed cursus magna in dui suscipit rhoncus.



- label: cloud.gov knowledge base
name: kbarticles
folder: content/knowledge-base/articles/
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
editor:
preview: false
fields:
- { label: 'Layout', name: 'layout', widget: 'hidden', default: 'layouts/post' }
- { label: 'Tags', name: 'tags', widget: 'hidden', default: [ 'posts' ] }
- { label: "Title", name: "title", widget: "string" }
- { label: "Author", name: "author", widget: "string" }
- {
label: "Publish Date",
name: "date",
widget: "datetime",
format: 'YYYY-MM-DD',
dateFormat: 'YYYY-MM-DD',
timeFormat: false
}
- {
label: "Image",
name: "image",
widget: "image",
allow_multiple: false,
required: false
}
- {
label: "Image Alt Text",
name: "image_alt_text",
widget: "string",
required: false
}
- { label: "Body", name: "body", widget: "markdown" }
125 changes: 125 additions & 0 deletions _data/pages/navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
primary:
- name: Features
url: /content/features/
- name: Success Stories
url: /content/success-stories/
- name: Documentation
url: /content/documentation/
- name: Pricing
url: /content/pricing/
- name: Knowledge Base
url: /content/knowledge-base/
- name: Contact
url: /content/contact/
# Look inside assets/js/index.js to see that how this url changes depending on enviroment
secondary:
- name: Platform Status
url: https://cloudgov.statuspage.io/
- name: Login
url: https://pages.cloud.gov
external: true
class: usa-button usa-button-secondary nav-button

footer:
- text: Home
href: /content/
- text: Features
href: /content/features/
- text: Success Stories
href: /content/success-stories/
- text: Documentation
href: /content/documentation/
- text: Pricing
href: /content/pricing/
- text: Knowledge Base
href: /content/knowledge-base/
- text: Contact
href: /content/contact/
- text: Manage Sites
href: https://pages.cloud.gov
external: true

sidenav:
- text: Using Pages
href: /content/documentation/
subfolderitems:
- text: Why use Pages?
href: /content/documentation/why-use-content/
- text: Access and permissions
href: /content/documentation/access-permissions/
- text: Adding a user to an Organization
href: /content/documentation/adding-users/
- text: Before you launch
href: /content/documentation/before-you-launch/
- text: Getting started with a sandbox
href: /content/documentation/sandbox/
- text: "21st Century IDEA"
href: /content/documentation/21st-century-idea/
- text: Getting started with Decap CMS
href: /content/documentation/getting-started-with-decap-cms/
- text: Included with Pages
href: /content/documentation/included-with-content/
- text: Instructional demos
href: /content/documentation/instructional-demos/
- text: Builds and previews
href: /content/documentation/previews/
- text: Custom domains
href: /content/documentation/custom-domains/
- text: Migration guide
href: /content/documentation/migration-guide/
- text: Adding forms
href: /content/documentation/forms/
- text: Adding search
href: /content/documentation/search/
- text: Site templates
href: /content/documentation/templates/
- text: Customizing your site
href: /content/documentation/customization/
- text: Using the markup languages
href: /content/documentation/resources/
- text: Content guide
href: /content/documentation/content-guide/
- text: Custom headers
href: /content/documentation/custom-headers/
- text: Federalist.json
href: /content/documentation/federalist-json/
- text: For security and compliance
href: /content/documentation/
subfolderitems:
- text: Security and Compliance
href: /content/documentation/security-and-compliance
- text: Customer responsibilities
href: /content/documentation/customer-responsibilities/
- text: FedRAMP Tracker
href: /docs/overview/fedramp-tracker/
- text: Automated Site Reports
href: /content/documentation/automated-site-reports/
- text: For developers
href: /content/documentation/
subfolderitems:
- text: How builds work
href: /content/documentation/how-builds-work/
- text: Specific build errors
href: /content/documentation/build-errors/
- text: Environment variables on builds
href: /content/documentation/env-vars-on-content-builds/
- text: Pages and cloud.gov
href: /content/documentation/cloud-gov/
- text: Node on Pages
href: /content/documentation/node-on-content/
- text: RVM on Pages
href: /content/documentation/rvm-on-content/
- text: Bundler on Pages
href: /content/documentation/bundler-on-content/
- text: Caching Build Dependencies
href: /content/documentation/cache-dependencies/
- text: Supported site engines
href: /content/documentation/supported-site-engines/
- text: Large file handling
href: /content/documentation/large-file-handling/
- text: Renaming your site's repository
href: /content/documentation/renaming-site-repository/
- text: Monorepos on Pages
href: /content/documentation/monorepos-on-content/
- text: External tools and resources
href: /content/documentation/external-tools-and-resources/
14 changes: 14 additions & 0 deletions _data/pages/templates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

items:
- title: Eleventy (11ty) - U.S. Web Design System v3.0
docs_url: https://github.com/cloud-gov/pages-uswds-11ty
preview_url: https://uswds-11ty.pages.cloud.gov/
img: https://pages.cloud.gov/images/pages-uswds-v3-11ty-thumbnail.png
order: 2
summary: ""
- title: Gatsby - U.S. Web Design System v2.0
docs_url: https://github.com/cloud-gov/pages-uswds-gatsby
preview_url: https://uswds-gatsby.pages.cloud.gov/
img: https://pages.cloud.gov/images/pages-uswds-v2-gatsby-thumbnail.png
order: 3
summary: ""
36 changes: 36 additions & 0 deletions _data/pricing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- package_name: Sandbox
description: A sandbox environment to run experiments to see if cloud.gov works for your team.
price: <h3>Free</h3>
memory: Limited to 1GB memory
production: Non-production systems<br /> systems cleared every 90 days
number_of_systems: Single environment
domain_names: Non-production domain names
sign_up: <a href="https://www.cloud.gov/sign-up/" class="usa-button">Get started</a><br/><a href="/docs/pricing/free-limited-sandbox/" class="small-link">About Sandbox packages &rarr;</a>
image: pricing-sandbox.svg
- package_name: Prototyping
description: Self-service workspaces for your organization to build non-production systems.
price: <h3><sup>$</sup>1780 &#47; month</h3><span>for entire organization</span>
memory: <sup>$</sup>130 &#47; GB memory per month
image: pricing-prototype.svg
production: Non-production systems
number_of_systems: An environment for each of your teams
domain_names: Non-production domain names
sign_up: <a href="mailto:[email protected]?subject=Purchasing%20Prototyping%20Package" class="usa-button" id="Prototyping-cta">Contact us</a><br/>
- package_name: FISMA Low
description: Production environment ideal for hosting public information.
price: <h3><sup>$</sup>2380 &#47; month</h3><span>FISMA Low system</span>
memory: <sup>$</sup>130 &#47; GB memory per month
production: One system
number_of_systems: Multiple environments (e.g. dev, stage, prod) supporting one system
domain_names: Support for your agency domain name
sign_up: <a href="mailto:[email protected]?subject=Purchasing%20FISMA%20Low%20Package" class="usa-button" id="FISMA-cta">Contact us</a><br/>
image: pricing-fisma-moderate.svg
- package_name: FISMA Moderate
description: Production environment for systems that need assurances in confidentiality, integrity, and availability.
price: <h3><sup>$</sup>10700 &#47; month</h3>FISMA Moderate <br /><span>DoD Impact Level 2 system</span>
memory: <sup>$</sup>130 &#47; GB memory per month
production: One system
number_of_systems: Multiple environments (e.g. dev, stage, prod) supporting one system
domain_names: Support for your agency domain name
sign_up: <a href="mailto:[email protected]?subject=Purchasing%20FISMA%20Package" class="usa-button" id="FISMA-cta">Contact us</a><br/>
image: pricing-fisma-moderate.svg
35 changes: 35 additions & 0 deletions _data/services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: aws-rds
page-name: relational-database
description: "Persistent, relational databases using Amazon RDS"
status: "Production"
source-code: https://github.com/cloud-gov/aws-broker
- name: aws-elasticache
description: AWS ElastiCache Redis 5.0.6 as a service
status: Production
- name: aws-elasticsearch
description: AWS Elasticsearch 7.4 as a service
status: Production
- name: cdn-route
description: "Custom domains, CDN caching, and TLS certificates with automatic renewal"
status: "Deprecated"
source-code: https://github.com/cloud-gov/cf-cdn-service-broker
- name: external-domain-service
description: "Custom domains and TLS certificates with automatic renewal"
status: "Production"
source-code: https://github.com/cloud-gov/external-domain-broker
- name: cloud-gov-identity-provider
description: "Authenticate cloud.gov users in your app"
status: "Production"
source-code: https://github.com/cloudfoundry-community/uaa-credentials-broker
- name: cloud-gov-service-account
description: "cloud.gov service accounts for automated access by programs"
status: "Production"
source-code: https://github.com/cloudfoundry-community/uaa-credentials-broker
- name: custom-domains
description: "Custom domains and TLS certificates with automatic renewal"
status: "Deprecated"
source-code: https://github.com/cloud-gov/cf-domain-broker-alb
- name: s3
description: "Amazon S3 provides developers with secure, durable, highly-scalable object storage"
status: "Production"
source-code: https://github.com/cloudfoundry-community/s3-broker
Loading
Loading