Skip to content

Commit

Permalink
Merge pull request #8073 from ballerina-platform/deploy-website-2d99d…
Browse files Browse the repository at this point in the history
…711d936a7268504484a706d26e11d1c33cb

[Automated] Deploy website
  • Loading branch information
sm1990 authored Oct 19, 2023
2 parents 319c1cb + a2f814e commit 776fd79
Show file tree
Hide file tree
Showing 2,502 changed files with 12,318 additions and 6,312 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/bbe/convertMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ const generate = async (examplesDir, outputDir) => {
codeSnippetMarginLeftMultiplier = 0,
codeSnippetLang,
codeSnippetArray = [],
listRegex = /^(\s*)(\d|-)(?:\.?)+\s*(.*)/;
listRegex = /^(\s*)(\d+|-)(?:\.?)+\s*(.*)/;
relatedLinks = false;

for (const line of contentArray) {
Expand Down
80 changes: 43 additions & 37 deletions .github/workflows/pre_release_homepage_sample_build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This builds the 'Ballerina.io' home page samples against the releasing distribution.

on:
on:
pull_request:
paths:
- '_data/swanlake-latest/metadata.json'
Expand All @@ -13,43 +13,49 @@ jobs:
max-parallel: 3
matrix:
sample: ['consuming-services.md', 'graphql-api.md', 'kafka-consumer-producer.md', 'restful-api.md',
'working-with-data.md', 'working-with-databases.md']
'working-with-data.md', 'working-with-databases.md']
env:
GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install jq for json manipulation
run: sudo apt-get install jq

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Download the Ballerina distribution
run: |
VERSION="`jq -r '.version' _data/swanlake-latest/metadata.json`"
sudo wget https://dist-dev.ballerina.io/downloads/$VERSION/ballerina-$VERSION.zip
- name: Use Ballerina zip version
run: sudo apt-get install -y unzip

- name: Unzip Ballerina
run: |
VERSION="`jq -r '.version' _data/swanlake-latest/metadata.json`"
sudo unzip ballerina-$VERSION.zip
env:
JAVA_HOME: /usr/lib/jvm/default-jvm
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true

- name: Build the home page samples
run: |
sample_name=${{ matrix.sample }}
bal_file_name="$(cut -d'.' -f1 <<< "$sample_name")".bal
VERSION="`jq -r '.version' _data/swanlake-latest/metadata.json`"
export PATH=$PATH:/home/runner/work/ballerina-dev-website/ballerina-dev-website/ballerina-$VERSION/bin
python3 components/home-page/bal-action/generate-bal-script.py $sample_name
bal build $bal_file_name
- name: Checkout code
uses: actions/checkout@v2

- name: Install jq for JSON manipulation
run: sudo apt-get install jq

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install Java Temurin (AdoptOpenJDK)
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17.0.7'

- name: Download the Ballerina distribution
run: |
VERSION="`jq -r '.version' _data/swanlake-latest/metadata.json`"
sudo wget https://dist-dev.ballerina.io/downloads/$VERSION/ballerina-$VERSION.zip
- name: Use Ballerina zip version
run: sudo apt-get install -y unzip

- name: Unzip Ballerina
run: |
VERSION="`jq -r '.version' _data/swanlake-latest/metadata.json`"
sudo unzip ballerina-$VERSION.zip
env:
JAVA_HOME: ${{ env.JAVA_HOME }}
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true

- name: Build the home page samples
run: |
sample_name=${{ matrix.sample }}
bal_file_name="$(cut -d'.' -f1 <<< "$sample_name")".bal
VERSION="`jq -r '.version' _data/swanlake-latest/metadata.json`"
export PATH=$PATH:/home/runner/work/ballerina-dev-website/ballerina-dev-website/ballerina-$VERSION/bin
python3 components/home-page/bal-action/generate-bal-script.py $sample_name
bal build $bal_file_name
3 changes: 2 additions & 1 deletion .github/workflows/prod_sync_gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
git checkout -b deploy-website-$GITHUB_SHA origin/gh-pages
mkdir lang-bk
cp -r ./spec/lang/* ./lang-bk
rm -rf ./_next/* ./learn/*
git config --global user.email "[email protected]"
git config --global user.name "ballerina-bot"
Expand Down Expand Up @@ -56,4 +57,4 @@ jobs:
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
bin/hub pull-request -b gh-pages -m '[Automated] Deploy website'
env:
GITHUB_TOKEN: ${{ secrets.WEBSITE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.WEBSITE_TOKEN }}
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.setAttributeNode(d.createAttribute('data-ot-ignore'));j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PSL2TX4');</script><script type="text/javascript" crossorigin="true" src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script><script src="https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js" type="text/javascript" charSet="UTF-8" data-domain-script="630ad396-5fd5-4745-92ae-2765dc8841ee" defer=""></script><meta name="next-head-count" content="23"/><meta charSet="utf-8"/><meta name="author" content="WSO2 LLC"/><meta HTTP-EQUIV="X-Frame-Options" CONTENT="SAMEORIGIN"/><meta HTTP-EQUIV="Content-Security-Policy" CONTENT="frame-ancestors &#x27;none&#x27;;"/><link rel="shortcut icon" href="/images/favicon.ico"/><link rel="stylesheet" href="/css/roboto.css"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css"/><link rel="stylesheet" href="/css/ballerina-search-button.css"/><link rel="stylesheet" href="/css/ballerina-search-modal.css"/><link rel="stylesheet" href="/css/ballerina-search-variables.css"/><link rel="stylesheet" href="/css/ballerina-search-style.css"/><link rel="preload" href="/_next/static/css/4912777e2cfb47d2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4912777e2cfb47d2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/ed928f4e0113510f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/ed928f4e0113510f.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-87971de9e126aec7.js" defer=""></script><script src="/_next/static/chunks/framework-a070cbfff3c750c5.js" defer=""></script><script src="/_next/static/chunks/main-a66eb456a358e5ca.js" defer=""></script><script src="/_next/static/chunks/pages/_app-49e87402e1a02b9d.js" defer=""></script><script src="/_next/static/chunks/9733-caeb053dcf01b5fd.js" defer=""></script><script src="/_next/static/chunks/4564-079435fb4878d182.js" defer=""></script><script src="/_next/static/chunks/pages/404-833860d699916751.js" defer=""></script><script src="/_next/static/yLJxabM-JJavbb0kw0yxs/_buildManifest.js" defer=""></script><script src="/_next/static/yLJxabM-JJavbb0kw0yxs/_ssgManifest.js" defer=""></script><script src="/_next/static/yLJxabM-JJavbb0kw0yxs/_middlewareManifest.js" defer=""></script></head><body><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PSL2TX4" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div id="__next" data-reactroot=""><div class="main-wrapper other vstack gap-0"><div class="wrap-page-content short container"><div class="row"><div class="policyContent col-sm-10 col-12"></div></div></div><div class="Footer_stack__Y9iHo vstack gap-0"><div class="Footer_footer__gXdNn container"><div class="row"><div class="col-lg-6 col-md-6 col-sm-12 col-12"><div class="row"><div class="col-lg-6 col-md-12 col-sm-12 col-12"><div class="Footer_socialMedia__99VpI"><div class="Footer_smIcons__HD9f7"><ul><li><a href="https://github.com/ballerina-platform" target="_blank" rel="noreferrer" title="GitHub"></a></li><li><a href="https://twitter.com/ballerinalang" target="_blank" rel="noreferrer" title="Twitter"></a></li><li><a href="https://discord.gg/ballerinalang" target="_blank" rel="noreferrer" title="Discord"></a></li><li><a href="https://stackoverflow.com/questions/tagged/ballerina" target="_blank" rel="noreferrer" title="Stackoverflow"></a></li><li><a href="https://www.youtube.com/c/Ballerinalang" target="_blank" rel="noreferrer" title="YouTube"></a></li><li><a href="https://www.linkedin.com/company/79080790" target="_blank" rel="noreferrer" title="LinkedIn"></a></li></ul></div></div><div class="Footer_footerLinks__M9jUM"><ul><li><a href="/downloads/">DOWNLOAD</a></li><li><a class="footerLink" target="_blank" rel="noreferrer" href="https://github.com/ballerina-platform/ballerina-lang/issues/new/choose">REPORT ISSUES</a></li></ul></div></div><div class="col-lg-6 col-md-12 col-sm-12 col-12"><div class="Footer_subscription__N96Xy"><div class="Footer_subscribe__6aRU2"><a href="/community/#subscribe-to-our-newsletter">Subscribe to our newsletter</a></div><div class="Footer_subscribe__6aRU2"><a class="Footer_subRss__E8gAT" href="https://blog.ballerina.io/feed.xml" target="_blank" rel="noreferrer">Subscribe via RSS</a></div></div></div></div></div><div class="Footer_inspire__ZAi5V col-lg-6 col-md-6 col-sm-12 col-12"><p>In the creation of Ballerina, we were inspired by many technologies. Thank you to all that have come before us (and forgive us if we missed one): Java, Go, C, C++, D, Rust, Haskell, Kotlin, Dart, TypeScript, JavaScript, Python, Perl, Flow, Swift, Elm, RelaxNG, NPM, Crates, Maven, Gradle, Kubernetes, Docker, Envoy, Markdown, GitHub, and WSO2.</p></div></div><div class="Footer_policyLinks__q3ge1 row"><div class="col-sm-2 col-12"><span class="footerLink">© 2018-2023 WSO2 LLC</span></div><div class="col-sm-10 col-12"><ul><li><a class="footerLink" target="_blank" rel="noreferrer" href="https://github.com/ballerina-lang/ballerina/blob/master/LICENSE">CODE LICENSE</a></li><li><a href="/license-of-site/">SITE LICENSE</a></li><li><a href="/terms-of-service/">TERMS OF SERVICE</a></li><li><a href="/privacy-policy/">PRIVACY POLICY</a></li><li><a href="/cookie-policy/">COOKIE POLICY</a></li><li><a href="/security-policy/">SECURITY POLICY</a></li><li><a href="/trademark-usage-policy/">TRADEMARK USAGE POLICY</a></li></ul></div></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"yLJxabM-JJavbb0kw0yxs","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
})(window,document,'script','dataLayer','GTM-PSL2TX4');</script><script type="text/javascript" crossorigin="true" src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script><script src="https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js" type="text/javascript" charSet="UTF-8" data-domain-script="630ad396-5fd5-4745-92ae-2765dc8841ee" defer=""></script><meta name="next-head-count" content="23"/><meta charSet="utf-8"/><meta name="author" content="WSO2 LLC"/><meta HTTP-EQUIV="X-Frame-Options" CONTENT="SAMEORIGIN"/><meta HTTP-EQUIV="Content-Security-Policy" CONTENT="frame-ancestors &#x27;none&#x27;;"/><link rel="shortcut icon" href="/images/favicon.ico"/><link rel="stylesheet" href="/css/roboto.css"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css"/><link rel="stylesheet" href="/css/ballerina-search-button.css"/><link rel="stylesheet" href="/css/ballerina-search-modal.css"/><link rel="stylesheet" href="/css/ballerina-search-variables.css"/><link rel="stylesheet" href="/css/ballerina-search-style.css"/><link rel="preload" href="/_next/static/css/9ff4e07ae548d007.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9ff4e07ae548d007.css" data-n-g=""/><link rel="preload" href="/_next/static/css/ed928f4e0113510f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/ed928f4e0113510f.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-b298c0241eef820e.js" defer=""></script><script src="/_next/static/chunks/framework-a070cbfff3c750c5.js" defer=""></script><script src="/_next/static/chunks/main-a66eb456a358e5ca.js" defer=""></script><script src="/_next/static/chunks/pages/_app-dd55adbd3efd9c19.js" defer=""></script><script src="/_next/static/chunks/9733-caeb053dcf01b5fd.js" defer=""></script><script src="/_next/static/chunks/4564-93a34a880b3ed353.js" defer=""></script><script src="/_next/static/chunks/pages/404-833860d699916751.js" defer=""></script><script src="/_next/static/Bo5vk3X4NhqH_C0k9VMQF/_buildManifest.js" defer=""></script><script src="/_next/static/Bo5vk3X4NhqH_C0k9VMQF/_ssgManifest.js" defer=""></script><script src="/_next/static/Bo5vk3X4NhqH_C0k9VMQF/_middlewareManifest.js" defer=""></script></head><body><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PSL2TX4" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div id="__next" data-reactroot=""><div class="main-wrapper other vstack gap-0"><div class="wrap-page-content short container"><div class="row"><div class="policyContent col-sm-10 col-12"></div></div></div><div class="Footer_stack__Y9iHo vstack gap-0"><div class="Footer_footer__gXdNn container"><div class="row"><div class="col-lg-6 col-md-6 col-sm-12 col-12"><div class="row"><div class="col-lg-6 col-md-12 col-sm-12 col-12"><div class="Footer_socialMedia__99VpI"><div class="Footer_smIcons__HD9f7"><ul><li><a href="https://github.com/ballerina-platform" target="_blank" rel="noreferrer" title="GitHub"></a></li><li><a href="https://twitter.com/ballerinalang" target="_blank" rel="noreferrer" title="X"></a></li><li><a href="https://discord.gg/ballerinalang" target="_blank" rel="noreferrer" title="Discord"></a></li><li><a href="https://stackoverflow.com/questions/tagged/ballerina" target="_blank" rel="noreferrer" title="Stackoverflow"></a></li><li><a href="https://www.youtube.com/c/Ballerinalang" target="_blank" rel="noreferrer" title="YouTube"></a></li><li><a href="https://www.linkedin.com/showcase/ballerinalang/" target="_blank" rel="noreferrer" title="LinkedIn"></a></li></ul></div></div><div class="Footer_footerLinks__M9jUM"><ul><li><a href="/downloads/">DOWNLOAD</a></li><li><a class="footerLink" target="_blank" rel="noreferrer" href="https://github.com/ballerina-platform/ballerina-lang/issues/new/choose">REPORT ISSUES</a></li></ul></div></div><div class="col-lg-6 col-md-12 col-sm-12 col-12"><div class="Footer_subscription__N96Xy"><div class="Footer_subscribe__6aRU2"><a href="/community/#subscribe-to-our-newsletter">Subscribe to our newsletter</a></div><div class="Footer_subscribe__6aRU2"><a class="Footer_subRss__E8gAT" href="https://blog.ballerina.io/feed.xml" target="_blank" rel="noreferrer">Subscribe via RSS</a></div></div></div></div></div><div class="Footer_inspire__ZAi5V col-lg-6 col-md-6 col-sm-12 col-12"><p>In the creation of Ballerina, we were inspired by many technologies. Thank you to all that have come before us (and forgive us if we missed one): Java, Go, C, C++, D, Rust, Haskell, Kotlin, Dart, TypeScript, JavaScript, Python, Perl, Flow, Swift, Elm, RelaxNG, NPM, Crates, Maven, Gradle, Kubernetes, Docker, Envoy, Markdown, GitHub, and WSO2.</p></div></div><div class="Footer_policyLinks__q3ge1 row"><div class="col-sm-2 col-12"><span class="footerLink">© 2023 WSO2 LLC</span></div><div class="col-sm-10 col-12"><ul><li><a class="footerLink" target="_blank" rel="noreferrer" href="https://github.com/ballerina-lang/ballerina/blob/master/LICENSE">CODE LICENSE</a></li><li><a href="/license-of-site/">SITE LICENSE</a></li><li><a href="/terms-of-service/">TERMS OF SERVICE</a></li><li><a href="/privacy-policy/">PRIVACY POLICY</a></li><li><a href="/cookie-policy/">COOKIE POLICY</a></li><li><a href="/security-policy/">SECURITY POLICY</a></li><li><a href="/trademark-usage-policy/">TRADEMARK USAGE POLICY</a></li></ul></div></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"Bo5vk3X4NhqH_C0k9VMQF","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
Loading

0 comments on commit 776fd79

Please sign in to comment.