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
8 changes: 8 additions & 0 deletions data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Build-time data lives here. No runtime requests.

- integrations.json: Directory of integrations for filterable UI.
- caseStudies.json: Cards feed for homepage; preferably generated from blog.
- contributors.json: Generated under github/ by tasks; consumed directly.

These files are read by tasks/render_html.js to render static HTML.

10 changes: 10 additions & 0 deletions data/caseStudies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"id": "namecheap",
"title": "Namecheap",
"excerpt": "Namecheap surpasses $73M in BTC revenue with 1.1m transactions through BTCPay",
"hero": "/img/case-studies/namecheap-featured.png",
"url": "https://blog.btcpayserver.org/case-study-namecheap/",
"pdf": "/case-studies/namecheap.pdf"
}
]
38 changes: 38 additions & 0 deletions data/integrations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"id": "shopify",
"name": "Shopify",
"logo": "/img/shopify.svg",
"link": "https://docs.btcpayserver.org/ShopifyV2/",
"type": "plugin",
"tags": ["Hosted", "Ecommerce"],
"descriptionKey": "shopify-desc"
},
{
"id": "woocommerce",
"name": "WooCommerce",
"logo": "/img/woo.svg",
"link": "https://wordpress.org/plugins/btcpay-greenfield-for-woocommerce/",
"type": "plugin",
"tags": ["Self-hosted", "Ecommerce"],
"descriptionKey": "woocommerce-desc"
},
{
"id": "drupal",
"name": "Drupal",
"logo": "/img/drupal.svg",
"link": "https://docs.btcpayserver.org/Drupal/",
"type": "plugin",
"tags": ["Self-hosted", "Ecommerce"],
"descriptionKey": "drupal-desc"
},
{
"id": "zapier",
"name": "Zapier",
"logo": "/img/zapier.svg",
"link": "https://zapier.com/apps/btcpay-server/integrations",
"type": "integration",
"tags": ["Automation"],
"descriptionKey": "zapier-desc"
}
]
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"init": "npm-run-all clean -p d:*",
"d:translations": "node -r dotenv/config tasks/download_translations.js && cp transifex/resources/video.json transifex/download/video/en_GB.json && cp transifex/resources/website.json transifex/download/website/en_GB.json",
"d:contributors": "node -r dotenv/config tasks/download_contributors.js",
"d:case-studies": "node tasks/fetch_case_studies.js",
"start": "npm-run-all clean -p start:*",
"start:static": "onchange -i -k 'src/static/**/*' -- npm run build:static",
"start:scripts": "onchange -i -k 'src/js/**/*' -- npm run build:scripts",
Expand All @@ -20,14 +21,15 @@
"start:vtt": "onchange -i -k 'src/vtt/**/*' 'tasks/{render_vtt,util}.js' -- npm run build:vtt",
"start:serve": "browser-sync start --no-open --watch --server dist",
"build": "npm-run-all clean -p build:*",
"build:static": "cp -rT src/static dist",
"build:static": "node tasks/copy_static.js",
"build:scripts": "cp -r src/js dist",
"build:styles": "cp -r src/css dist",
"build:html": "node tasks/render_html.js",
"build:vtt": "node tasks/render_vtt.js",
"optimize": "npm-run-all -p optimize:*",
"optimize:styles": "csso dist/css/styles.css --output dist/css/styles.css",
"optimize:page-styles": "csso dist/css/page-styles.css --output dist/css/page-styles.css",
"optimize:images": "node tasks/optimize_images.js",
"prod": "NODE_ENV=production npm-run-all build optimize",
"netlify": "npm run init && npm run prod"
},
Expand Down
Loading